diff options
author | Günther Deschner <gd@samba.org> | 2006-02-27 10:32:45 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2006-02-27 10:32:45 +0000 |
commit | 34738398012b8ce714586c77e39351c50e9ca629 (patch) | |
tree | dd99d9cea12b97597f32e8ebb841ba7a362b5e3c /source/smbd/chgpasswd.c | |
parent | f34ca8060a495000b26fbd038152ba0532898fa5 (diff) | |
download | samba-34738398012b8ce714586c77e39351c50e9ca629.tar.gz samba-34738398012b8ce714586c77e39351c50e9ca629.tar.xz samba-34738398012b8ce714586c77e39351c50e9ca629.zip |
r13711: * Correctly handle acb_info/acct_flags as uint32 not as uint16.
* Fix a couple of related parsing issues.
* in the info3 reply in a samlogon, return the ACB-flags (instead of
returning zero)
Guenther
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r-- | source/smbd/chgpasswd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index 8df824a323e..224ae3d763e 100644 --- a/source/smbd/chgpasswd.c +++ b/source/smbd/chgpasswd.c @@ -575,7 +575,7 @@ BOOL check_lanman_password(char *user, uchar * pass1, uchar unenc_new_pw[16]; uchar unenc_old_pw[16]; struct samu *sampass = NULL; - uint16 acct_ctrl; + uint32 acct_ctrl; const uint8 *lanman_pw; BOOL ret; @@ -641,7 +641,7 @@ BOOL change_lanman_password(struct samu *sampass, uchar *pass2) static uchar null_pw[16]; uchar unenc_new_pw[16]; BOOL ret; - uint16 acct_ctrl; + uint32 acct_ctrl; const uint8 *pwd; if (sampass == NULL) { @@ -755,7 +755,7 @@ static NTSTATUS check_oem_password(const char *user, uint8 *password_encrypted; const uint8 *encryption_key; const uint8 *lanman_pw, *nt_pw; - uint16 acct_ctrl; + uint32 acct_ctrl; uint32 new_pw_len; uchar new_nt_hash[16]; uchar new_lm_hash[16]; |