diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/chgpasswd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c index 8dff2f7d81..9dbd57129c 100644 --- a/source3/smbd/chgpasswd.c +++ b/source3/smbd/chgpasswd.c @@ -870,13 +870,8 @@ BOOL change_oem_password(SAM_ACCOUNT *hnd, char *new_passwd, BOOL override) { int ret; - uchar new_nt_p16[16]; - uchar new_p16[16]; - - nt_lm_owf_gen(new_passwd, new_nt_p16, new_p16); - pdb_set_lanman_passwd (hnd, new_p16); - pdb_set_nt_passwd (hnd, new_nt_p16); + pdb_set_plaintext_passwd (hnd, new_passwd); /* Now write it into the file. */ become_root(); |