svn commit: samba r13632 - in branches/SAMBA_4_0/source/librpc/idl: .

gd at samba.org gd at samba.org
Wed Feb 22 13:56:46 GMT 2006


Author: gd
Date: 2006-02-22 13:56:46 +0000 (Wed, 22 Feb 2006)
New Revision: 13632

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

Log:
The "password_properties" is a bitmask as well.

Guenther

Modified:
   branches/SAMBA_4_0/source/librpc/idl/samr.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/samr.idl
===================================================================
--- branches/SAMBA_4_0/source/librpc/idl/samr.idl	2006-02-22 13:53:33 UTC (rev 13631)
+++ branches/SAMBA_4_0/source/librpc/idl/samr.idl	2006-02-22 13:56:46 UTC (rev 13632)
@@ -133,10 +133,20 @@
 		ROLE_DOMAIN_PDC    = 3
 	} samr_Role;
 
+	/* password properties flags */
+	typedef [public,bitmap32bit] bitmap {
+		DOMAIN_PASSWORD_COMPLEX		= 0x00000001,
+		DOMAIN_PASSWORD_NO_ANON_CHANGE  = 0x00000002,
+		DOMAIN_PASSWORD_NO_CLEAR_CHANGE = 0x00000004,
+		DOMAIN_PASSWORD_LOCKOUT_ADMINS  = 0x00000008,
+		DOMAIN_PASSWORD_STORE_CLEARTEXT = 0x00000010,
+		DOMAIN_REFUSE_PASSWORD_CHANGE   = 0x00000020
+	} samr_PasswordProperties;
+
 	typedef struct {
 		uint16 min_password_length;
 		uint16 password_history_length;
-		uint32 password_properties;
+		samr_PasswordProperties password_properties;
 		/* yes, these are signed. They are in negative 100ns */
 		dlong  max_password_age;
 		dlong  min_password_age;
@@ -935,17 +945,9 @@
 	/************************/
 	/* Function    0x2c     */
 
-	/* password properties flags */
-	const uint32 DOMAIN_PASSWORD_COMPLEX         = 0x00000001;
-	const uint32 DOMAIN_PASSWORD_NO_ANON_CHANGE  = 0x00000002;
-	const uint32 DOMAIN_PASSWORD_NO_CLEAR_CHANGE = 0x00000004;
-	const uint32 DOMAIN_PASSWORD_LOCKOUT_ADMINS  = 0x00000008;
-	const uint32 DOMAIN_PASSWORD_STORE_CLEARTEXT = 0x00000010;
-	const uint32 DOMAIN_REFUSE_PASSWORD_CHANGE   = 0x00000020;
-
 	typedef struct {
 		uint16 min_password_length;
-		uint32 password_properties;
+		samr_PasswordProperties password_properties;
 	} samr_PwInfo;
 
 	NTSTATUS samr_GetUserPwInfo(



More information about the samba-cvs mailing list