bdb_db_open: warning – no DB_CONFIG file found in directory /var/lib/ldap:

以下文章转载自http://ipucu.murat.ws/bdb_db_open-warning-no-db_config-file-found-in-directory-varlibldap-2-2/

Ldap kuruldu baslatmaya calisiyorsunuz fakat asagidaki gibi bir uyari aliyorsunuz ne yapmamiz lazim ? [root@fedora ~]# /etc/init.d/ldap restart Stopping slapd: [ OK ] Checking configuration files for slapd: [WARNING] bdb_db_open: warning – no DB_CONFIG file found in directory /var/lib/ldap: (2). Expect poor performance for suffix “dc=my-domain,dc=com”. config file testing succeeded Starting slapd: [ OK ] [...]

..
Ldap kuruldu baslatmaya calisiyorsunuz fakat asagidaki gibi bir uyari aliyorsunuz ne yapmamiz lazim ?

[root@fedora ~]# /etc/init.d/ldap restart
Stopping slapd: [ OK ]
Checking configuration files for slapd: [WARNING]
bdb_db_open: warning – no DB_CONFIG file found in directory /var/lib/ldap: (2).
Expect poor performance for suffix “dc=my-domain,dc=com”.
config file testing succeeded
Starting slapd: [ OK ]

Sirasiyla komutlari uygulayalim,

[root@fedora ~]# rm -rf /var/lib/ldap/*

[root@fedora ~]# updatedb

[root@fedora ~]# locate DB_CONFIG.example
/usr/share/doc/openldap-servers-2.4.12/DB_CONFIG.example

[root@fedora ~]# cp /usr/share/doc/openldap-servers-2.4.12/DB_CONFIG.example /var/lib/ldap/DB_CONFIG

[root@fedora ~]# chown -R ldap:ldap /var/lib/ldap

[root@fedora ~]# /etc/init.d/ldap restart
Stopping slapd: [ OK ]
Starting slapd: [ OK ]

Ldap sorunsuz olarak basladi.

sevgiler.

posted @ 2011-07-23 21:36  google4y  阅读(1379)  评论(0编辑  收藏  举报
不在家,就在公司,不在公司,就在去公司的路上,無家無根,如風如萍,只有漂