summaryrefslogtreecommitdiff
path: root/source4/librpc/idl
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-02-22 13:56:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:03 -0500
commitd8d2a3c86f71cf73807e57277092c12015d498bd (patch)
tree3f68d1a41674c27d4c7fc60efbb4c985fe82e358 /source4/librpc/idl
parentfb96456fdea99ed99b8cc6075a7d8ea28a5a5452 (diff)
downloadsamba-d8d2a3c86f71cf73807e57277092c12015d498bd.tar.gz
samba-d8d2a3c86f71cf73807e57277092c12015d498bd.tar.bz2
samba-d8d2a3c86f71cf73807e57277092c12015d498bd.zip
r13632: The "password_properties" is a bitmask as well.
Guenther (This used to be commit 0d918764b1f0c1aa65f826b9a845746c914f87df)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r--source4/librpc/idl/samr.idl22
1 files changed, 12 insertions, 10 deletions
diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl
index 102e709ac3..0ede613c1a 100644
--- a/source4/librpc/idl/samr.idl
+++ b/source4/librpc/idl/samr.idl
@@ -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(