From: Günther Deschner Date: Fri, 11 May 2007 12:59:16 +0000 (+0000) Subject: r22798: Add the "apply group policy" access bit (as seen in type 0x05 ALLOWED OBJECT X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~487 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e138cbc876e50ae25cb15c5109a42bc8b800c1ba;p=thirdparty%2Fsamba.git r22798: Add the "apply group policy" access bit (as seen in type 0x05 ALLOWED OBJECT ACEs). Guenther --- diff --git a/source/include/rpc_secdes.h b/source/include/rpc_secdes.h index 4912b7d0681..8396040a9b1 100644 --- a/source/include/rpc_secdes.h +++ b/source/include/rpc_secdes.h @@ -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 */ diff --git a/source/libads/disp_sec.c b/source/libads/disp_sec.c index a768ba08f3e..1e62eb85517 100644 --- a/source/libads/disp_sec.c +++ b/source/libads/disp_sec.c @@ -46,6 +46,9 @@ static struct perm_mask_str { {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 @@ static void ads_disp_perms(uint32 type) 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);