1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

lsa: add LSA_SECRET access masks.

Guenther
This commit is contained in:
Günther Deschner 2009-10-27 13:49:21 +01:00
parent 880666cd94
commit 80d8b2e180
2 changed files with 23 additions and 0 deletions

View File

@ -17,6 +17,10 @@
#define LSA_ACCOUNT_READ ( (STANDARD_RIGHTS_READ_ACCESS|LSA_ACCOUNT_VIEW) )
#define LSA_ACCOUNT_WRITE ( (STANDARD_RIGHTS_READ_ACCESS|LSA_ACCOUNT_ADJUST_PRIVILEGES|LSA_ACCOUNT_ADJUST_QUOTAS|LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS) )
#define LSA_ACCOUNT_EXECUTE ( (STANDARD_RIGHTS_EXECUTE_ACCESS) )
#define LSA_SECRET_ALL_ACCESS ( (LSA_SECRET_QUERY_VALUE|LSA_SECRET_SET_VALUE|SEC_STD_DELETE|STANDARD_RIGHTS_READ_ACCESS|SEC_STD_WRITE_DAC|SEC_STD_WRITE_OWNER) )
#define LSA_SECRET_READ ( (LSA_SECRET_QUERY_VALUE|STANDARD_RIGHTS_READ_ACCESS) )
#define LSA_SECRET_WRITE ( (LSA_SECRET_SET_VALUE|STANDARD_RIGHTS_READ_ACCESS) )
#define LSA_SECRET_EXECUTE ( (STANDARD_RIGHTS_READ_ACCESS) )
#define LSA_ENUM_TRUST_DOMAIN_MULTIPLIER ( 60 )
#define LSA_REF_DOMAIN_LIST_MULTIPLIER ( 32 )
#define LSA_ENUM_TRUST_DOMAIN_EX_MULTIPLIER ( 82 )

View File

@ -213,6 +213,25 @@ import "misc.idl", "security.idl";
LSA_SECRET_QUERY_VALUE = 0x00000002
} lsa_SecretAccessMask;
const int LSA_SECRET_ALL_ACCESS =
(LSA_SECRET_QUERY_VALUE |
LSA_SECRET_SET_VALUE |
SEC_STD_DELETE |
STANDARD_RIGHTS_READ_ACCESS |
SEC_STD_WRITE_DAC |
SEC_STD_WRITE_OWNER); /* 0x000F0003 */
const int LSA_SECRET_READ =
(LSA_SECRET_QUERY_VALUE |
STANDARD_RIGHTS_READ_ACCESS); /* 0x00020002 */
const int LSA_SECRET_WRITE =
(LSA_SECRET_SET_VALUE |
STANDARD_RIGHTS_READ_ACCESS); /* 0x00020001 */
const int LSA_SECRET_EXECUTE =
(STANDARD_RIGHTS_READ_ACCESS); /* 0x00020000 */
typedef [public,bitmap32bit] bitmap {
LSA_TRUSTED_QUERY_DOMAIN_NAME = 0x00000001,
LSA_TRUSTED_QUERY_CONTROLLERS = 0x00000002,