summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@samba.org>2007-08-29 12:51:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:03:09 -0500
commitb867b3c1470ee260fe2fd14f628728f01f7917ac (patch)
tree3c172229c2e2ccd84ba249a3f7c52f85a18e42dd /source4/librpc
parent0193c581148441e527b0b5b98a2a7845105006f3 (diff)
downloadsamba-b867b3c1470ee260fe2fd14f628728f01f7917ac.tar.gz
samba-b867b3c1470ee260fe2fd14f628728f01f7917ac.tar.bz2
samba-b867b3c1470ee260fe2fd14f628728f01f7917ac.zip
r24779: add 11 specific access rights that applies to accessmasks for User
objects on the samr pipe. 8 of these bits : get name etc get locale get loc com set attributes change password set password get groups comes from wireshark/ethereal where they were added Aug 21 2002 http://anonsvn.wireshark.org/viewvc/viewvc.py/trunk/epan/dissectors/packet-dcerpc-samr.c?r1=5987&r2=6054 3 bits : get attributes get group membership change group membership also come from wireshark/ethereal where they were added Jul 24 2003 http://anonsvn.wireshark.org/viewvc/viewvc.py/trunk/epan/dissectors/packet-dcerpc-samr.c?r1=8022&r2=8080 (This used to be commit 1c2729228a341a2d063a444e9546e7e09f23c966)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/samr.idl20
1 files changed, 17 insertions, 3 deletions
diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl
index d36fe93d04..24b78bb369 100644
--- a/source4/librpc/idl/samr.idl
+++ b/source4/librpc/idl/samr.idl
@@ -51,6 +51,20 @@ import "misc.idl", "lsa.idl", "security.idl";
} samr_ConnectAccessMask;
typedef [bitmap32bit] bitmap {
+ USER_ACCESS_GET_NAME_ETC = 0x00000001,
+ USER_ACCESS_GET_LOCALE = 0x00000002,
+ USER_ACCESS_SET_LOC_COM = 0x00000004,
+ USER_ACCESS_GET_LOGONINFO = 0x00000008,
+ USER_ACCESS_GET_ATTRIBUTES = 0x00000010,
+ USER_ACCESS_SET_ATTRIBUTES = 0x00000020,
+ USER_ACCESS_CHANGE_PASSWORD = 0x00000040,
+ USER_ACCESS_SET_PASSWORD = 0x00000080,
+ USER_ACCESS_GET_GROUPS = 0x00000100,
+ USER_ACCESS_GET_GROUP_MEMBERSHIP = 0x00000200,
+ USER_ACCESS_CHANGE_GROUP_MEMBERSHIP = 0x00000400
+ } samr_UserAccessMask;
+
+ typedef [bitmap32bit] bitmap {
DOMAIN_ACCESS_LOOKUP_INFO_1 = 0x00000001,
DOMAIN_ACCESS_SET_INFO_1 = 0x00000002,
DOMAIN_ACCESS_LOOKUP_INFO_2 = 0x00000004,
@@ -316,7 +330,7 @@ import "misc.idl", "lsa.idl", "security.idl";
NTSTATUS samr_CreateUser(
[in,ref] policy_handle *domain_handle,
[in,ref] lsa_String *account_name,
- [in] uint32 access_mask,
+ [in] samr_UserAccessMask access_mask,
[out,ref] policy_handle *user_handle,
[out,ref] uint32 *rid
);
@@ -591,7 +605,7 @@ import "misc.idl", "lsa.idl", "security.idl";
/* Function 0x22 */
[public] NTSTATUS samr_OpenUser(
[in,ref] policy_handle *domain_handle,
- [in] uint32 access_mask,
+ [in] samr_UserAccessMask access_mask,
[in] uint32 rid,
[out,ref] policy_handle *user_handle
);
@@ -1099,7 +1113,7 @@ import "misc.idl", "lsa.idl", "security.idl";
[in,ref] policy_handle *domain_handle,
[in,ref] lsa_String *account_name,
[in] samr_AcctFlags acct_flags,
- [in] uint32 access_mask,
+ [in] samr_UserAccessMask access_mask,
[out,ref] policy_handle *user_handle,
[out,ref] uint32 *access_granted,
[out,ref] uint32 *rid