diff options
author | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-02-11 20:14:48 +0100 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-02-11 20:14:48 +0100 |
commit | 0bceb5c49a9a4834cfcfcdf8dfcb5de859db204b (patch) | |
tree | 7a780a452ec467623a53483390b05e494995e97e /accounts/backend | |
parent | 9d98d90a435c0d94d16c15b650ecd10e264ec77c (diff) | |
download | web-0bceb5c49a9a4834cfcfcdf8dfcb5de859db204b.tar.gz web-0bceb5c49a9a4834cfcfcdf8dfcb5de859db204b.tar.bz2 web-0bceb5c49a9a4834cfcfcdf8dfcb5de859db204b.zip |
ldap: Port away from escape_attribute_value
Diffstat (limited to 'accounts/backend')
-rw-r--r-- | accounts/backend/user/ldap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/backend/user/ldap.py b/accounts/backend/user/ldap.py index 57dd8ac..61bd445 100644 --- a/accounts/backend/user/ldap.py +++ b/accounts/backend/user/ldap.py @@ -3,7 +3,7 @@ import ldap3 from ldap3.utils.conv import escape_filter_chars -from ldap3.utils.dn import escape_attribute_value +from ldap3.utils.dn import escape_rdn from . import Backend, InvalidPasswordError, NoSuchUserError, ShouldNotHappen from accounts.models import Account @@ -14,7 +14,7 @@ def _escape(value, wildcard=False): value = str(value) if not wildcard: value = escape_filter_chars(value) - return escape_attribute_value(value) + return escape_rdn(value) def _change_password(conn, dn, passwords, as_admin=False): |