<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18999"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Vitor,</DIV>
<DIV> </DIV>
<DIV>Here is my working LDAP config. section</DIV>
<DIV> </DIV>
<DIV>Differences that jump out at me:</DIV>
<DIV>I use the IP rather than the FQDN for the LDAP server.</DIV>
<DIV>No auth_by_bind section at all.....and my LDAP auth works fine.</DIV>
<DIV> </DIV>
<DIV>Can you access your LDAP directory with other LDAP tools?</DIV>
<DIV>(Softerra LDAP browser?)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>**************************************</DIV>
<DIV><useldapserver>1</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on --><BR> <!-- LDAP SERVER (optional) --><BR> <ldapserver id="ldapserver" listenref="ldapserver"><BR> <hostname>10.1.1.7</hostname><BR> <base>T=********</base><BR> <user>*************</user> <!-- DN, if not anonymous --><BR> <pass>*************</pass> <!-- password, if not anonymous --><BR> <replicate>1</replicate> <!-- add new users from LDAP to Koha database --><BR> <update>0</update> <!-- update existing users in Koha database --><BR> <mapping> <!-- match koha SQL field names to your LDAP record field names --><BR> <firstname is="givenname" ></firstname><BR> <surname is="sn" ></surname><BR> <address is="" >Alma Public Schools</address><BR> <city is="" >Alma</city><BR> <zipcode is="" >48801</zipcode><BR> <branchcode is="" >PINE</branchcode><BR> <userid is="cn" ></userid><BR> <password is="" ></password><BR> <email is="mail" ></email><BR> <categorycode is="" >PT</categorycode><BR> <phone is="telephonenumber"></phone><BR> </mapping><BR></ldapserver><BR>**************************************************</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>>>> Vitor Fernandes<vitorfernandes87@gmail.com> 12/28/2010 10:11 AM >>><BR>Hi there.<BR><BR>I want to use LDAP authentication on my Koha (3.2.2).<BR>There is any tutorial to do this?<BR><BR>Now I've added this block to my koha-conf.xml:<BR><BR><useldapserver>1</useldapserver><BR><ldapserver id="ldapserver" listenref="ldapserver"><BR><hostname>*******</hostname><BR><base>*********</base><BR><user>*******</user><BR><pass>*******</pass><BR><replicate>0</replicate><BR><update>0</update><BR><auth_by_bind>1</auth_by_bind><BR><mapping><BR> <firstname is="givenName" ></firstname><BR> <surname is="sn" ></surname><BR> <userid is="userPrincipalName"></userid><BR> <email is="mail"></email><BR></mapping><BR></ldapserver><BR><BR>I don't want to replicate neither update users in Koha. LDAP will be<BR>only used to authentication.<BR>But i'm having this error: "Can't call method "bind" on an undefined<BR>value at /usr/share/koha/lib/C4/Auth_with_ldap.pm line 122".<BR>The hostname of LDAP is correct... I've checked Auth_with_ldap.pm and<BR>the problem is that $db variable (Net::LDAP->new(hostname)) is empty.<BR><BR>Any solution?<BR><BR>Thanks for your time.<BR>Regards.<BR>Vitor Fernandes<BR>_______________________________________________<BR>Koha mailing list <A href="http://koha-community.org">http://koha-community.org</A><BR>Koha@lists.katipo.co.nz<BR><A href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</A><BR><BR></DIV></BODY></HTML>