ldap_server: Set correct DN when using SASL auth
This commit is contained in:
parent
1c9da5f582
commit
a98696e1c1
1 changed files with 8 additions and 0 deletions
|
@ -124,6 +124,14 @@ authz-regexp
|
||||||
authz-regexp
|
authz-regexp
|
||||||
"uid=([^,]\+),cn=gss-spnego,cn=auth"
|
"uid=([^,]\+),cn=gss-spnego,cn=auth"
|
||||||
"ldap:///{{ ldap_basedn }}??sub?(&(uid=$1)(objectClass=posixAccount))"
|
"ldap:///{{ ldap_basedn }}??sub?(&(uid=$1)(objectClass=posixAccount))"
|
||||||
|
# map sasl plain users
|
||||||
|
authz-regexp
|
||||||
|
"uid=([^.]\+),cn=plain,cn=auth"
|
||||||
|
"ldap:///{{ ldap_basedn }}??sub?(&(uid=$1)(objectClass=posixAccount))"
|
||||||
|
# map sasl login users
|
||||||
|
authz-regexp
|
||||||
|
"uid=([^.]\+),cn=login,cn=auth"
|
||||||
|
"ldap:///{{ ldap_basedn }}??sub?(&(uid=$1)(objectClass=posixAccount))"
|
||||||
|
|
||||||
# require authentication for authenticated users that don't match above
|
# require authentication for authenticated users that don't match above
|
||||||
access to *
|
access to *
|
||||||
|
|
Loading…
Add table
Reference in a new issue