diff options
author | Günther Deschner <gd@samba.org> | 2008-10-23 19:00:21 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-10 21:46:26 +0100 |
commit | 6548c88ba70a1a3d1231ae5883a82ba083aa3e86 (patch) | |
tree | e4805e31c188d33e8b691f0cf9bc1ff2ce2644ea | |
parent | 7f58bba558394fb3bade56b3bafa875963ef9764 (diff) | |
download | samba-6548c88ba70a1a3d1231ae5883a82ba083aa3e86.tar.gz samba-6548c88ba70a1a3d1231ae5883a82ba083aa3e86.tar.bz2 samba-6548c88ba70a1a3d1231ae5883a82ba083aa3e86.zip |
s4-samr: merge SAM server specific access rights from s3 idl.
Guenther
-rw-r--r-- | librpc/idl/samr.idl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/librpc/idl/samr.idl b/librpc/idl/samr.idl index 5a017e3175..87aeef3f41 100644 --- a/librpc/idl/samr.idl +++ b/librpc/idl/samr.idl @@ -40,6 +40,8 @@ import "misc.idl", "lsa.idl", "security.idl"; ACB_NO_AUTH_DATA_REQD = 0x00080000 /* 1 = No authorization data required */ } samr_AcctFlags; + /* SAM server specific access rights */ + typedef [bitmap32bit] bitmap { SAMR_ACCESS_CONNECT_TO_SERVER = 0x00000001, SAMR_ACCESS_SHUTDOWN_SERVER = 0x00000002, @@ -49,6 +51,27 @@ import "misc.idl", "lsa.idl", "security.idl"; SAMR_ACCESS_OPEN_DOMAIN = 0x00000020 } samr_ConnectAccessMask; + const int SAMR_ACCESS_ALL_ACCESS = 0x0000003F; + + const int GENERIC_RIGHTS_SAM_ALL_ACCESS = + (STANDARD_RIGHTS_REQUIRED_ACCESS | + SAMR_ACCESS_ALL_ACCESS); + + const int GENERIC_RIGHTS_SAM_READ = + (STANDARD_RIGHTS_READ_ACCESS | + SAMR_ACCESS_ENUM_DOMAINS); + + const int GENERIC_RIGHTS_SAM_WRITE = + (STANDARD_RIGHTS_WRITE_ACCESS | + SAMR_ACCESS_CREATE_DOMAIN | + SAMR_ACCESS_INITIALIZE_SERVER | + SAMR_ACCESS_SHUTDOWN_SERVER); + + const int GENERIC_RIGHTS_SAM_EXECUTE = + (STANDARD_RIGHTS_EXECUTE_ACCESS | + SAMR_ACCESS_OPEN_DOMAIN | + SAMR_ACCESS_CONNECT_TO_SERVER); + typedef [bitmap32bit] bitmap { SAMR_USER_ACCESS_GET_NAME_ETC = 0x00000001, SAMR_USER_ACCESS_GET_LOCALE = 0x00000002, |