s4: try to fix privileges implementation in order to pass the RPC-SAMR-USERS-PRIVILEG...
authorGünther Deschner <gd@samba.org>
Wed, 20 May 2009 11:32:25 +0000 (13:32 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 20 May 2009 11:35:05 +0000 (13:35 +0200)
Guenther

librpc/gen_ndr/security.h
librpc/idl/security.idl
source4/libcli/security/privilege.c

index 32ea2eaacd9c1931c285cd2c99f63bde2915d216..f90dd413a8fab95f36d530af810f9b877728c1f9 100644 (file)
@@ -166,7 +166,8 @@ enum sec_privilege
        SEC_PRIV_ENABLE_DELEGATION=21,
        SEC_PRIV_INTERACTIVE_LOGON=22,
        SEC_PRIV_NETWORK_LOGON=23,
        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}
 }
 #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_INTERACTIVE_LOGON ( 22 )
 #define SEC_PRIV_NETWORK_LOGON ( 23 )
 #define SEC_PRIV_REMOTE_INTERACTIVE_LOGON ( 24 )
+#define SEC_PRIV_MACHINE_ACCOUNT ( 25 )
 #endif
 ;
 
 #endif
 ;
 
index caad08e954440251f1f07813ba9a31ec17da4d6a..825ce96d712f068b034f161e046811b920f8314a 100644 (file)
@@ -261,7 +261,8 @@ interface security
                SEC_PRIV_ENABLE_DELEGATION         = 21,
                SEC_PRIV_INTERACTIVE_LOGON         = 22,
                SEC_PRIV_NETWORK_LOGON             = 23,
                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;
 
 
        } sec_privilege;
 
 
index 2cbef135382f1d38c47b329cabb0bb869b70c430..2ebc1dc915a2662b74cf30f6e67690272151311a 100644 (file)
@@ -123,7 +123,11 @@ static const struct {
 
        {SEC_PRIV_REMOTE_INTERACTIVE_LOGON,   
         "SeRemoteInteractiveLogonRight",
 
        {SEC_PRIV_REMOTE_INTERACTIVE_LOGON,   
         "SeRemoteInteractiveLogonRight",
-       "Remote Interactive logon"}
+       "Remote Interactive logon"},
+
+       {SEC_PRIV_MACHINE_ACCOUNT,
+        "SeMachineAccountPrivilege",
+       "Add workstations to domain"}
 };
 
 
 };