I am posting here since I have run out of ideas on how to make this work properly. I run ejabberd server with multiple vhosts and all of them use external ldap auth, no local accounts. Until now I neither have had admin user set up, nor have tried to login into web console of ejabberd. But finally thought to give it a shot. But my problem is I can't make it work:) Below is part of the config (ejabberd 2.0.1)
% $Id: $
override_global.
override_local.
override_acls.
{loglevel,5}.
{acl, admin, {user, "myself", "hostedvhost"}}.
{access, configure, [{allow, admin}]}.
So I just try to assign a user which is in ldap of one of my vhosts that are configured below to be local jabber admin and be able to login via web_admin interface. Even though that user can connect to ejabberd and use the service on regular basis, he can't login into web_admin:(
Nothing specific in the logs about failed auth or anything, auth window just keeps popping up again after I enter the creds to login into web_admin.... I login in with userlogin@domain, so full JID, but it doesn't help....
Looking forward to hearing the ideas on it.
Thanks and have a good day
From what you say, it should
From what you say, it should work.
Login to ejabberd using that account "myself@hostedvhost", with the Psi client for example. Open the Psi Service Discovery. If ejabberd recognizes that account as having the "configure access", then you will see not only conference, pubsub and vjud elements; you will also have special administrative elements like Announcements, Connected Users, ...
If that works, then the problem is somewhere in webadmin. If that doesn't work, then the problem is somewhere in the acl+access options.
thanks, yes with Audium
thanks, yes with Audium client I discovered to have lots of extra options in the menu, so I am admin indeed. But web_admin doesn't let me in....
Some ideas to try
thanks, yes with Audium client I discovered to have lots of extra options in the menu, so I am admin indeed. But web_admin doesn't let me in....
Some ideas to try:
1. In the web browser window that asks for username and password, you must indicate your JID myself@hostedvhost and the password (I notice you already take care of this).
2. Try also with other web browser. Mozilla Firefox 3 is known to work.
3. If your username has non-ascii characters, maybe the we browser and ejabberd don't agree in the encoding. To test that, you can create a simple account testadmin@hostedvhost, add an ACL line to ejabberd.cfg, restart and try that one.
4. You can also try to set in ejabberd.cfg the loglevel to 5, maybe it reports something useful in ejabberd.log when the webadmin login fails.
5. It would be interesting to know the exact HTTP+HTML response returned by ejabberd. You can use a network traffic sniffer like Wireshark, tcpflow, ...
6. If you reached here and don't yet solve the problem, show the results of 4 and 5.
If you solved the problem, please comment what was it, and how you solved.