summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-15 05:02:29 +0000
committerTim Potter <tpot@samba.org>2001-05-15 05:02:29 +0000
commitbaff5a6569f1b06e72ce7d4f10250b08129a157c (patch)
tree5923cf7a347d88c39884d7a3a82aedc38b6b29e4
parentaf5a6bb85e095aef48e4720eef3b605c726b765c (diff)
downloadsamba-baff5a6569f1b06e72ce7d4f10250b08129a157c.tar.gz
samba-baff5a6569f1b06e72ce7d4f10250b08129a157c.tar.bz2
samba-baff5a6569f1b06e72ce7d4f10250b08129a157c.zip
Fixed up SAM_USERINFO_CTR dynamic stuff in cmd_samr_query_user()
(This used to be commit 22b760e246f8fcf79daf24542cc35bdf41d1fea7)
-rw-r--r--source3/rpcclient/cmd_samr.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index 8ab1bf9462..d6d1ff9edb 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -146,8 +146,7 @@ static uint32 cmd_samr_query_user(struct cli_state *cli, int argc, char **argv)
BOOL got_connect_pol = False,
got_domain_pol = False,
got_user_pol = False;
- SAM_USERINFO_CTR user_ctr;
- SAM_USER_INFO_21 info_21;
+ SAM_USERINFO_CTR *user_ctr;
fstring server;
TALLOC_CTX *mem_ctx;
uint32 user_rid;
@@ -204,17 +203,14 @@ static uint32 cmd_samr_query_user(struct cli_state *cli, int argc, char **argv)
got_user_pol = True;
ZERO_STRUCT(user_ctr);
- ZERO_STRUCT(info_21);
- user_ctr.info.id21 = &info_21;
-
- if ((result = cli_samr_query_userinfo(cli, mem_ctx, &user_pol, info_level,
- &user_ctr))
+ if ((result = cli_samr_query_userinfo(cli, mem_ctx, &user_pol,
+ info_level, &user_ctr))
!= NT_STATUS_NOPROBLEMO) {
goto done;
}
- display_sam_user_info_21(&info_21);
+ display_sam_user_info_21(user_ctr->info.id21);
done:
if (got_user_pol) cli_samr_close(cli, mem_ctx, &user_pol);