django-cas-server icon indicating copy to clipboard operation
django-cas-server copied to clipboard

Allow more complex LDAP user queries

Open Epithumia opened this issue 1 year ago • 0 comments

As it stands, LDAP queries are limited to simple filters, since only one parameter can only be used the way formatting is done in auth.py. This PR rewrites the two culprit lines to allow a user query such as CAS_LDAP_USER_QUERY="(&(objectclass=*)(|(uid=%(username)s)(mail=%(username)s)))" plus the default value and doc line.

Epithumia avatar Aug 28 '24 12:08 Epithumia