diff options
author | Tim Potter <tpot@samba.org> | 2001-05-15 05:02:29 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-05-15 05:02:29 +0000 |
commit | 22b760e246f8fcf79daf24542cc35bdf41d1fea7 (patch) | |
tree | 94ddcf94da207f4369f565d50dd65cef1148c773 /source/rpcclient/cmd_samr.c | |
parent | 34d527240086b135a24c7329d45bff715ae50485 (diff) | |
download | samba-22b760e246f8fcf79daf24542cc35bdf41d1fea7.tar.gz samba-22b760e246f8fcf79daf24542cc35bdf41d1fea7.tar.xz samba-22b760e246f8fcf79daf24542cc35bdf41d1fea7.zip |
Fixed up SAM_USERINFO_CTR dynamic stuff in cmd_samr_query_user()
Diffstat (limited to 'source/rpcclient/cmd_samr.c')
-rw-r--r-- | source/rpcclient/cmd_samr.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/rpcclient/cmd_samr.c b/source/rpcclient/cmd_samr.c index 8ab1bf94620..d6d1ff9edb9 100644 --- a/source/rpcclient/cmd_samr.c +++ b/source/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); |