Search code examples
openldapmulti-master-replication

ldap_sasl_bind_s failed (-1)


I have configured the openldap multimaster based on this guide: https://kifarunix.com/setup-openldap-master-master-replication-on-centos-8/ but the replication between two servers doesn't work. and I get this error:

on server1: slap_client_connect: URI=ldaps://ldapmaster02.kifarunix-demo.com DN="cn=admin,dc=ldapmaster,dc=kifarunix-demo,dc=com" ldap_sasl_bind_s failed (-1)

on server 2:slap_client_connect: URI=ldaps://ldapmaster01.kifarunix-demo.com DN="cn=admin,dc=ldapmaster,dc=kifarunix-demo,dc=com" ldap_sasl_bind_s failed (-1).

what is wrong in the guide? Regards


Solution

  • The issue is resolved. I used the same password and hash text for all ldif configuration files. Also I used the below link to generate certificate files with alternate dns names: https://gist.github.com/KeithYeh/bb07cadd23645a6a62509b1ec8986bbc Also the olcaccess for the cn=manager must be write. In that document the olcaccess for cn=manager is not set. Regards