将用户和组权限(ACL)存储到LDAP
我试图将ACL权限存储到LDAP。 我有权限用户和组(用户属于多个组)。 这里是我创build的结构: ou=Groups cn=Admin [posixGroup] {memberUid=andrew, memberUid=johny} cn=Right {resource:ftp1, action:all} cn=Right {resource:ftp2, action:all} cn=Editor [posixGroup] {memberUid=joseph} cn=Right {resource:ftp1, action:list} ou=People cn=andrew {uid=andrew} cn=Right {resource:ftp3, action:all} cn=johny {uid=johny} cn=joseph {uid=joseph} 括号{}中有属性。 那么,在安德鲁连接到ftp3时,我想检查权限,所以我查询: (|(memberUid=andrew)(uid=andrew)) 但我只得到cn = Rights:cn = andrew和cn = Admin的父元素。 是否有可能编写查询返回cn = Right元素使用filter由memberUid在父母中定义的uid元素? 或者结构必须改变某种方式。 非常感谢您的宝贵时间。 安德鲁