[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
Tue Jun 21 23:59:27 NZST 2022


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>







More information about the Koha mailing list