Error added: 2007-10-10T13:48:27Z
In Ubuntu 9.10: 1) cp /usr/share/slapd/DB_CONFIG /var/lib/ldap/ 2) chown openldap.openldap /var/lib/ldap/DB_CONFIG 3) /etc/init.d/slapd restart
Fedora release 9 (Sulphur) cp /usr/share/doc/openldap-servers-2.4.10/DB_CONFIG.example /var/lib/ldap/DB_CONFIG chown ldap:ldap /var/lib/ldap/DB_CONFIG service ldap restart teo
Also for Fedora 11 x86_64 : 1). cp /usr/share/doc/openldap-servers-2.4.15/DB_CONFIG.example /var/lib/ldap/DB_CONFIG 2). chown ldap:ldap /var/lib/ldap/DB_CONFIG 3). service ldap restart
Check http://www.openldap.org/faq/data/cache/1072.html for directives.
the Answer 4 is useful,thank you very much.in this solution ,DB_CONFIG.example is in the directory where your ldap intalled.and default is /etc/openldap,the /var/lib/ldap is the directory you had set in the file \'slapd.conf\'
you might get this error if you didn't set the default directory path in slapd.conf (even if it's in /var/lib/ldap). The error message is quite misleading because it explicitly state the directory path but doesn't actually appear to be looking at it... (debian squeeze/ openldap 2.4.23) Jules
On RHEL 6.1: DB_CONFIG.example is located here: /usr/share/openldap-servers/DB_CONFIG.example
bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered.
On CentOS 6: cp /usr/share/doc/openldap-servers-2.4.19/DB_CONFIG.example /var/lib/ldap/DB_CONFIG chown ldap:ldap /var/lib/ldap/DB_CONFIG service slapd restart
Also for CentOS 5.2: 1) cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_CONFIG 2) chown ldap:ldap /var/lib/ldap/DB_CONFIG 3) service ldap restart Note, you will get this warning: bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered. config file testing succeeded 4) service ldap restart And now there will be no errors.
CentOs Solution works :)
Fedora 10 x86_64 worked... cp /usr/share/doc/openldap-servers-2.4.12/DB_CONFIG.example /var/lib/ldap/DB_CONFIG chown ldap:ldap /var/lib/ldap/DB_CONFIG service ldap restart
Fedora 14 x86_64 works as well
Here is what resolved the issue for me on Redhat 5: 1) cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_CONFIG 2) chown ldap.ldap /var/lib/ldap/DB_CONFIG 3) /etc/init.d/ldap stop && /etc/init.d/ldap start Note, you will get a bdb related warning the first time - it\'s safe to ignore. 4) Perform step 3 again and this time it will start up correctly with no errors or warnings. cheers -m
Just Run bellow Command when you got this type of Problem.... #/usr/sbin/slapd_db_recover -v -h /var/lib/ldap/domain.com/ Regards Ramakrishna Palla
bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered. config file testing succeeded
Good solution
FC11 works ... /usr/share/doc/openldap-servers ....
Nice Solutions Anand Mane
the software could mention this itself, but what the heck. straight answer people need that thank you
If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people
struggling with this too.
If you want to be notified via email when this is solved, enter your email address here: