我正在尝试使用FusionDirectory作为前端来安装OpenLDAP服务器
遵循本指南: http : //documentation.fusiondirectory.org/en/documentation/admin_installation_redhat_6
http://documentation.fusiondirectory.org/openldap_install_rhel6
我有我的ch_domainSettings.ldif以下
dn: olcDatabase={1}monitor,cn=config changetype: modify replace: olcAccess olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read by dn.base="cn=Manager,dc=example,dc=net" read by * none dn: olcDatabase={2}bdb,cn=config changetype: modify replace: olcSuffix olcSuffix: dc=example,dc=net dn: olcDatabase={2}bdb,cn=config changetype: modify replace: olcRootDN olcRootDN: cn=Manager,dc=example,dc=net dn: olcDatabase={2}bdb,cn=config changetype: modify add: olcRootPW olcRootPW: {SSHA}RbncgBcs8McqwMMAjx4CFdENpLycUc4w dn: olcDatabase={2}bdb,cn=config changetype: modify add: olcAccess olcAccess: {0}to attrs=userPassword,shadowLastChange by dn="cn=Manager,dc=example,dc=net" write by anonymous auth by self write by * none olcAccess: {1}to dn.base="" by * read olcAccess: {2}to * by dn="cn=Manager,dc=example,dc=net" write by * read
而当运行
Sudo ldapadd -Y EXTERNAL -H ldapi:/// -f ch_domainSettings.ldif
我得到以下错误:
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth SASL SSF: 0 modifying entry "olcDatabase={1}monitor,cn=config" modifying entry "olcDatabase={2}bdb,cn=config" ldap_modify: No such object (32) matched DN: cn=config
你能指出什么可能是错的吗?
也许你的第二个configuration的数据库不是typesbdb 。 例如,CentOS 7默认使用hdb 。
dn: olcDatabase={2}hdb,cn=config
你需要找出你已经configuration了什么后端数据库:
ldapsearch -H ldapi:/// -Y EXTERNAL -b "cn=config" -LLL -Q "olcDatabase=*" dn
你正在寻找的可能是BDB,HDB或MDB。
(编辑:多一个/)