From e3a867b059728a51498255115c74030052adf3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Mon, 24 Nov 2008 18:49:37 +0100 Subject: s3-samr: fix init_samr_user_info{23,24} callers. Guenther (cherry picked from commit 82dfb92cae1ffc52a92ea27ba96dc875ce0ae4a1) --- source/utils/net_rpc.c | 2 +- source/utils/net_rpc_join.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'source/utils') diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c index fb3002ea928..5b168016551 100644 --- a/source/utils/net_rpc.c +++ b/source/utils/net_rpc.c @@ -5257,7 +5257,7 @@ static NTSTATUS rpc_trustdom_add_internals(struct net_context *c, 0, 0, ACB_DOMTRUST, SAMR_FIELD_ACCT_FLAGS, hours, 0, 0, 0, 0, 0, 0, 0, - crypt_pwd.data, 24); + &crypt_pwd); result = rpccli_samr_SetUserInfo2(pipe_hnd, mem_ctx, &user_pol, diff --git a/source/utils/net_rpc_join.c b/source/utils/net_rpc_join.c index 5bc38f979f4..d8641bfb230 100644 --- a/source/utils/net_rpc_join.c +++ b/source/utils/net_rpc_join.c @@ -343,7 +343,8 @@ int net_rpc_join_newstyle(struct net_context *c, int argc, const char **argv) &cli->user_session_key, &crypt_pwd); - init_samr_user_info24(&set_info.info24, crypt_pwd.data, 24); + init_samr_user_info24(&set_info.info24, &crypt_pwd, + PASS_DONT_CHANGE_AT_NEXT_LOGON); CHECK_RPC_ERR(rpccli_samr_SetUserInfo2(pipe_hnd, mem_ctx, &user_pol, -- cgit v1.2.1