openldap – ldap_modify:其他(例如,特定于实现)错误(80),处理程序退出1

使用以下方法修改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(无效)

所以,在续行前面加一个额外的空格:

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

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...