diff options
author | Günther Deschner <gd@samba.org> | 2007-07-10 21:04:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:28:30 -0500 |
commit | 6d0141c17e996cf1c0fb4aa69ab7a1c506657e0d (patch) | |
tree | d0adae030570d2f0327a32629bc5adc49b7cae63 /source3/libads | |
parent | 054396379729f92083b15e9958d8d51ccaf7c6ea (diff) | |
download | samba-6d0141c17e996cf1c0fb4aa69ab7a1c506657e0d.tar.gz samba-6d0141c17e996cf1c0fb4aa69ab7a1c506657e0d.tar.bz2 samba-6d0141c17e996cf1c0fb4aa69ab7a1c506657e0d.zip |
r23820: Display security_ace_object in LDAP security descriptors for debugging.
Guenther
(This used to be commit 3925e85812b2aded356866925382b1beb718cd44)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/disp_sec.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/libads/disp_sec.c b/source3/libads/disp_sec.c index 60749dbb21..1f5eb4166a 100644 --- a/source3/libads/disp_sec.c +++ b/source3/libads/disp_sec.c @@ -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); } |