configure authz mappings for gssapi authenticated users

This commit is contained in:
Timo Makinen 2019-06-06 01:54:54 +03:00
parent 1979925f7e
commit 11e4a82a35

View file

@ -94,10 +94,15 @@ authz-regexp
authz-regexp
"gidNumber=([0-9]\+)\\\+uidNumber=([0-9]\+),cn=peercred,cn=external,cn=auth"
"ldap:///{{ ldap_basedn }}??sub?(&(uidNumber=$2)(objectClass=posixAccount))"
# map kerberos users
authz-regexp
"uid=([^,]\+),cn=gssapi,cn=auth"
"ldap:///{{ ldap_basedn }}??sub?(&(uid=$1)(objectClass=posixAccount))"
# require authentication for authenticated users that don't match above
access to *
by dn.children="cn=peercred,cn=external,cn=auth" auth
by dn.children="cn=gssapi,cn=auth" auth
by anonymous auth
by * break