From 9918e74984467ebaae306f2e3f3bfdc7453a1327 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 13 Feb 2007 16:04:36 +0000 Subject: r21320: Display query_user info level 16 in rpcclient. Guenther (This used to be commit bc77622134e606b8a643454493ba316f84312d52) --- source3/rpcclient/cmd_samr.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index e54ec2a35c..fc11739ad5 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -46,6 +46,14 @@ static void display_sam_user_info_9(SAM_USER_INFO_9 *usr) printf("\tPrimary group RID :\tox%x\n", usr->rid_group); } +/**************************************************************************** + display sam_user_info_16 structure + ****************************************************************************/ +static void display_sam_user_info_16(SAM_USER_INFO_16 *usr) +{ + printf("\tAcct Flags :\tox%x\n", usr->acb_info); +} + /**************************************************************************** display sam_user_info_21 structure ****************************************************************************/ @@ -411,15 +419,18 @@ static NTSTATUS cmd_samr_query_user(struct rpc_pipe_client *cli, goto done; switch (user_ctr->switch_value) { - case 21: - display_sam_user_info_21(user_ctr->info.id21); - break; case 7: display_sam_user_info_7(user_ctr->info.id7); break; case 9: display_sam_user_info_9(user_ctr->info.id9); break; + case 16: + display_sam_user_info_16(user_ctr->info.id16); + break; + case 21: + display_sam_user_info_21(user_ctr->info.id21); + break; default: printf("Unsupported infolevel: %d\n", info_level); break; -- cgit