diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-09-26 11:55:13 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-09-26 11:55:13 +0000 |
commit | ce676f8bfc6222df1e05b164420efab30eb1b2e1 (patch) | |
tree | cefb680a3a1421919294a49e590d99d733a8e870 /source/smbd | |
parent | 42402c87d6bcff71b700e497b74d2600d7ce8b95 (diff) | |
download | samba-ce676f8bfc6222df1e05b164420efab30eb1b2e1.tar.gz samba-ce676f8bfc6222df1e05b164420efab30eb1b2e1.tar.xz samba-ce676f8bfc6222df1e05b164420efab30eb1b2e1.zip |
Update for new pdb_set_plaintext_passwd() interface.
Diffstat (limited to 'source/smbd')
-rw-r--r-- | source/smbd/chgpasswd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index 8dff2f7d817..9dbd57129c7 100644 --- a/source/smbd/chgpasswd.c +++ b/source/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(); |