diff options
author | Gerald Carter <jerry@samba.org> | 2006-02-21 14:34:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:10:16 -0500 |
commit | 6f1afa4acc93a07d0ee9940822d7715acaae634f (patch) | |
tree | 82490b8942c4c562e381afbabbde14516f6b637d /source/smbd/chgpasswd.c | |
parent | 77332f0738423d16a2b5e21af6aaf92b029da0ef (diff) | |
download | samba-6f1afa4acc93a07d0ee9940822d7715acaae634f.tar.gz samba-6f1afa4acc93a07d0ee9940822d7715acaae634f.tar.xz samba-6f1afa4acc93a07d0ee9940822d7715acaae634f.zip |
r13590: * replace all pdb_init_sam[_talloc]() calls with samu_new()
* replace all pdb_{init,fill}_sam_pw() calls with samu_set_unix()
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r-- | source/smbd/chgpasswd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index f8ae7233c64..8df824a323e 100644 --- a/source/smbd/chgpasswd.c +++ b/source/smbd/chgpasswd.c @@ -768,7 +768,9 @@ static NTSTATUS check_oem_password(const char *user, *hnd = NULL; - pdb_init_sam(&sampass); + if ( !(sampass = samu_new( NULL )) ) { + return NT_STATUS_NO_MEMORY; + } become_root(); ret = pdb_getsampwnam(sampass, user); |