Score:0

Access control list for LDAP OU (Organisational Unit) in OpenLDAP

cn flag

I am new to LDAP (currently using OpenLDAP 2.4) and I am struggling to define a ACL entry using slapd that will manage the various Access Levels for entries that are child entries of an OU.

The structure is as follows:

cn=user1,ou=users,dc=somedomain,dc=com
cn=user2,ou=users,dc=somedomain,dc=com

This is what I currently have, but when implemented, the children of the OU "users" don't have the access level as required:

access to dn.subtree="ou=users,dc=somedomain,dc=com" 
by dn.subtree="ou=users,dc=somedomain,dc=com" read
by * none

I would like to have all the children of the OU to only be able to read the contents of the OU and it's children.

Is this possibly using dn.subtree, or can this only be achieved using filters?

Any help would be greatly appreciated.

Kind regards

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.