Skip to content

Commit

Permalink
fix: default LDAP USER_FILTER
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Mar 29, 2024
1 parent bfae3fb commit e299c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canaille/backends/ldap/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}))``.
Expand Down

0 comments on commit e299c84

Please sign in to comment.