r13632: The "password_properties" is a bitmask as well.
authorGünther Deschner <gd@samba.org>
Wed, 22 Feb 2006 13:56:46 +0000 (13:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:52:03 +0000 (13:52 -0500)
Guenther
(This used to be commit 0d918764b1f0c1aa65f826b9a845746c914f87df)

source4/librpc/idl/samr.idl

index 102e709ac3c4d6e4973ab9cf161cfe57995fb3b6..0ede613c1a70b53246fa6fbf02e62f753551d019 100644 (file)
                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;
        /************************/
        /* 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(