授予对authzTo属性的访问权限

我试图授予某些帐户授权访问authzTo属性,以允许代理授权 。

我试着添加这个ldif:

 dn: olcDatabase={-1}frontend,cn=config changetype: modify add: olcAccess olcAccess: {1}to authzTo by dn.children="ou=Special Accounts,dc=example,dc=com" auth - 

使用命令ldapadd -f perm.ldif -D "cn=admin,cn=config" -W

但得到这个错误:

 modifying entry "olcDatabase={-1}frontend,cn=config" ldap_modify: Other (eg, implementation specific) error (80) additional info: <olcAccess> handler exited with 1 

使用详细输出和debugging级别没有给我任何线索。 任何人都可以看到我做错了什么?

在完成其他权限之后,我意识到自己在做什么愚蠢的事情。 它应该是attrs=authzTo ,而不仅仅是authzTo本身。 而我真正想要的是

 to dn.children="ou=Special Accounts,dc=example,dc=com" attrs=authzTo by self auth