Openldap(2.4.40)的新功能。运行时出现此错误:

ldapmodify -a -x -H "ldaps://localhost:636" -D "cn=Manager,dc=test,dc=mydomain,dc=com" -W -f  olcsyncrepl.ldif

错误:
ldapmodify:无效的格式(第4行)条目:“olcDatabase={2},cn=config”
这是ldif文件:
dn: olcDatabase={2}bdb,cn=config
olcSyncrepl: {0}rid=123
    provider=ldaps://sso.provider.com
    binddn="cn=Manager,dc=test,dc=mydomain,dc=com"
    bindmethod=simple
    credentials=mypassword
    searchbase="dc=test,dc=mydomain,dc=com"
    attrs="cn,sn,displayName,givenName,mail,uid"
    type=refreshAndPersist
    retry="10 6 60 +"

我不知道是什么问题。如有任何帮助,我们将不胜感激。

最佳答案

去掉{0}{2}。OpenLDAP将输入序列号。

关于linux - ldapmodify:无效格式(第4行)条目:“olcDatabase = {2},cn = config”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/46983813/

10-15 01:39