[Koha] LDAP search failed to return object : 000004DC: LdapErr: DSID-0C090A5C, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4563 at /usr/share/koha/lib/C4/Auth_with_ldap.pm line 96.

DHIM IT itmanager at dhi-moskau.org
Wed Jun 22 01:20:22 NZST 2022


Problem solved. Here is right configuration:


<ldapserver id="dc1">
 <hostname>ldap://10.1.1.1</hostname>
 <base>DC=domain,DC=local</base>
 <user>CN=admin,OU=Admins,OU=OU_Users,DC=dhim,DC=local</user>
 <pass>password</pass>
 <auth_by_bind>1</auth_by_bind>
 <replicate>1</replicate>
 <update>1</update>
 <anonymous_bind>0</anonymous_bind>
 <principal_name>OU=Admins,OU=OU_Users,DC=domain,DC=local</principal_name>
 <mapping>
 <firstname is="givenname"></firstname>
 <surname is="sn"></surname>
 <userid       is="sAMAccountName"></userid>
 <categorycode is="employeetype">??</categorycode>
 <branchcode is="branch">??</branchcode>
 <email is="mail"></email>
 </mapping>
 </ldapserver>


Am 21.06.22, 14:59 schrieb "Koha im Auftrag von DHIM IT" <koha-bounces at lists.katipo.co.nz im Auftrag von itmanager at dhi-moskau.org>:

    Dear colleagues,

    After two days of tests I will ask you for help

    I try to connect Koha to Microsoft Active Directory 2019 and get this error:



    LDAP search failed to return object : 000004DC: LdapErr: DSID-0C090A5C, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4563 at /usr/share/koha/lib/C4/Auth_with_ldap.pm line 96.

    What do I do wrong?

    Ldapsearch works perfect:

    ldapsearch -H ldap://hostname -x -D "CN=admin,OU=Admins,OU=OU_Users,DC=domain,DC=local" -w "Password" -b "CN=Users,DC=domain,DC=local" sAMAccountName=testuser

    Here is config from koha-conf.xml

     <ldapserver id="dc1">
     <hostname>ldap:// hostname </hostname>
     <base>DC=domain,DC=local</base>
     <user>CN=admin,OU=Admins,OU=OU_Users,DC=dhim,DC=local</user>
     <pass>Password</pass>
     <auth_by_bind>1</auth_by_bind>
     <replicate>1</replicate>
     <update>0</update>
     <principal_name>CN=Users,DC=dhim,DC=local</principal_name>
     <mapping>
     <firstname    is="givenname"      ></firstname>
     <surname      is="sn"             ></surname>
     <userid       is="samAccountName" ></userid>
     </mapping>
     </ldapserver>





    _______________________________________________

    Koha mailing list  http://koha-community.org
    Koha at lists.katipo.co.nz
    Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha



More information about the Koha mailing list