|
Lines 588-595
def password_sync_ucs_to_s4(s4connector, key, object):
Link Here
|
| 588 |
if unicodePwd_attr: |
588 |
if unicodePwd_attr: |
| 589 |
modlist.append((ldap.MOD_DELETE, 'unicodePwd', unicodePwd_attr)) |
589 |
modlist.append((ldap.MOD_DELETE, 'unicodePwd', unicodePwd_attr)) |
| 590 |
if ucsNThash: |
590 |
if ucsNThash: |
| 591 |
unicodePwd_new = binascii.a2b_hex(ucsNThash) |
591 |
try: |
| 592 |
modlist.append((ldap.MOD_ADD, 'unicodePwd', unicodePwd_new)) |
592 |
unicodePwd_new = binascii.a2b_hex(ucsNThash) |
|
|
593 |
modlist.append((ldap.MOD_ADD, 'unicodePwd', unicodePwd_new)) |
| 594 |
except TypeError as exc: |
| 595 |
if ucsNThash.startswith("NO PASSWORD"): |
| 596 |
pass |
| 597 |
else: |
| 598 |
raise |
| 593 |
|
599 |
|
| 594 |
if not ucsLMhash == s4LMhash: |
600 |
if not ucsLMhash == s4LMhash: |
| 595 |
ud.debug(ud.LDAP, ud.INFO, "password_sync_ucs_to_s4: LM Hash S4: %s LM Hash UCS: %s" % (s4LMhash, ucsLMhash)) |
601 |
ud.debug(ud.LDAP, ud.INFO, "password_sync_ucs_to_s4: LM Hash S4: %s LM Hash UCS: %s" % (s4LMhash, ucsLMhash)) |