auth3: Use dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Thu, 20 Dec 2018 20:53:17 +0000 (21:53 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 8 Jan 2019 02:40:27 +0000 (03:40 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/auth/token_util.c

index bfc2c3029b2bf7d9b3a7b2638c30414becb9e9f2..f7ebd23e4aadfc4bc49454ac392496589d17fc30 100644 (file)
@@ -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;
        }