]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libads: Use dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Mon, 10 Dec 2018 10:52:50 +0000 (11:52 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 10 Dec 2018 23:40:31 +0000 (00:40 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libads/disp_sec.c

index 8ec4a32bd7e0bb27a3377a0c196d231bd92bc40d..15c99b67176a59a2a9bb40b2b3268cd895132d91 100644 (file)
@@ -201,6 +201,7 @@ void ads_disp_sd(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, struct security_descripto
 {
        uint32_t i;
        char *tmp_path = NULL;
+       struct dom_sid_buf buf;
 
        if (!sd) {
                return;
@@ -223,9 +224,9 @@ void ads_disp_sd(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, struct security_descripto
                sd->type);
 
        printf("owner SID: %s\n", sd->owner_sid ? 
-               sid_string_talloc(mem_ctx, sd->owner_sid) : "(null)");
+              dom_sid_str_buf(sd->owner_sid, &buf) : "(null)");
        printf("group SID: %s\n", sd->group_sid ?
-               sid_string_talloc(mem_ctx, sd->group_sid) : "(null)");
+              dom_sid_str_buf(sd->group_sid, &buf) : "(null)");
 
        ads_disp_acl(sd->sacl, "system");
        if (sd->sacl) {