diff options
author | Günther Deschner <gd@samba.org> | 2008-12-06 00:28:34 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-01-06 16:02:10 +0100 |
commit | 46f55ef5bc73f9a9d563913433d7d71655123aaa (patch) | |
tree | 7de7d92ea70ef2c50b0f0d4f9e6cd534a7ea2f0a /source3/rpcclient | |
parent | a97c9bab4423d73c8b97bd6589bd1a7ff226cfc7 (diff) | |
download | samba-46f55ef5bc73f9a9d563913433d7d71655123aaa.tar.gz samba-46f55ef5bc73f9a9d563913433d7d71655123aaa.tar.bz2 samba-46f55ef5bc73f9a9d563913433d7d71655123aaa.zip |
s3-samr: avoid all init_samr_user* functions.
Guenther
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 426e7e9744..31977e9554 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -2676,10 +2676,12 @@ static NTSTATUS cmd_samr_setuserinfo_int(struct rpc_pipe_client *cli, memcpy(lm_hash, out.data, out.length); } - init_samr_user_info18(&info.info18, - lm_hash, - nt_hash, - password_expired); + memcpy(info.info18.nt_pwd.hash, nt_hash, 16); + memcpy(info.info18.lm_pwd.hash, lm_hash, 16); + info.info18.nt_pwd_active = true; + info.info18.lm_pwd_active = true; + info.info18.password_expired = password_expired; + break; case 21: ZERO_STRUCT(info.info21); @@ -2731,9 +2733,9 @@ static NTSTATUS cmd_samr_setuserinfo_int(struct rpc_pipe_client *cli, break; case 24: - init_samr_user_info24(&info.info24, - &pwd_buf, - password_expired); + info.info24.password = pwd_buf; + info.info24.password_expired = password_expired; + break; case 25: ZERO_STRUCT(info.info25); @@ -2749,9 +2751,9 @@ static NTSTATUS cmd_samr_setuserinfo_int(struct rpc_pipe_client *cli, break; case 26: - init_samr_user_info26(&info.info26, - &pwd_buf_ex, - password_expired); + info.info26.password = pwd_buf_ex; + info.info26.password_expired = password_expired; + break; default: return NT_STATUS_INVALID_INFO_CLASS; |