请你能帮我解决这个OpenLDAP的错误?
### ldif - To change ACL ###### # userPassword may be written only by users themselves dn: olcDatabase={1}hdb,cn=config changetype: modify add: olcAccess # Allow access via localhost to add or modify keys. # Allow authenticated PGP Users to update keys. # Allow anyone else to read the keys. olcAccess: {2} to dn.subtree="ou=PGP Keys,dc=example,dc=net" by peername.ip=127.0.0.1 write by peername.ip=:: write by dn.regex="^uid=([^,]+),ou=PGP Users,dc=example,dc=net" write by * read # Allow any connection to localhost to update the PGP keys # (including removing them!) This is only needed if the anonymous # updates from localhost are desired. dn: cn=config add: olcAllows olcAllows: update_anon
当我尝试修改/添加它
ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/keyserver-acl.ldif
要么
ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/keyserver-acl.ldif
没有经过,它总是提示错误的属性types的恼人的错误
******错误
root @ keyserver:/ tmp#ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/keyserver-acl.ldif SASL / EXTERNALauthentication启动SASL用户名:gidNumber = 0 + uidNumber = 0,cn = peercred,cn = external,cn = auth SASL SSF:0 ldapadd:在第5行的错误attributeType,条目“olcDatabase = {1} hdb,cn = config”
我相信你需要在dn: cn=config行之前有一个空行。