summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-30 03:57:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:37 -0500
commit931927d2a3c8b990554f363795767015ba342882 (patch)
tree5cabe25a3cf83a666aadb12ba66b93654d7d556b /source4/librpc
parenta37c408fc4a1767ea4ca65bc5a575ee905dd5005 (diff)
downloadsamba-931927d2a3c8b990554f363795767015ba342882.tar.gz
samba-931927d2a3c8b990554f363795767015ba342882.tar.bz2
samba-931927d2a3c8b990554f363795767015ba342882.zip
r420: added nicer names for the field bits in userinfo21
added tests for the level 23 and 25 password change methods (This used to be commit d49f7a6a0d1895de3d654a5b46c6aec3a57fde76)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/samr.idl16
1 files changed, 14 insertions, 2 deletions
diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl
index c079114ef3..626a4b579e 100644
--- a/source4/librpc/idl/samr.idl
+++ b/source4/librpc/idl/samr.idl
@@ -644,6 +644,19 @@
samr_Name callback;
} samr_UserInfo20;
+ /* this defines the bits used for fields_present in info21 */
+ const int SAMR_FIELD_NAME = 0x00000002;
+ const int SAMR_FIELD_DESCRIPTION = 0x00000010;
+ const int SAMR_FIELD_COMMENT = 0x00000020;
+ const int SAMR_FIELD_LOGON_SCRIPT = 0x00000100;
+ const int SAMR_FIELD_PROFILE = 0x00000200;
+ const int SAMR_FIELD_WORKSTATION = 0x00000400;
+ const int SAMR_FIELD_LOGON_HOURS = 0x00002000;
+ const int SAMR_FIELD_CALLBACK = 0x00200000;
+ const int SAMR_FIELD_COUNTRY_CODE = 0x00400000;
+ const int SAMR_FIELD_CODE_PAGE = 0x00800000;
+ const int SAMR_FIELD_PASSWORD = 0x03000000; /* 2 bits!? */
+
typedef struct {
NTTIME last_logon;
NTTIME last_logoff;
@@ -695,7 +708,7 @@
uint16 pw_len;
} samr_UserInfo24;
- typedef struct {
+ typedef [flag(NDR_PAHEX)] struct {
uint8 data[532];
} samr_CryptPasswordEx;
@@ -986,7 +999,6 @@
/************************/
/* Function 0x32 */
NTSTATUS samr_CreateUser2(
- /************************/
[in,ref] policy_handle *handle,
[in,ref] samr_Name *username,
[in] uint32 acct_flags,