Creating an OpenLdap specific administrator group on LDAP

bm flag

I'am trying to create a simple specific administrator group on my OpenLdap server that is running slapd. There is currently no slapd file, and I have been working with the cn=config format.

I want to create a group with a user in it who can only manage what is in this group or below.

For example:

dn: olcDatabase={1}mdb,cn=config
changetype: modify
replace: olcAccess
olcAccess: to dn.subtree="cn=cry,ou=groups,dc=example,dc=org"
  by dn.exact="cn=dupont,ou=users,dc=example,dc=org" write
  by * none
olcAccess: to attrs=userPassword,shadowLastChange
  by self write
  by group.exact="cn=cry,ou=groups,dc=example,dc=org" write
  by anonymous auth
  by * auth
olcAccess: to *
  by self read
  by group.exact="cn=cry,ou=groups,dc=example,dc=org" write
  by * none

But for now, this code gives access to all LDAP.

Do i miss something ? Is it easier way to achieve this ?


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.