使用以下方法修改Open-LDAP配置时:
dn: olcDatabase={2}hdb,cn=config changetype: modify replace: olcAccess olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" write by * none
ldap_modify: Other (e.g.,implementation specific) error (80) additional info: <olcAccess> handler exited with 1
这是因为ldif文件中的行继续删除了第一个空格,并且该属性被认为是:{0}到* by dn.base =“gidNumber = 0 uidNumber = 0,cn = peercred,cn = external,cn = auth“writeby * none(无效)
原文链接:https://www.f2er.com/bash/385558.html所以,在续行前面加一个额外的空格:@H_403_4@
dn: olcDatabase={2}hdb,cn=config changetype: modify replace: olcAccess olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=auth" write by * none