summaryrefslogtreecommitdiff
path: root/source/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-24 18:49:37 +0100
committerKarolin Seeger <kseeger@samba.org>2008-12-08 15:36:06 +0100
commite3a867b059728a51498255115c74030052adf3ce (patch)
treefc76e5450720e546af811cd2025cdd1b1cd339fa /source/utils
parentcd16198913ed40149e3d3d3a607cefc046978780 (diff)
downloadsamba-e3a867b059728a51498255115c74030052adf3ce.tar.gz
s3-samr: fix init_samr_user_info{23,24} callers.
Guenther (cherry picked from commit 82dfb92cae1ffc52a92ea27ba96dc875ce0ae4a1)
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/net_rpc.c2
-rw-r--r--source/utils/net_rpc_join.c3
2 files changed, 3 insertions, 2 deletions
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,