diff options
author | Volker Lendecke <vl@samba.org> | 2018-12-20 21:53:17 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-01-08 03:40:27 +0100 |
commit | 12ffef9fc2d6deba8e39e7097ab0e94750f8e7b3 (patch) | |
tree | fbbd3897e635c750affaf0a32aac5e1cdefdda01 | |
parent | cc0664dd0453c85147b4b270bddb418bb1d4d0a9 (diff) | |
download | samba-12ffef9fc2d6deba8e39e7097ab0e94750f8e7b3.tar.gz |
auth3: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/auth/token_util.c | 10 |
1 files changed, 7 insertions, 3 deletions
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; } |