fix: default LDAP USER_FILTER

This commit is contained in:
Éloi Rivard 2024-03-29 14:45:04 +01:00
parent bfae3fbe18
commit e299c84cab
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184

View file

@ -34,7 +34,7 @@ class LDAPSettings(BaseModel):
USER_RDN: str = "uid"
"""The attribute to identify an object in the User DN."""
USER_FILTER: str = "member={user.id}"
USER_FILTER: str = "(|(uid={{ login }})(mail={{ login }}))"
"""Filter to match users on sign in.
For instance ``(|(uid={{ login }})(mail={{ login }}))``.