[Koha-devel] Ldap Authentication error

Bobby bigbrovar2 at gmail.com
Thu Feb 19 11:25:06 CET 2015


Hi guys .. am running koha 3.16 (using debian 7 packages) however I am 
unable to get ldap authentication working I have setup the ldap 
paremeters in /etc/koha/site/opac/koha-conf.xml

<useldapserver>1</useldapserver><!-- see C4::Auth_with_ldap for extra 
configs you must add if you want to turn this on -->
         <ldapserver id="ldapserver" listenref="ldapserver">
         <hostname>localhost</hostname>
         <base>ou=People,dc=example,dc=edu,dc=ng</base>
         <replicate>0</replicate>
         <update>1</update>
         <auth_by_bind>1</auth_by_bind>
    <mapping>
         <userid is="uid"></userid>
         <firstname is="givenname"></firstname>
         <surname is="sn"></surname>
         <email is="mail"></email>
         <phone is="telephoneNumber"></phone>
         <password is="userPassword"></password>
     </mapping>
</ldapserver>

however when I do a perl opac-user.pl userid=foo password=passwd > 
/tmp/junk.txt I get this error
perl opac-user.pl userid=foo password=passwd > /tmp/junk.txt
LDAP bind failed as kohauser foo: LDAP error #34: LDAP_INVALID_DN_SYNTAX
# The request contained an invalid DN



More information about the Koha-devel mailing list