ejabberd - Comments for "LDAP authentification don&amp;#039;t work..." https://www.ejabberd.im/node/2603 en LDAP AD Auth for ldap_rootdn (fixed my probelm) https://www.ejabberd.im/node/2603#comment-52072 <p>I could not get my users to auth to AD. Here is how I fixed my problem, maybe it will help someone else.</p> <p>this line failed to authenticate my users.<br /> {ldap_rootdn, "CN=ldapreader,OU=Admins,OU=TestOU,DC=Test,DC=local"}. % LDAP manager</p> <p>this one worked<br /> {ldap_rootdn, "CN=LDAP Reader,OU=Admins,OU=TestOU,DC=Test,DC=local"}. % LDAP manager</p> <p>I used the AD username, but you must have the AD Full name for it to work.</p> <p>Hope this helps someone else.</p> <p>Joe</p> Thu, 27 Mar 2008 23:33:25 +0000 wolvie724 comment 52072 at https://www.ejabberd.im LDAP AD Auth for ldap_rootdn https://www.ejabberd.im/node/2603#comment-52068 <p>I can auth with AD only if I use administrator for my ldap_rootdn. (this works in my test enviorment)<br /> Any other user will not work.<br /> What do I need to do to build a user account that is not my Domain Admin. But can act as the ldap_rootdn?<br /> Really don't want the administrator password in a text file for the ldap_rootdn. (kinda silly to do that).</p> <p>Any help would be good.</p> Wed, 26 Mar 2008 20:39:37 +0000 wolvie724 comment 52068 at https://www.ejabberd.im LDAP - Archlinux 0.8 Authentication Working. https://www.ejabberd.im/node/2603#comment-51183 <p>I have ejabberd 1.1.4-1 working with OpenLDAP 2.3.37- on Archlinux 0.8. </p> <p>You must use the objectClass they have defined for authentication.. These are hardcoded... I created a jabber user that can BIND to ldap.. I would not use the manager, admin account for this.</p> <p>NOTE: make sure your users have the objectClass=shadowAccount or authentication will not work.</p> <p>Here is my working config.</p> <p>----- snip ------</p> <p>% this line:<br /> %{auth_method, internal}.</p> <p>% For LDAP authentication use these lines instead of above one:<br /> {auth_method, ldap}.<br /> {ldap_servers, ["ldap01.mycompany.com"]}. % List of LDAP servers<br /> {ldap_rootdn, "cn=Jabber Daemon,ou=Users,dc=mycompany_Corp,dc=com"}. % LDAP manager<br /> {ldap_password, "secretpassword"}. % Password to LDAP manager<br /> {ldap_base, "dc=mycompany_Corp,dc=com"}. % Search base of LDAP directory<br /> % as per the Documentation you do not need the uidattr.. It is hardcoded to find it during a ldapsearch.<br /> % however, to authenticate you need the ldap_filter below with shadowAccount objectClass.<br /> %{ldap_uidattr, "uid"}. % LDAP attribute that holds user ID<br /> {ldap_filter, "(objectClass=shadowAccount)"}.</p> <p>----- snip -------</p> <p>Hope this helps.</p> <p>~!&gt;D</p> Tue, 06 Nov 2007 17:01:55 +0000 cdowns comment 51183 at https://www.ejabberd.im It works. I can swear I https://www.ejabberd.im/node/2603#comment-51097 <p>It works. I can swear I didn't change the config, it just suddenly began to work. I have no idea what's up with that behavior</p> Thu, 18 Oct 2007 08:39:42 +0000 Gilbert comment 51097 at https://www.ejabberd.im (sorry for flaming) and the https://www.ejabberd.im/node/2603#comment-51091 <p>(sorry for flaming)</p> <p>and the ejabberd report:</p> <p>=INFO REPORT==== 16-Oct-2007::17:18:03 ===<br /> I(&lt;0.315.0&gt;:ejabberd_c2s:418): (#Port&lt;0.372&gt;) Failed legacy authentication for testadmin@jserv/Psi</p> Tue, 16 Oct 2007 10:37:50 +0000 Gilbert comment 51091 at https://www.ejabberd.im psi https://www.ejabberd.im/node/2603#comment-51090 <p>actually, psi gives 2 "host unknown" errors and 1 "Not authorized" error simultaneously. I'm connecting as "testadmin@jserv"</p> <p>relevant cfg.line:</p> <p>"{hosts, ["jserv"]}."</p> <p>server startting output:</p> <p>"started_at: 'ejabberd@myname.my.domain"</p> <p>PSI is configured to connect to "server: myname.my.domain port:5222"</p> <p>Am I using wrong JID, or something like that?</p> Tue, 16 Oct 2007 10:16:49 +0000 Gilbert comment 51090 at https://www.ejabberd.im psi https://www.ejabberd.im/node/2603#comment-51089 <p>oh crap, how could I be so blind. I enabled "allow plain text login", but I still can't log in. Now psi gives "Not authorized" error. However, "tcpdump -vv port 3268" shows nothing, ejabberd does not send requests to Active Directory. What could be the problem?</p> Tue, 16 Oct 2007 10:08:03 +0000 Gilbert comment 51089 at https://www.ejabberd.im psi https://www.ejabberd.im/node/2603#comment-51088 <div class="quote-msg"> <div class="quote-author"><em>d.k.brazz</em> wrote:</div> <p>You need to allow plain text authentication in PSI</p></div> <p>"use SSL encryption (to server)" flag is unchecked. Is there something else?</p> Tue, 16 Oct 2007 10:00:02 +0000 Gilbert comment 51088 at https://www.ejabberd.im soad6938 wrote: And the https://www.ejabberd.im/node/2603#comment-51087 <div class="quote-msg"> <div class="quote-author"><em>soad6938</em> wrote:</div> <p>And the request of PSI:</p> <p>There was an error communicating with the Jabber server.<br /> Details: Authentification error: No appropriate mechanism available for given security settings.</p> <p>Thanks in advance ;o)</p></div> <p>You need to allow plain text authentication in PSI</p> Tue, 16 Oct 2007 09:45:16 +0000 d.k.brazz comment 51087 at https://www.ejabberd.im I'm having the same trouble. https://www.ejabberd.im/node/2603#comment-51086 <p>I'm having the same trouble. Ldap is Active Directory. Could anyone post working configs for such configuration if there are any?)</p> Tue, 16 Oct 2007 08:19:27 +0000 Anonymous comment 51086 at https://www.ejabberd.im