ejabberd - Comments for "LDAP (active directory)" https://www.ejabberd.im/node/639 en Just one question more https://www.ejabberd.im/node/639#comment-40499 <p>When I recompiled eldap.erl the file ELDAPv3.hrl wasn't on the source:</p> <p><noindex><a href="http://svn.process-one.net/ejabberd/trunk/src/eldap/eldap.erl" title="http://svn.process-one.net/ejabberd/trunk/src/eldap/eldap.erl" rel="nofollow" >http://svn.process-one.net/ejabberd/trunk/src/eldap/eldap.erl</a></noindex></p> <p>And I wen't to historical source code to find it, maybe that's the problem? Where I can get it?</p> <p>Thanks a lot.<br /> Carles.</p> Thu, 09 Aug 2007 10:35:02 +0000 nanotopo comment 40499 at https://www.ejabberd.im This patch definitely fixes https://www.ejabberd.im/node/639#comment-40496 <p>This patch definitely fixes the problem you describe.<br /> You probably miss a step in the recompile / deployment.</p> <p>If you can wait for a few days, we are preparing a version 1.1.4 that will include this patch among others.</p> <p>--<br /> Mickaël Rémond<br /> <noindex><a href="http://www.process-one.net/" rel="nofollow" >Process-one</a></noindex></p> Thu, 09 Aug 2007 09:27:16 +0000 mremond comment 40496 at https://www.ejabberd.im After debug I'm in 99%, but still doesn't work: https://www.ejabberd.im/node/639#comment-40489 <p>Hi again,</p> <p>I get to start in command line, and I get the next log results, it logs onto ldap/AD but it sais: </p> <p>"I(&lt;0.295.0&gt;:ejabberd_c2s:417): (#Port&lt;0.311&gt;) Failed legacy authentication for dummy@domain.com/Psi"</p> <p>I checked on the PSI client the plain text conection and it gets the ldap correct autentication.</p> <p>Here it's the full log:</p> <p>Eshell V5.5.2.2 (abort with ^G)<br /> (ejabberd@localhost)1&gt; ---- Message:[{'LDAPMessage',1,<br /> {bindRequest,<br /> {'BindRequest',<br /> 3,<br /> "CN=Administrador,CN=Users,DC=domain,DC=com",<br /> {simple,"pwdAdministrator"}}},<br /> asn1_NOVALUE}]<br /> (ejabberd@localhost)1&gt; ---- Message:[{'LDAPMessage',1,<br /> {bindRequest,<br /> {'BindRequest',<br /> 3,<br /> "CN=Administrador,CN=Users,DC=domain,DC=com",<br /> {simple,"pwdAdministrator"}}},<br /> asn1_NOVALUE}]<br /> (ejabberd@localhost)1&gt; ---- [{'LDAPMessage',1,<br /> {bindResponse,{'BindResponse',<br /> success,<br /> [],<br /> [],<br /> asn1_NOVALUE,<br /> asn1_NOVALUE}},<br /> asn1_NOVALUE}](ejabberd@localhost)1&gt; ---- [{'LDAPMessage',1<br /> ,<br /> {bindResponse,{'BindResponse',<br /> success,<br /> [],<br /> [],<br /> asn1_NOVALUE,<br /> asn1_NOVALUE}},<br /> asn1_NOVALUE}](ejabberd@localhost)1&gt;<br /> =INFO REPORT==== 9-Aug-2007::10:24:59 ===<br /> I(&lt;0.226.0&gt;:ejabberd_listener:90): (#Port&lt;0.311&gt;) Accepted connection {{192,168,25,55},2450} -&gt; {{192,168,25,55},5222}<br /> (ejabberd@localhost)1&gt; ---- [{searchRequest,{'SearchRequest',"dc=domain,dc=com"<br /> ,<br /> wholeSubtree,<br /> neverDerefAliases,<br /> 0,<br /> 0,<br /> false,<br /> {'and',<br /> [{equalityMatch,<br /> {'AttributeValueAssertion',<br /> "mail",<br /> "dummy@domain.com"}},<br /> {equalityMatch,<br /> {'AttributeValueAssertion',<br /> "memberOf",<br /> "CN=JabberUsers,CN=Users,DC=domain,DC=com"}},<br /> {'or',<br /> [{equalityMatch,<br /> {'AttributeValueAssertion',<br /> "userAccountControl",<br /> "66050"}},<br /> {equalityMatch,<br /> {'AttributeValueAssertion',<br /> "userAccountControl",<br /> "66048"}}]}]},<br /> []}}]<br /> (ejabberd@localhost)1&gt; ---- [{searchResRef,["ldap://ForestDnsZones.domain.com/DC=ForestDnsZones,DC=domain,DC=com"]}]<br /> (ejabberd@localhost)1&gt; ---- [{searchResRef,["ldap://DomainDnsZones.domain.com/DC=DomainDnsZones,DC=domain,DC=com"]}]<br /> (ejabberd@localhost)1&gt; ---- [{searchResRef,["ldap://domain.com/CN=Configuration,DC=domain,DC=com"]}]<br /> (ejabberd@localhost)1&gt; ---- [{searchResDone,{'LDAPResult',success,[],[],asn1_NOVALUE}}]<br /> (ejabberd@localhost)1&gt;<br /> =INFO REPORT==== 9-Aug-2007::10:24:59 ===<br /> I(&lt;0.295.0&gt;:ejabberd_c2s:417): (#Port&lt;0.311&gt;) Failed legacy authentication for dummy@domain.com/Psi</p> Thu, 09 Aug 2007 08:43:57 +0000 nanotopo comment 40489 at https://www.ejabberd.im I've done and nothing https://www.ejabberd.im/node/639#comment-39684 <p>Hi Mickël,</p> <p>I've compiled the file but it does the same. The key it's that this eldap.erl file it's the same as 1.1.3.</p> <p>How I can get a better log to look for what's happening?</p> <p>Carles.</p> Wed, 08 Aug 2007 08:50:44 +0000 nanotopo comment 39684 at https://www.ejabberd.im Try to replace eldap.erl https://www.ejabberd.im/node/639#comment-38863 <p>Try to replace eldap.erl with this file from the development version and recompile ejabberd:<br /> <noindex><a href="http://svn.process-one.net/ejabberd/trunk/src/eldap/eldap.erl" title="http://svn.process-one.net/ejabberd/trunk/src/eldap/eldap.erl" rel="nofollow" >http://svn.process-one.net/ejabberd/trunk/src/eldap/eldap.erl</a></noindex></p> <p>--<br /> Mickaël Rémond<br /> <noindex><a href="http://www.process-one.net/" rel="nofollow" >Process-one</a></noindex></p> Tue, 07 Aug 2007 13:48:58 +0000 mremond comment 38863 at https://www.ejabberd.im I'm using the last one, https://www.ejabberd.im/node/639#comment-38861 <p>I'm using the last one, 1.1.3.</p> <p>Where I have to go to look for SVN?</p> <p>Thanks.</p> Tue, 07 Aug 2007 12:56:49 +0000 nanotopo comment 38861 at https://www.ejabberd.im Regarding LDAP, the https://www.ejabberd.im/node/639#comment-38860 <p>Regarding LDAP, the development version contains a fix that could help you (SVN).<br /> Which version are you using ?</p> <p>--<br /> Mickaël Rémond<br /> <noindex><a href="http://www.process-one.net/" rel="nofollow" >Process-one</a></noindex></p> Tue, 07 Aug 2007 12:53:17 +0000 mremond comment 38860 at https://www.ejabberd.im I'm in the same problem https://www.ejabberd.im/node/639#comment-38845 <p>Hi all,</p> <p>I'm in the same problem, my case:</p> <p> Server with ejabbered: pepe.domain.com<br /> Server with active directory: ad.domain.com</p> <p> Configuration file:</p> <p> {auth_method, ldap}.<br /> {ldap_servers, ["ad.domain.com"]}. % List of LDAP servers<br /> {ldap_base, "dc=domain,dc=com"}. % Search base of LDAP directory<br /> {ldap_rootdn, "cn=Administrador,cn=Users,dc=domain,dc=com"}. % LDAP manager<br /> {ldap_password, "pwdAdministrator"}. % Password to LDAP manager<br /> {ldap_uidattr, "samAccountName"}.</p> <p> {hosts, ["pepe.domain.com","domain.com"]}.</p> <p> User on Active Directory:<br /> user name: dummy<br /> user login: dummy<br /> user email: <noindex><a href="mailto:dummy@domain.com" rel="nofollow" >dummy@domain.com</a></noindex></p> <p> Client:<br /> PSI<br /> Configuration:<br /> jid: <noindex><a href="mailto:dummy@domain.com" rel="nofollow" >dummy@domain.com</a></noindex><br /> server: pepe.domain.com<br /> * One question about he client side, I have to register the user, or just login?</p> <p>Please what I have to do to make it work, I left 4 hours allready.</p> <p>Thanks in advance</p> Tue, 07 Aug 2007 08:38:15 +0000 nanotopo comment 38845 at https://www.ejabberd.im Do you use? {auth_method, ldap}. https://www.ejabberd.im/node/639#comment-26149 <p>I have never used LDAP/AD auth on ejabberd.</p> <div class="quote-msg"> <div class="quote-author"><em>james</em> wrote:</div> <p>The logs for ejabberd don't seem to tell me anything useful. (i.e. It may be useful information, but not for me.) :)</p></div> <p>Umm, so they don't show any ERROR, CRASH... reports for you.</p> <div class="quote-msg"> <div class="quote-author"><em>james</em> wrote:</div> <p>I do have ejabberd set to allow LDAP and internal, and I'm able to register new accounts.</p></div> <p>So, you have something like this?</p> <pre>{auth_method, [internal, ldap]}.</pre><p> Please note that the guide and the russian article from realloc use this:</p> <pre>{auth_method, ldap}.</pre> Wed, 04 Jul 2007 14:15:51 +0000 mfoss comment 26149 at https://www.ejabberd.im Active Directory authentication https://www.ejabberd.im/node/639#comment-25272 <p>I've been struggling with this for days ... and I'm *sure* that I'm missing something basic.</p> <p>I'm using the latest version of ejabberd from ProcessOne (1.1.2 I believe).</p> <p>I've installed this to an XP machine, which belongs to the domain as a workstation, with the firewall off.</p> <p>I want to be able to authenticate users who exist in the AD, using their AD credentials.</p> <p>The logs for ejabberd don't seem to tell me anything useful. (i.e. It may be useful information, but not for me.) :)</p> <p>I have followed the examples from this site, as well as a translated version of this page: <noindex><a href="http://realloc.spb.ru/share/ejabberd112ad.html" title="http://realloc.spb.ru/share/ejabberd112ad.html" rel="nofollow" >http://realloc.spb.ru/share/ejabberd112ad.html</a></noindex></p> <p>I'm using Pidgin to connect to the ejabberd server, and could be doing something wrong on the client side. I'm not sure what "screen name" equates to in the AD. In Pidgin, I get authentication failed errors when I try and use an AD account.</p> <p>I do have ejabberd set to allow LDAP and internal, and I'm able to register new accounts.</p> <p>Does there exist somewhere a comprehensive overview of "active directory" authentication, including client side stuff? If not, does anyone have suggestions as to what stupid thing I might be doing wrong?</p> <p>If I can get this working, I'd be happy to contribute an english language document detailing the steps I take, client side config, etc.</p> <p>Thank you for your time and consideration. :)</p> <p>James</p> Mon, 02 Jul 2007 18:30:32 +0000 james comment 25272 at https://www.ejabberd.im done https://www.ejabberd.im/node/639#comment-2197 <div class="quote-msg"> <div class="quote-author"><em>sander</em> wrote:</div> <p>@badlop: maybe that patch should be listed on the <noindex><a href="contributions" rel="nofollow" >contribs</a></noindex> page?</p></div> <p><noindex><a href="/ldap-improvements" rel="nofollow" >Done</a></noindex>, but even better: include in ejabberd svn, or at least bugzilla</p> Mon, 04 Sep 2006 10:56:39 +0000 mfoss comment 2197 at https://www.ejabberd.im I think you might want to https://www.ejabberd.im/node/639#comment-2196 <p>I think you might want to take a look at <noindex><a href="http://lists.jabber.ru/pipermail/ejabberd/2006-July/002015.html" rel="nofollow" >this patch to improve LDAP support in ejabberd</a></noindex>. Check the included README and ldap_guide.txt files.</p> <p>@badlop: maybe that patch should be listed on the <noindex><a href="/contributions" rel="nofollow" >contribs</a></noindex> page?</p> <p>--<br /> sander</p> Mon, 04 Sep 2006 09:56:12 +0000 sander comment 2196 at https://www.ejabberd.im With or without ejabberd_ad patch? https://www.ejabberd.im/node/639#comment-2194 <p>Hi all,</p> <p>I am trying to get this running, too, unfortunately without success.<br /> So my first question: do I need this ejabberd_ad patch and if so, why?<br /> My ejabberd package comes with LDAP support I think, so AD authentication should be ok?</p> <p>I have the following configuration:<br /> {auth_method, ldap}.<br /> {ldap_servers, ["server1.arkona.local"]}. % List of LDAP servers<br /> {ldap_uidattr, "samAccountName"}. % LDAP attribute that holds user ID<br /> {ldap_base, "OU=Users OU,DC=arkona,DC=local"}. % Search base of LDAP directory<br /> {ldap_rootdn, "CN=Administrator,OU=Groups and Buildins,DC=arkona,dc=local"}. % LDAP manager<br /> {ldap_password, "OurPassword"}. % Password to LDAP manager</p> <p>The Users OU is definitely right, the Administrator also.<br /> So what the hack am I doing wrong?<br /> Is it because of the spaces in the basedn and rootdn?</p> <p>Thanks for any help,</p> <p>Matthias</p> Mon, 04 Sep 2006 08:58:33 +0000 blindzero comment 2194 at https://www.ejabberd.im Fixed It! https://www.ejabberd.im/node/639#comment-1642 <p>I made an export of my Active Directory structure and found our that the rootdn was incomplete, here goes my final working configuration:</p> <p>{auth_method, ldap}.<br /> {ldap_servers, ["10.100.0.20"]}. % List of LDAP servers<br /> {ldap_uidattr, "samAccountName"}. % LDAP attribute that holds user ID<br /> {ldap_base, "OU=Usuarios,OU=Corporativo,DC=metrored,DC=local"}. % Search base of LDAP directory<br /> {ldap_rootdn, "CN=Administrador,CN=Users,DC=metrored,DC=local"}. % LDAP manager<br /> {ldap_password, "XXXXXXXXXXX"}. % Password to LDAP manager</p> <p>I hope this saves someone some grief in the future when dealing with this...</p> Fri, 28 Apr 2006 19:03:27 +0000 havok1977 comment 1642 at https://www.ejabberd.im I am having the same problem. https://www.ejabberd.im/node/639#comment-1638 <p>I am also attempting to make my local area messaging service be integrated into our existing Active Directory infrastructure. As per documented here and based on a friend of mine's suggestions i have come up with the following LDAP configuration:</p> <p>{auth_method, ldap}.<br /> {ldap_servers, ["10.100.0.20"]}. % List of LDAP servers<br /> {ldap_uidattr, "samAccountName"}. % LDAP attribute that holds user ID<br /> {ldap_base, "ou=Usuarios,ou=Corporativo,dc=metrored,dc=local"}. % Search base of LDAP directory<br /> {ldap_rootdn, "cn=Administrador,dc=metrored,dc=local"}. % LDAP manager<br /> {ldap_password, "XXXXXXXX"}. % Password to LDAP manager</p> <p>However i have had many problems and to this point in time the authentication does not work against the AD yet. I am certain that i have configured the ldap_base and the ldap_password; but i am not sure that my ldap_base is correct by just adding the dc's or if it needs the ou's as well.</p> <p>This is what my ejabberd.log has to say about it:</p> <p>=INFO REPORT==== 2006-04-28 10:46:33 ===<br /> I(&lt;0.1193.0&gt;:ejabberd_listener:90): (#Port&lt;0.2157&gt;) Accepted connection {{10,100,3,91},42672} -&gt; {{10,100,0,8},5222}</p> <p>=INFO REPORT==== 2006-04-28 10:46:33 ===<br /> I(&lt;0.1270.0&gt;:ejabberd_c2s:417): (#Port&lt;0.2157&gt;) Failed legacy authentication for diego.defuentes@metrored.com.mx/Psi</p> <p>I will go to my AD server to check if it has any kind of logs available, in the meantime; can anyone please clarify my question?</p> <p>Thanks in advance.</p> Fri, 28 Apr 2006 15:39:03 +0000 havok1977 comment 1638 at https://www.ejabberd.im