mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
Fix encoding issues in AD backend
This commit is contained in:
parent
9edc7e545a
commit
caef6a889e
@ -180,14 +180,14 @@ class Backend(ldapcherry.backend.backendLdap.Backend):
|
|||||||
|
|
||||||
ldap_client = self._bind()
|
ldap_client = self._bind()
|
||||||
|
|
||||||
dn = str('CN=%(cn)s,%(user_dn)s' % {
|
dn = self._str('CN=%(cn)s,%(user_dn)s' % {
|
||||||
'cn': cn,
|
'cn': cn,
|
||||||
'user_dn': self.userdn
|
'user_dn': self.userdn
|
||||||
})
|
})
|
||||||
|
|
||||||
attrs = {}
|
attrs = {}
|
||||||
|
|
||||||
attrs['unicodePwd'] = str(password_value)
|
attrs['unicodePwd'] = self._str(password_value)
|
||||||
|
|
||||||
ldif = modlist.modifyModlist({'unicodePwd': 'tmp'}, attrs)
|
ldif = modlist.modifyModlist({'unicodePwd': 'tmp'}, attrs)
|
||||||
ldap_client.modify_s(dn, ldif)
|
ldap_client.modify_s(dn, ldif)
|
||||||
|
Loading…
Reference in New Issue
Block a user