[Koha] LDAP authentication
Scott Owen
sowen at edzone.net
Wed Dec 29 08:04:15 NZDT 2010
Vitor,
Here is my working LDAP config. section
Differences that jump out at me:
I use the IP rather than the FQDN for the LDAP server.
No auth_by_bind section at all.....and my LDAP auth works fine.
Can you access your LDAP directory with other LDAP tools?
(Softerra LDAP browser?)
**************************************
<useldapserver>1</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on -->
<!-- LDAP SERVER (optional) -->
<ldapserver id="ldapserver" listenref="ldapserver">
<hostname>10.1.1.7</hostname>
<base>T=********</base>
<user>*************</user> <!-- DN, if not anonymous -->
<pass>*************</pass> <!-- password, if not anonymous -->
<replicate>1</replicate> <!-- add new users from LDAP to Koha database -->
<update>0</update> <!-- update existing users in Koha database -->
<mapping> <!-- match koha SQL field names to your LDAP record field names -->
<firstname is="givenname" ></firstname>
<surname is="sn" ></surname>
<address is="" >Alma Public Schools</address>
<city is="" >Alma</city>
<zipcode is="" >48801</zipcode>
<branchcode is="" >PINE</branchcode>
<userid is="cn" ></userid>
<password is="" ></password>
<email is="mail" ></email>
<categorycode is="" >PT</categorycode>
<phone is="telephonenumber"></phone>
</mapping>
</ldapserver>
**************************************************
>>> Vitor Fernandes<vitorfernandes87 at gmail.com> 12/28/2010 10:11 AM >>>
Hi there.
I want to use LDAP authentication on my Koha (3.2.2).
There is any tutorial to do this?
Now I've added this block to my koha-conf.xml:
<useldapserver>1</useldapserver>
<ldapserver id="ldapserver" listenref="ldapserver">
<hostname>*******</hostname>
<base>*********</base>
<user>*******</user>
<pass>*******</pass>
<replicate>0</replicate>
<update>0</update>
<auth_by_bind>1</auth_by_bind>
<mapping>
<firstname is="givenName" ></firstname>
<surname is="sn" ></surname>
<userid is="userPrincipalName"></userid>
<email is="mail"></email>
</mapping>
</ldapserver>
I don't want to replicate neither update users in Koha. LDAP will be
only used to authentication.
But i'm having this error: "Can't call method "bind" on an undefined
value at /usr/share/koha/lib/C4/Auth_with_ldap.pm line 122".
The hostname of LDAP is correct... I've checked Auth_with_ldap.pm and
the problem is that $db variable (Net::LDAP->new(hostname)) is empty.
Any solution?
Thanks for your time.
Regards.
Vitor Fernandes
_______________________________________________
Koha mailing list http://koha-community.org
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20101228/4182a7ab/attachment-0001.htm
More information about the Koha
mailing list