From c907f33396ca1b16baf67e50ef8116c45bd612a5 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 26 Sep 2001 11:55:13 +0000 Subject: Update for new pdb_set_plaintext_passwd() interface. (This used to be commit ce676f8bfc6222df1e05b164420efab30eb1b2e1) --- source3/smbd/chgpasswd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source3/smbd/chgpasswd.c') 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(); -- cgit