Hi,
I want to give a certain DN access to userpassword attribute and to be able to delete and add entries from one OU on my LDAP tree.
---
tree-root
..OU=adm
...."DN I want to give rights", lets call it "webmail-domain-xyz".
..OU=people
....cn=10000000000,ou=people,dc=organization,dc=org
---
The DN's "webmail-domain-xyz" will have access will always be the form "cn=10000000000,ou=people,dc=organization,dc=org", where the cn will be from 10000000000 to 19999999999.
My question is related to my ACL's processing:
------------ current working ACL's -----
# ACL 0
access to dn.base="cn=Subschema"
by * read
# ACL 1
access to attrs=userPKCS12
by self write
by * auth
# ACL 2
access to attrs=shadowLastChange
by self write
by * read
# ACL 3
access to attrs=userPassword
by dn="cn=reallysureyouwannauserootdn,dc=organization,dc=org" write
by anonymous auth
by self write
by * none
# ACL 4
access to dn.base=""
by * read
# ACL 5, 6
# (So Dovecot won't look where it's not supposed to, and will not complain about duplicated entries)
access to dn.subtree="ou=moodle001,ou=moodleusers,ou=people,dc=organization,dc=org"
by dn="uid=MoodleLDAPAdmin001,ou=adm,dc=organization,dc=org" write
by dn="uid=dovecot-domain-xyz,ou=adm,dc=organization,dc=org" none
by * read
access to dn.subtree="ou=moodle001,ou=moodlecourses,dc=organization,dc=org"
by dn="uid=MoodleLDAPAdmin001,ou=adm,dc=organization,dc=org" write
by dn="uid=dovecot-domain-xyz,ou=adm,dc=organization,dc=org" none
by * read
# ACL 7
# So webmail related scripts can add new users to LDAP.
access to dn.subtree="ou=people,dc=organization,dc=org"
by dn="uid=webmail-domain-xyz,ou=adm,dc=organization,dc=org" write
by * read
# ACL 8
access to *
by dn="cn=reallysureyouwannauserootdn,dc=organization,dc=org" write
by * read
------------ current working ACL's -----
Q1) This is the ACL I need to add(?):
----- new acl
access to dn.regex="^(.+,)?cn=([^,]+),ou=people,dc=organization,dc=org$" attrs=userPassword
by dn="cn=reallysureyouwannauserootdn,dc=organization,dc=org" write
by dn="uid=webmail-domain-xyz,ou=adm,dc=organization,dc=org" write
by anonymous auth
by self write
by * none
----- new acl