View | Details | Raw Unified | Return to bug 49905
Collapse All | Expand All

(-)a/services/univention-s4-connector/modules/univention/s4connector/s4/password.py (-3 / +4 lines)
 Lines 600-610   def password_sync_ucs_to_s4(s4connector, key, object): Link Here 
600
	if not ucsLMhash == s4LMhash:
600
	if not ucsLMhash == s4LMhash:
601
		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))
602
		pwd_set = True
602
		pwd_set = True
603
		if dBCSPwd_attr:
604
			modlist.append((ldap.MOD_DELETE, 'dBCSPwd', dBCSPwd_attr))
605
		if ucsLMhash:
603
		if ucsLMhash:
606
			dBCSPwd_new = binascii.a2b_hex(ucsLMhash)
604
			dBCSPwd_new = binascii.a2b_hex(ucsLMhash)
607
			modlist.append((ldap.MOD_ADD, 'dBCSPwd', dBCSPwd_new))
605
			modlist.append((ldap.MOD_REPLACE, 'dBCSPwd', dBCSPwd_new))
606
		else:
607
			ud.debug(ud.LDAP, ud.INFO, "password_sync_ucs_to_s4: dBCSPwd should be removed in Samba 4 which is no longer possible, see Bug https://forge.univention.org/bugzilla/show_bug.cgi?id=49905")
608
			# modlist.append((ldap.MOD_DELETE, 'dBCSPwd', dBCSPwd_attr))
608
609
609
	if pwd_set or not supplementalCredentials:
610
	if pwd_set or not supplementalCredentials:
610
		if krb5Principal:
611
		if krb5Principal:

Return to bug 49905