Hi, <br><br><div class="gmail_quote">On Dec 11, 2007 8:03 PM, Edward Rudd <<a href="mailto:erudd@netfor.com">erudd@netfor.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The client must use plain text authentication, as I have not written<br>SASL support in the LDAP plugin. Also did you update the LDAPFilter to<br>have %u in it? Second do you have the inetAuthorizedServices attribute?<br>
(Actually you should remove it, it was a *BAD* example as<br>inetAuthorizedServices requires a full DN value).<br><br>Try using just<br> (uid=%u) for (uid=abc)<br>or<br> (uid=%u@%d) for (uid=<a href="mailto:abc@abc.com">
abc@abc.com</a>)<br>as the LDAPFilter<br><div class="Ih2E3d"></div></blockquote><div><br>This is my conf file:<br>
<br>
<Plugin DJabberd::Authen::LDAP><br>
LDAPURI ldap://192.168.1.11/<br>
LDAPBindDN dc=abc,dc=com<br>
LDAPBindPW test<br>
LDAPBaseDN dc=abc,dc=com<br>
LDAPFilter (uid=%d) / LDAPFilter (uid=%u) [Tried with both]<br>
</Plugin><br>
<br>and these are my ldap entries:<br>
<br>
dn: dc=abc,dc=com<br>
dc: dimdim<br>
objectClass: dcObject<br>
objectClass: organization<br>
o: abc<br>
<br>
dn: cn=abc, dc=abc,dc=com<br>
userPassword:: abc<br>
objectClass: top<br>
objectClass: person<br>
sn: Dimdim User<br>
cn: abc<br><br>Regards,<br>-Rajesh<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>Rajesh Dharmalingam wrote:
<br>> Hi,<br>><br>> Thanks for the updates. I removed the LDAPMethod and tried, the user is<br>> in "Connecting" status. The debug log is:<br>><br>> DJabberd::Connection::ClientIn=ARRAY(0x8ee73ac): Cipher `(NONE)'
<br>> 3909 DEBUG DJabberd.Connection.XML.ClientIn 1 > <?xml<br>> version="1.0" encoding="UTF-8"?><stream:stream from='<a href="http://abc.com" target="_blank">abc.com</a><br>
</div>> <<a href="http://abc.com" target="_blank">http://abc.com</a>>' id="efe1bd9d700c68ca04de306be9a5bbd2c051a785"<br><div class="Ih2E3d">> version=' 1.0' xmlns:stream="<a href="http://etherx.jabber.org/streams" target="_blank">
http://etherx.jabber.org/streams</a>"<br>> xmlns="jabber:client"><stream:features><auth xmlns='<br>> <a href="http://jabber.org/features/iq-auth%27/" target="_blank">http://jabber.org/features/iq-auth'/
</a><br>> <<a href="http://jabber.org/features/iq-auth%27/" target="_blank">http://jabber.org/features/iq-auth'/</a>>></stream:features><br>> 3909 DEBUG DJabberd.Connection.XML.ClientIn 1 < <iq type='get'
<br>> id='purpled510548c'><query<br>> xmlns='jabber:iq:auth'><username>abc</username></query></iq><br>> 3909 INFO DJabberd.Connection.XML.ClientIn <iq type='result'
<br>> id='purpled510548c'><query<br>> xmlns='jabber:iq:auth'><username></username><password/><resource/></query></iq><br>><br>> 3909 DEBUG DJabberd.Connection.XML.ClientIn
1 < <iq type='set'<br>> id='purpled510548d'><query<br>> xmlns='jabber:iq:auth'><username>abc</username><resource>Home</resource><password>abc</password></query></iq>
<br>><br>><br>> One clarification, there is no change from client side except that we<br>> need to give the user name/password of what is available in the ldap?<br>><br>> Regards,<br>> -Rajesh<br>>
<br>> On Dec 11, 2007 7:46 PM, Edward Rudd <<a href="mailto:erudd@netfor.com">erudd@netfor.com</a><br></div><div><div></div><div class="Wj3C7c">> <mailto:<a href="mailto:erudd@netfor.com">erudd@netfor.com</a>>> wrote:
<br>><br>> Rajesh Dharmalingam wrote:<br>> > Hi,<br>> ><br>> > I am trying to add the ldap plugin.<br>> ><br>> > The server configuration is<br>> > <Plugin DJabberd::Authen::LDAP>
<br>> > LDAPURI ldap://192.168.1.11/<br>> > LDAPBindDN dc=abc, dc=com<br>> > LDAPBindPW test<br>> > LDAPBaseDN dc=abc,dc=com
<br>> > LDAPFilter<br>> (&(inetAuthorizedServices=jabber)(uid="%d"))<br>> > #LDAPFilter<br>> (&(inetAuthorizedServices=jabber)(uid="%u"))<br>
> > LDAPMethod rebind<br>> > </Plugin><br>> ><br>> [snip]<br>> ><br>> > The debug log is<br>> > Use of uninitialized value in pattern match (m//) at
<br>> > /usr/local/chat/djabberd/DJabberd/../DJabberd-<br>> Authen-LDAP-0.02/lib/DJabberd/Authen/LDAP.pm<br>> > line 101, <DATA> line 228.<br>> > 32599 ERROR DJabberd.Authen.LDAP
Invalid LDAP<br>> > Authentication Method<br>> > Configuration error on line 44: Invalid LDAP Authentication Method at<br>> ><br>> /usr/local/chat/djabberd/DJabberd/../DJabberd-
Authen-LDAP-0.02/lib/DJabberd/Authen/LDAP.pm<br>> > line 105<br>><br>> My guess is the extra spaces on the LDAPMethod config line are not taken<br>> into account by my code.. (oops). Just removing the LDAPMethod line
<br>> will fix it (since there is only one option it just happens to be the<br>> default)<br>><br>> And, I never actually tested anonymous binding, so it may be broken.<br>> I'll have to check into that.
<br>><br>><br>><br>><br>> --<br>> Regards,<br>> -Rajesh<br>><br>> "Stick to our roots and not to forget where we come from"<br></div></div></blockquote></div><br><br clear="all"><br>--
<br>Regards,<br>-Rajesh<br><br>"Stick to our roots and not to forget where we come from"