]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libads: Use dom_sid_string_buf
authorVolker Lendecke <vl@samba.org>
Fri, 23 Nov 2018 07:39:02 +0000 (08:39 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 23 Nov 2018 16:14:08 +0000 (17:14 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libads/disp_sec.c

index 472741fa1b6fed133d7941eeb2623520b38ec700..96c29078378e0151a1908f19f15622f45cda1a98 100644 (file)
@@ -22,6 +22,7 @@
 #include "libads/ldap_schema.h"
 #include "../libcli/security/secace.h"
 #include "../librpc/ndr/libndr.h"
+#include "libcli/security/dom_sid.h"
 
 /* for ADS */
 #define SEC_RIGHTS_FULL_CTRL           0xf01ff
@@ -139,6 +140,7 @@ static void ads_disp_sec_ace_object(ADS_STRUCT *ads,
 static void ads_disp_ace(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, struct security_ace *sec_ace)
 {
        const char *access_type = "UNKNOWN";
+       struct dom_sid_buf sidbuf;
 
        if (!sec_ace_object(sec_ace->type)) {
                printf("------- ACE (type: 0x%02x, flags: 0x%02x, size: 0x%02x, mask: 0x%x)\n", 
@@ -169,8 +171,9 @@ static void ads_disp_ace(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, struct security_a
                access_type = "AUDIT OBJECT";
        }
 
-       printf("access SID:  %s\naccess type: %s\n", 
-               sid_string_talloc(mem_ctx, &sec_ace->trustee), access_type);
+       printf("access SID:  %s\naccess type: %s\n",
+              dom_sid_str_buf(&sec_ace->trustee, &sidbuf),
+              access_type);
 
        if (sec_ace_object(sec_ace->type)) {
                ads_disp_sec_ace_object(ads, mem_ctx, &sec_ace->object.object);