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

r23820: Display security_ace_object in LDAP security descriptors for debugging.

Guenther
(This used to be commit 3925e85812b2aded356866925382b1beb718cd44)
This commit is contained in:
Günther Deschner 2007-07-10 21:04:57 +00:00 committed by Gerald (Jerry) Carter
parent 0543963797
commit 6d0141c17e

View File

@ -82,6 +82,20 @@ static void ads_disp_perms(uint32 type)
puts("");
}
static void ads_disp_sec_ace_object(struct security_ace_object *object)
{
if (object->flags & SEC_ACE_OBJECT_PRESENT) {
printf("Object type: SEC_ACE_OBJECT_PRESENT\n");
printf("Object GUID: %s\n", smb_uuid_string_static(
object->type.type));
}
if (object->flags & SEC_ACE_OBJECT_INHERITED_PRESENT) {
printf("Object type: SEC_ACE_OBJECT_INHERITED_PRESENT\n");
printf("Object GUID: %s\n", smb_uuid_string_static(
object->inherited_type.inherited_type));
}
}
/* display ACE */
static void ads_disp_ace(SEC_ACE *sec_ace)
{
@ -119,6 +133,10 @@ static void ads_disp_ace(SEC_ACE *sec_ace)
printf("access SID: %s\naccess type: %s\n",
sid_string_static(&sec_ace->trustee), access_type);
if (sec_ace_object(sec_ace->type)) {
ads_disp_sec_ace_object(&sec_ace->object.object);
}
ads_disp_perms(sec_ace->access_mask);
}