bundles/openldap: fix config

This commit is contained in:
Franzi 2021-12-17 21:16:54 +01:00
parent 486dfe7fa5
commit 943b454b8a
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -62,26 +62,37 @@ memberof-refint TRUE
overlay ppolicy
#access to dn.one="ou=QZWI,dc=qzwi,dc=de"
# attrs=userPassword
# by anonymous auth
# by * break
access to dn.one="ou=Users,dc=qzwi,dc=de"
attrs=userPassword
by anonymous auth
by * break
#access to * by group="ou=qzwi-admins,ou=Groups,dc=qzwi,dc=de" manage by * break
access to *
by group="ou=qzwi-admins,ou=Groups,dc=qzwi,dc=de" manage
by * break
% for tree, matches in sorted(conf.get('access', {}).items()):
# ${tree}
% for access, user in sorted(matches.items()):
access to dn.sub="${tree}" by dn.exact="${user}" ${access} by * break
access to dn.sub="${tree}"
by dn.exact="${user}" ${access}
by * break
% endfor
# / ${tree}
% endfor
# Grant read access to all applications
#access to dn.children="ou=Applications,dc=qzwi,dc=de" attrs=userPassword by anonymous auth by * break
#access to dn.sub="ou=People,dc=qzwi,dc=de" by dn.children="ou=Applications,dc=qzwi,dc=de" read by * break
#access to dn.sub="ou=Groups,dc=qzwi,dc=de" by dn.children="ou=Applications,dc=qzwi,dc=de" read by * break
access to dn.children="ou=Applications,dc=qzwi,dc=de"
attrs=userPassword
by anonymous auth
by * break
access to dn.sub="ou=Users,dc=qzwi,dc=de"
by dn.children="ou=Applications,dc=qzwi,dc=de"
read by * break
access to dn.sub="ou=Groups,dc=qzwi,dc=de"
by dn.children="ou=Applications,dc=qzwi,dc=de"
read by * break
database monitor
rootDN "cn=admin,cn=Monitor"