From: Volker Lendecke Date: Mon, 10 Dec 2018 10:52:50 +0000 (+0100) Subject: libads: Use dom_sid_str_buf X-Git-Tag: tdb-1.3.17~375 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12f3a37a1a623a56fc6d397f1fac08effe9b7c79;p=thirdparty%2Fsamba.git libads: Use dom_sid_str_buf Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libads/disp_sec.c b/source3/libads/disp_sec.c index 8ec4a32bd7e..15c99b67176 100644 --- a/source3/libads/disp_sec.c +++ b/source3/libads/disp_sec.c @@ -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) {