OpenLDAP compiled with Kerberos fails to start
February 19th, 2009
After compiling openldap with kerberos support, you get the following error message when starting it
bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/openldap-data: (2)
Expect poor performance for suffix dc=****,dc=****.
smbk5pwd: unable to initialize krb5 admin context: unable to find realm of host ****** (-1765328167).
backend_startup_one: bi_db_open failed! (-1)
slapd stopped.
connections_destroy: nothing to destroy.
This is because you have not created a configuration for kerberos yet.
To Fix:
cp /etc/krb5.conf.sample /etc/krb5.conf
Thanks! I could not figure this one out. I didnt even modify the kerberos configuration file.