summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2004-12-15 19:37:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:39 -0500
commit9fd22239ed55d82261c30f788b1c8b3c09109b36 (patch)
treefe5cbd460d99bb1ec303a0f5e45a063fdae16787 /source3
parent7725ad5a877b157966ebca0162ce62931d213db2 (diff)
downloadsamba-9fd22239ed55d82261c30f788b1c8b3c09109b36.tar.gz
samba-9fd22239ed55d82261c30f788b1c8b3c09109b36.tar.bz2
samba-9fd22239ed55d82261c30f788b1c8b3c09109b36.zip
r4226: display infolevel 12 in query_dom_info.
Guenther (This used to be commit d25f303f317ef6ec96799d396ca65ac500cae0ae)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_samr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index b55ef05cb3..f8be84a5c9 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -170,6 +170,13 @@ static void display_sam_unk_info_2(SAM_UNK_INFO_2 *info2)
printf("Unknown 6:\t0x%x\n", info2->unknown_6);
}
+static void display_sam_unk_info_12(SAM_UNK_INFO_12 *info12)
+{
+ printf("Bad password lockout duration: %s\n", display_time(info12->duration));
+ printf("Reset Lockout after: %s\n", display_time(info12->reset_count));
+ printf("Lockout after bad attempts: %d\n", info12->bad_attempt_lockout);
+}
+
static void display_sam_info_1(SAM_ENTRY1 *e1, SAM_STR1 *s1)
{
fstring tmp;
@@ -1123,6 +1130,9 @@ static NTSTATUS cmd_samr_query_dominfo(struct cli_state *cli,
case 2:
display_sam_unk_info_2(&ctr.info.inf2);
break;
+ case 12:
+ display_sam_unk_info_12(&ctr.info.inf12);
+ break;
default:
printf("cannot display domain info for switch value %d\n",
switch_level);