From: Volker Lendecke Date: Thu, 20 Dec 2018 20:53:17 +0000 (+0100) Subject: auth3: Use dom_sid_str_buf X-Git-Tag: tdb-1.3.17~72 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12ffef9fc2d6deba8e39e7097ab0e94750f8e7b3;p=thirdparty%2Fsamba.git auth3: Use dom_sid_str_buf Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index bfc2c3029b2..f7ebd23e4aa 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -1212,15 +1212,18 @@ bool user_sid_in_group_sid(const struct dom_sid *sid, const struct dom_sid *grou bool result = false; enum lsa_SidType type; TALLOC_CTX *mem_ctx = talloc_stackframe(); + struct dom_sid_buf buf; if (!lookup_sid(mem_ctx, sid, NULL, NULL, &type)) { - DEBUG(1, ("lookup_sid for %s failed\n", dom_sid_string(mem_ctx, sid))); + DEBUG(1, ("lookup_sid for %s failed\n", + dom_sid_str_buf(sid, &buf))); goto done; } if (type != SID_NAME_USER) { - DEBUG(5, ("%s is a %s, not a user\n", dom_sid_string(mem_ctx, sid), + DEBUG(5, ("%s is a %s, not a user\n", + dom_sid_str_buf(sid, &buf), sid_type_lookup(type))); goto done; } @@ -1230,7 +1233,8 @@ bool user_sid_in_group_sid(const struct dom_sid *sid, const struct dom_sid *grou &token); if (!NT_STATUS_IS_OK(status)) { - DEBUG(10, ("could not create token for %s\n", dom_sid_string(mem_ctx, sid))); + DEBUG(10, ("could not create token for %s\n", + dom_sid_str_buf(sid, &buf))); goto done; }