OpenLDAP – ACL“设置”表示法不正确
我必须在Ubuntu 12.04服务器上设置一个外部匿名可访问的LDAP目录,并且我想要将authentication和内部数据保存在不同的子树中。 LDAP布局示例 dc=example.com,dc=com organizationUnit: ou=hie_ext,dc=example,dc=com organizationUnit: ou=group1,ou=hie_ext,dc=example,dc=com inetOrgPerson: cn=user1,ou=group1,ou=hie_ext,dc=example,dc=com inetOrgPerson: cn=user2,ou=group1,ou=hie_ext,dc=example,dc=com organizationUnit: ou=group2,ou=hie_ext,dc=example,dc=com organizationUnit: ou=group_auth,dc=example,dc=com account: uid=group1,password=XXX,ou=group_auth,dc=example,dc=com 这个想法是uid = group1 auth将能够在ou = hie_ext,ou = group1下添加/编辑(“写”基本上)条目。 我尝试了一个像这样的ACL规则: access to dn.children="ou=hie_ext,dc=example,dc=com" by set="this/ou & user/uid" write by * none 当我使用slapacltesting写权限的时候,如果我testing的话,我会得到“允许” "ou=group1,ou=hie_ext,dc=example,dc=com" 但是当我testing时“拒绝” "cn=user1,ou=group1,ou=hie_ext,dc=example,dc=com" 这对我来说似乎有些</s> </s>。 我可能忽视了一些显而易见的事情(在这一点上,我对LDAP很绿)。 对slapacl运行“-d trace”选项并没有什么帮助,因为我不知道我在看什么。 🙂 更新: 所以,虽然“-d trace”对我来说太有用了,我已经意识到“-d acl”这可能会更有帮助。 所以如果我跑步 slapacl -f […]