ejabberd - Comments for "LDAP auth - not displayed registered users in web admin" https://www.ejabberd.im/node/3882 en Added ticket https://www.ejabberd.im/node/3882#comment-55362 <p>Ok, I've added this as a ticket: <noindex><a href="https://support.process-one.net/browse/EJAB-1203" rel="nofollow" >Review documentation of ldap_uids for AD</a></noindex></p> Fri, 05 Mar 2010 14:11:35 +0000 mfoss comment 55362 at https://www.ejabberd.im ldap_auth with AD - bug(?) in documentation https://www.ejabberd.im/node/3882#comment-55357 <p>I changed config from <code>{ldap_uids, [{&quot;sAMAccountName&quot;}]}.</code> to <code>{ldap_uids, [{&quot;sAMAccountName&quot;, &quot;%u&quot;}]}.</code> and all works.</p> <p>But Install Guide contains recomendation to use <code>{ldap_uids, [{&quot;sAMAccountName&quot;}]}.</code> in ldap_auth example config for AD<br /> <noindex><a href="http://www.process-one.net/en/ejabberd/guide_en#ad" title="http://www.process-one.net/en/ejabberd/guide_en#ad" rel="nofollow" >http://www.process-one.net/en/ejabberd/guide_en#ad</a></noindex></p> <p>May be this is documentation bug, but I think that parameter should be initialized with a default value if the value is not specified explicitly.</p> <p>By the way thanks for the advice.</p> Thu, 04 Mar 2010 09:48:39 +0000 d.k.brazz comment 55357 at https://www.ejabberd.im Increase loglevel and check for ideas https://www.ejabberd.im/node/3882#comment-55355 <p>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.</p> <p>You can try like I did, and compare the log result. Maybe it gives you some idea. I know almost nothing of LDAP.</p> <p>First increase the loglevel in ejabberd.cfg to 5.</p> <p>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.<br /> <noindex><a href="http://localhost:5280/admin/server/ldap.localhost/stats/" title="http://localhost:5280/admin/server/ldap.localhost/stats/" rel="nofollow" >http://localhost:5280/admin/server/ldap.localhost/stats/</a></noindex></p> <p>Then check ejabberd.log It should have something more or less like:</p> <pre> =INFO REPORT==== 3-Mar-2010::23:47:12 === I(&lt;0.407.0&gt;:ejabberd_listener:232) : (#Port&lt;0.4327&gt;) Accepted connection {{127,0,0,1},37741} -&gt; {{127,0,0,1},5280} =INFO REPORT==== 3-Mar-2010::23:47:12 === D(&lt;0.409.0&gt;:ejabberd_http:135) : S: [{["http-prebind"],mod_http_bind}, {["webadmin"],mod_af83_webadmin}, {["rest"],mod_rest}, {["register"],mod_register_web}, {["presence"],mod_webpresence}, {["avatar"],mod_http_fileserver}, {["jwchat"],mod_http_fileserver}, {["captcha"],ejabberd_captcha}, {["admin"],ejabberd_web_admin}, {["http-bind"],mod_http_bind}, {["http-poll"],ejabberd_http_poll}] =INFO REPORT==== 3-Mar-2010::23:47:12 === I(&lt;0.409.0&gt;:ejabberd_http:137) : started: {gen_tcp,#Port&lt;0.4327&gt;} =INFO REPORT==== 3-Mar-2010::23:47:12 === D(&lt;0.409.0&gt;:ejabberd_http:254) : (#Port&lt;0.4327&gt;) http query: 'GET' /admin/server/ldap.localhost/stats/ =INFO REPORT==== 3-Mar-2010::23:47:12 === D(&lt;0.409.0&gt;:ejabberd_http:322) : ["admin","server","ldap.localhost","stats"] matches ["admin"] =INFO REPORT==== 3-Mar-2010::23:47:12 === D(&lt;0.259.0&gt;:eldap:634) : {searchRequest, {'SearchRequest',"dc=pike",wholeSubtree, neverDerefAliases,0,5,false, {present,"uid"}, []}} =INFO REPORT==== 3-Mar-2010::23:47:12 === D(&lt;0.259.0&gt;:eldap:695) : {searchResEntry, {'SearchResultEntry', "uid=tester,ou=People,dc=pike", [{'PartialAttributeList_SEQOF', "objectClass", ["top","account","posixAccount"]}, {'PartialAttributeList_SEQOF',"uid", ["tester"]}, {'PartialAttributeList_SEQOF',"cn", ["Test User"]}, {'PartialAttributeList_SEQOF',"gecos", ["Test User"]}, {'PartialAttributeList_SEQOF',"uidNumber", ["2000"]}, {'PartialAttributeList_SEQOF',"gidNumber", ["2000"]}, {'PartialAttributeList_SEQOF', "homeDirectory", ["/home/tester"]}, {'PartialAttributeList_SEQOF',"loginShell", ["/bin/bash"]}, {'PartialAttributeList_SEQOF', "userPassword", ["sompass"]}]}} =INFO REPORT==== 3-Mar-2010::23:47:12 === D(&lt;0.259.0&gt;:eldap:695) : {searchResEntry, {'SearchResultEntry', "uid=robin,ou=People,dc=pike", [{'PartialAttributeList_SEQOF', "objectClass", ["top","account","posixAccount"]}, {'PartialAttributeList_SEQOF',"uid", ["robin"]}, {'PartialAttributeList_SEQOF',"cn", ["Test User"]}, {'PartialAttributeList_SEQOF',"gecos", ["Test User"]}, {'PartialAttributeList_SEQOF',"uidNumber", ["2001"]}, {'PartialAttributeList_SEQOF',"gidNumber", ["2001"]}, {'PartialAttributeList_SEQOF', "homeDirectory", ["/home/robin"]}, {'PartialAttributeList_SEQOF',"loginShell", ["/bin/bash"]}, {'PartialAttributeList_SEQOF', "userPassword", ["otherpass"]}]}} =INFO REPORT==== 3-Mar-2010::23:47:12 === D(&lt;0.259.0&gt;:eldap:695) : {searchResDone, {'LDAPResult',success,[],[],asn1_NOVALUE}} </pre><p> In my case that page said it has 2 accounts registered.</p> Wed, 03 Mar 2010 22:55:43 +0000 mfoss comment 55355 at https://www.ejabberd.im