svn commit: samba r4226 - branches/SAMBA_3_0/source/rpcclient trunk/source/rpcclient

gd at samba.org gd at samba.org
Wed Dec 15 19:37:35 GMT 2004


Author: gd
Date: 2004-12-15 19:37:35 +0000 (Wed, 15 Dec 2004)
New Revision: 4226

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4226

Log:
display infolevel 12 in query_dom_info.

Guenther

Modified:
   branches/SAMBA_3_0/source/rpcclient/cmd_samr.c
   trunk/source/rpcclient/cmd_samr.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpcclient/cmd_samr.c
===================================================================
--- branches/SAMBA_3_0/source/rpcclient/cmd_samr.c	2004-12-15 15:39:38 UTC (rev 4225)
+++ branches/SAMBA_3_0/source/rpcclient/cmd_samr.c	2004-12-15 19:37:35 UTC (rev 4226)
@@ -170,6 +170,13 @@
 	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 @@
 	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);

Modified: trunk/source/rpcclient/cmd_samr.c
===================================================================
--- trunk/source/rpcclient/cmd_samr.c	2004-12-15 15:39:38 UTC (rev 4225)
+++ trunk/source/rpcclient/cmd_samr.c	2004-12-15 19:37:35 UTC (rev 4226)
@@ -170,6 +170,13 @@
 	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 @@
 	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);



More information about the samba-cvs mailing list