ldap_server: Add memberOf overlay support

This commit is contained in:
Timo Makinen 2023-02-19 14:25:39 +00:00
parent f17d1ff8db
commit 04b332aa28

View file

@ -39,6 +39,7 @@ moduleload ppolicy.la
moduleload syncprov.la
#moduleload smbkrb5pwd.la
moduleload constraint.la
moduleload memberof.la
# certificates and ciphers (unfortunately modern cipher suite didn't work)
TLSCertificateFile {{ tls_certs }}/{{ ldap_server_cert }}.crt
@ -77,6 +78,11 @@ overlay constraint
constraint_attribute loginShell regex ^/bin/(bash|tcsh|zsh)$
constraint_attribute uniqueMember uri ldap:///ou=People,{{ ldap_basedn }}?entryDN?one?(objectClass=inetOrgPerson)
overlay memberof
memberof-group-oc groupOfUniqueNames
memberof-member-ad uniqueMember
memberof-memberof-ad memberOf
# database directory
# chmod 700 so ldap:ldap can create encrypted backups with group readable
# access without access to clear text data