diff options
author | Günther Deschner <gd@samba.org> | 2009-05-20 13:32:25 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-05-20 13:35:05 +0200 |
commit | 9a13af9a994e385a5966eed7cdf3a2add00f8f08 (patch) | |
tree | 444583162df01fddfb16d5a0369234189fb448a6 | |
parent | 4b21ad9db7babb1e278fa2e3b81737b6df36e2d2 (diff) | |
download | samba-9a13af9a994e385a5966eed7cdf3a2add00f8f08.tar.gz samba-9a13af9a994e385a5966eed7cdf3a2add00f8f08.tar.bz2 samba-9a13af9a994e385a5966eed7cdf3a2add00f8f08.zip |
s4: try to fix privileges implementation in order to pass the RPC-SAMR-USERS-PRIVILEGES test.
Guenther
-rw-r--r-- | librpc/gen_ndr/security.h | 4 | ||||
-rw-r--r-- | librpc/idl/security.idl | 3 | ||||
-rw-r--r-- | source4/libcli/security/privilege.c | 6 |
3 files changed, 10 insertions, 3 deletions
diff --git a/librpc/gen_ndr/security.h b/librpc/gen_ndr/security.h index 32ea2eaacd..f90dd413a8 100644 --- a/librpc/gen_ndr/security.h +++ b/librpc/gen_ndr/security.h @@ -166,7 +166,8 @@ enum sec_privilege SEC_PRIV_ENABLE_DELEGATION=21, SEC_PRIV_INTERACTIVE_LOGON=22, SEC_PRIV_NETWORK_LOGON=23, - SEC_PRIV_REMOTE_INTERACTIVE_LOGON=24 + SEC_PRIV_REMOTE_INTERACTIVE_LOGON=24, + SEC_PRIV_MACHINE_ACCOUNT=25 } #else { __donnot_use_enum_sec_privilege=0x7FFFFFFF} @@ -194,6 +195,7 @@ enum sec_privilege #define SEC_PRIV_INTERACTIVE_LOGON ( 22 ) #define SEC_PRIV_NETWORK_LOGON ( 23 ) #define SEC_PRIV_REMOTE_INTERACTIVE_LOGON ( 24 ) +#define SEC_PRIV_MACHINE_ACCOUNT ( 25 ) #endif ; diff --git a/librpc/idl/security.idl b/librpc/idl/security.idl index caad08e954..825ce96d71 100644 --- a/librpc/idl/security.idl +++ b/librpc/idl/security.idl @@ -261,7 +261,8 @@ interface security SEC_PRIV_ENABLE_DELEGATION = 21, SEC_PRIV_INTERACTIVE_LOGON = 22, SEC_PRIV_NETWORK_LOGON = 23, - SEC_PRIV_REMOTE_INTERACTIVE_LOGON = 24 + SEC_PRIV_REMOTE_INTERACTIVE_LOGON = 24, + SEC_PRIV_MACHINE_ACCOUNT = 25 } sec_privilege; diff --git a/source4/libcli/security/privilege.c b/source4/libcli/security/privilege.c index 2cbef13538..2ebc1dc915 100644 --- a/source4/libcli/security/privilege.c +++ b/source4/libcli/security/privilege.c @@ -123,7 +123,11 @@ static const struct { {SEC_PRIV_REMOTE_INTERACTIVE_LOGON, "SeRemoteInteractiveLogonRight", - "Remote Interactive logon"} + "Remote Interactive logon"}, + + {SEC_PRIV_MACHINE_ACCOUNT, + "SeMachineAccountPrivilege", + "Add workstations to domain"} }; |