eJabberd 2.1.2
LDAP authentication (Active Directory)
Everything works fine, except for displaying registered users (and number of registered users)
I looked at traffic coming from ejabberd to LDAP when loading the page
But registered users list is not displayed
PS: no errors in logs
Increase loglevel and check for ideas
I tried ejabberd 2.1.2 against my small slapd server (only two accounts registered). In all the WebAdmin pages it shows the correct information about number of users, and their usernames.
You can try like I did, and compare the log result. Maybe it gives you some idea. I know almost nothing of LDAP.
First increase the loglevel in ejabberd.cfg to 5.
Then browse some WebAdmin, for example the statistics about the ldap host. In my case I have two vhosts, one called "localhost" with internal auth, and "ldap.localhost" with ldap auth.
http://localhost:5280/admin/server/ldap.localhost/stats/
Then check ejabberd.log It should have something more or less like:
In my case that page said it has 2 accounts registered.
ldap_auth with AD - bug(?) in documentation
I changed config from
{ldap_uids, [{"sAMAccountName"}]}.
to{ldap_uids, [{"sAMAccountName", "%u"}]}.
and all works.But Install Guide contains recomendation to use
http://www.process-one.net/en/ejabberd/guide_en#ad
{ldap_uids, [{"sAMAccountName"}]}.
in ldap_auth example config for ADMay be this is documentation bug, but I think that parameter should be initialized with a default value if the value is not specified explicitly.
By the way thanks for the advice.
Added ticket
Ok, I've added this as a ticket:Review documentation of ldap_uids for AD