1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 01:14:21 +01:00

Fix encoding issues in AD backend

This commit is contained in:
Carpentier Pierre-Francois 2016-07-06 14:00:36 +02:00 committed by GitHub
parent 9edc7e545a
commit caef6a889e

View File

@ -180,14 +180,14 @@ class Backend(ldapcherry.backend.backendLdap.Backend):
ldap_client = self._bind()
dn = str('CN=%(cn)s,%(user_dn)s' % {
dn = self._str('CN=%(cn)s,%(user_dn)s' % {
'cn': cn,
'user_dn': self.userdn
})
attrs = {}
attrs['unicodePwd'] = str(password_value)
attrs['unicodePwd'] = self._str(password_value)
ldif = modlist.modifyModlist({'unicodePwd': 'tmp'}, attrs)
ldap_client.modify_s(dn, ldif)