That's why the default keytab file is owned by root and protected from being
read by others. Do not mess with these permissions, build a different keytab
-file for slapd instead.
+file for slapd instead, and make sure it is owned by the user that slapd
+runs as.
To do this, start kadmin, and enter the following commands:
Then, on the shell, do:
-> chown ldap.ldap /etc/openldap/ldap.keytab
+> chown ldap:ldap /etc/openldap/ldap.keytab
> chmod 600 /etc/openldap/ldap.keytab
Now you have to tell slapd (well, actually tell the gssapi library in Kerberos 5
H3: ldap_*: Internal (implementation specific) error (80) - additional info: entry index delete failed
This seems to be related with wrong ownership of the BDB's dir (/var/lib/ldap)
-and files.
+and files. The files must be owned by the user that slapd runs as.
-> chmod -R openldap:openldap /var/lib/ldap
+> chown -R ldap:ldap /var/lib/ldap
fixes it in Debian