summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-12-06 00:28:34 +0100
committerGünther Deschner <gd@samba.org>2009-01-06 16:02:10 +0100
commit46f55ef5bc73f9a9d563913433d7d71655123aaa (patch)
tree7de7d92ea70ef2c50b0f0d4f9e6cd534a7ea2f0a /source3/libnet
parenta97c9bab4423d73c8b97bd6589bd1a7ff226cfc7 (diff)
downloadsamba-46f55ef5bc73f9a9d563913433d7d71655123aaa.tar.gz
samba-46f55ef5bc73f9a9d563913433d7d71655123aaa.tar.bz2
samba-46f55ef5bc73f9a9d563913433d7d71655123aaa.zip
s3-samr: avoid all init_samr_user* functions.
Guenther
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 51d979074b..18743aad55 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -933,8 +933,8 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
&cli->user_session_key,
&crypt_pwd_ex);
- init_samr_user_info26(&user_info.info26, &crypt_pwd_ex,
- PASS_DONT_CHANGE_AT_NEXT_LOGON);
+ user_info.info26.password = crypt_pwd_ex;
+ user_info.info26.password_expired = PASS_DONT_CHANGE_AT_NEXT_LOGON;
status = rpccli_samr_SetUserInfo2(pipe_hnd, mem_ctx,
&user_pol,
@@ -949,8 +949,8 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
&cli->user_session_key,
&crypt_pwd);
- init_samr_user_info24(&user_info.info24, &crypt_pwd,
- PASS_DONT_CHANGE_AT_NEXT_LOGON);
+ user_info.info24.password = crypt_pwd;
+ user_info.info24.password_expired = PASS_DONT_CHANGE_AT_NEXT_LOGON;
status = rpccli_samr_SetUserInfo2(pipe_hnd, mem_ctx,
&user_pol,