修改OpenLDAP ldif文件抛出一个错误,但成功configuration?

我在Fedora 17上configurationOpenLDAP。当做这个slaptest ,我得到了这个输出:

 50f16531 hdb_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 

我通过将该string修改为我自己的域名解决了这个问题,位于slapd.d/cn=config/olcDatabase={2}hdb.ldif 。 当我再次做这个slaptest时,我得到了这个输出:

 50f16987 ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={2}hdb.ldif" 50f16987 hdb_db_open: warning - no DB_CONFIG file found in directory /var/lib/ldap: (2). Expect poor performance for suffix "dc=huahsin,dc=org". config file testing succeeded 

我可否知道这是否意味着testing已成功进行configuration?

它已经成功configuration,没有DB_CONFIG文件。 你可能有一个DB_CONFIG.example文件,你忘记复制到/var/lib/ldap/DB_CONFIG ,设置正确的权限,然后编辑以适应你的configuration。