svn commit: samba r22798 - in branches: SAMBA_3_0/source/include
SAMBA_3_0/source/libads SAMBA_3_0_26/source/include
SAMBA_3_0_26/source/libads
gd at samba.org
gd at samba.org
Fri May 11 12:59:16 GMT 2007
Author: gd
Date: 2007-05-11 12:59:16 +0000 (Fri, 11 May 2007)
New Revision: 22798
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22798
Log:
Add the "apply group policy" access bit (as seen in type 0x05 ALLOWED OBJECT
ACEs).
Guenther
Modified:
branches/SAMBA_3_0/source/include/rpc_secdes.h
branches/SAMBA_3_0/source/libads/disp_sec.c
branches/SAMBA_3_0_26/source/include/rpc_secdes.h
branches/SAMBA_3_0_26/source/libads/disp_sec.c
Changeset:
Modified: branches/SAMBA_3_0/source/include/rpc_secdes.h
===================================================================
--- branches/SAMBA_3_0/source/include/rpc_secdes.h 2007-05-11 12:52:48 UTC (rev 22797)
+++ branches/SAMBA_3_0/source/include/rpc_secdes.h 2007-05-11 12:59:16 UTC (rev 22798)
@@ -38,6 +38,7 @@
#define SEC_RIGHTS_EXTENDED 0x100 /* change/reset password, receive/send as*/
#define SEC_RIGHTS_CHANGE_PASSWD SEC_RIGHTS_EXTENDED
#define SEC_RIGHTS_RESET_PASSWD SEC_RIGHTS_EXTENDED
+#define SEC_RIGHTS_APPLY_GROUP_POLICY SEC_RIGHTS_EXTENDED
#define SEC_RIGHTS_FULL_CTRL 0xf01ff
#define SEC_ACE_OBJECT_PRESENT 0x00000001 /* thanks for Jim McDonough <jmcd at us.ibm.com> */
Modified: branches/SAMBA_3_0/source/libads/disp_sec.c
===================================================================
--- branches/SAMBA_3_0/source/libads/disp_sec.c 2007-05-11 12:52:48 UTC (rev 22797)
+++ branches/SAMBA_3_0/source/libads/disp_sec.c 2007-05-11 12:59:16 UTC (rev 22798)
@@ -46,6 +46,9 @@
{SEC_RIGHTS_CHANGE_PASSWD, "[Change Password]"},
{SEC_RIGHTS_RESET_PASSWD, "[Reset Password]"},
+
+ {SEC_RIGHTS_APPLY_GROUP_POLICY, "[Apply Group Policy]"},
+
{0, 0}
};
@@ -66,7 +69,7 @@
if (type & (1 << i)) {
for (j = 1; perms[j].str; j ++) {
if (perms[j].mask == (((unsigned) 1) << i)) {
- printf("\n\t%s", perms[j].str);
+ printf("\n\t%s (0x%08x)", perms[j].str, perms[j].mask);
}
}
type &= ~(1 << i);
Modified: branches/SAMBA_3_0_26/source/include/rpc_secdes.h
===================================================================
--- branches/SAMBA_3_0_26/source/include/rpc_secdes.h 2007-05-11 12:52:48 UTC (rev 22797)
+++ branches/SAMBA_3_0_26/source/include/rpc_secdes.h 2007-05-11 12:59:16 UTC (rev 22798)
@@ -38,6 +38,7 @@
#define SEC_RIGHTS_EXTENDED 0x100 /* change/reset password, receive/send as*/
#define SEC_RIGHTS_CHANGE_PASSWD SEC_RIGHTS_EXTENDED
#define SEC_RIGHTS_RESET_PASSWD SEC_RIGHTS_EXTENDED
+#define SEC_RIGHTS_APPLY_GROUP_POLICY SEC_RIGHTS_EXTENDED
#define SEC_RIGHTS_FULL_CTRL 0xf01ff
#define SEC_ACE_OBJECT_PRESENT 0x00000001 /* thanks for Jim McDonough <jmcd at us.ibm.com> */
Modified: branches/SAMBA_3_0_26/source/libads/disp_sec.c
===================================================================
--- branches/SAMBA_3_0_26/source/libads/disp_sec.c 2007-05-11 12:52:48 UTC (rev 22797)
+++ branches/SAMBA_3_0_26/source/libads/disp_sec.c 2007-05-11 12:59:16 UTC (rev 22798)
@@ -46,6 +46,9 @@
{SEC_RIGHTS_CHANGE_PASSWD, "[Change Password]"},
{SEC_RIGHTS_RESET_PASSWD, "[Reset Password]"},
+
+ {SEC_RIGHTS_APPLY_GROUP_POLICY, "[Apply Group Policy]"},
+
{0, 0}
};
@@ -66,7 +69,7 @@
if (type & (1 << i)) {
for (j = 1; perms[j].str; j ++) {
if (perms[j].mask == (((unsigned) 1) << i)) {
- printf("\n\t%s", perms[j].str);
+ printf("\n\t%s (0x%08x)", perms[j].str, perms[j].mask);
}
}
type &= ~(1 << i);
More information about the samba-cvs
mailing list