Author: mimir Date: 2004-08-12 07:04:40 +0000 (Thu, 12 Aug 2004) New Revision: 1763 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1763&nolog=1 Log: Remove pseudo-hashing code from passdb backend.
rafal Modified: trunk/source/passdb/pdb_ldap.c Changeset: Modified: trunk/source/passdb/pdb_ldap.c =================================================================== --- trunk/source/passdb/pdb_ldap.c 2004-08-12 06:58:10 UTC (rev 1762) +++ trunk/source/passdb/pdb_ldap.c 2004-08-12 07:04:40 UTC (rev 1763) @@ -3284,7 +3284,6 @@ { fstring sidstr, mtime_str, flags_str, attr_val; const DOM_SID *sid; - char hexpwd[16]; int ret; const char *attr_domain, *attr_ntpw, *attr_sid, *attr_lct, *attr_flags; @@ -3315,20 +3314,19 @@ } /* Trust password itself */ - pdb_sethexpwd(hexpwd, pdb_get_tp_pass(trustpw), 0); if (entry) { /* in case of updating we only need to do that if anything has been entered at new password prompt */ if (strlen(pdb_get_tp_pass(trustpw))) { ret = smbldap_get_single_attribute(ldap_state->smbldap_state->ldap_struct, entry, attr_ntpw, attr_val, sizeof(attr_val)); - if (ret && strncmp(hexpwd, attr_val, sizeof(attr_val))) + if (ret && strncmp(pdb_get_tp_pass(trustpw), attr_val, sizeof(attr_val))) smbldap_make_mod(ldap_state->smbldap_state->ldap_struct, entry, mod, - attr_ntpw, hexpwd); + attr_ntpw, pdb_get_tp_pass(trustpw)); } } else { smbldap_make_mod(ldap_state->smbldap_state->ldap_struct, entry, mod, - attr_ntpw, hexpwd); + attr_ntpw, pdb_get_tp_pass(trustpw)); } /* SID of the trust password */