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 | c907f33396ca1b16baf67e50ef8116c45bd612a5 (patch) | |
tree | ba4fb3cf44bb9401c5c0bad37666ed985531acfe | |
parent | d74d82bddce5d6cf3f554ff014e08f2aeb2c14bc (diff) | |
download | samba-c907f33396ca1b16baf67e50ef8116c45bd612a5.tar.gz samba-c907f33396ca1b16baf67e50ef8116c45bd612a5.tar.bz2 samba-c907f33396ca1b16baf67e50ef8116c45bd612a5.zip |
Update for new pdb_set_plaintext_passwd() interface.
(This used to be commit ce676f8bfc6222df1e05b164420efab30eb1b2e1)
-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(); |