diff options
author | Volker Lendecke <vl@samba.org> | 2018-12-09 11:56:59 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-12-11 00:40:30 +0100 |
commit | d833403139e145701942fb47db29bb61246739bc (patch) | |
tree | 90634850f4ab315ff5741b85ca8288b18eece774 /source3/auth | |
parent | 2b1125fa81676b05b6fd76fd537f1229a714d1cf (diff) | |
download | samba-d833403139e145701942fb47db29bb61246739bc.tar.gz |
auth: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 7b0d69f1f21..e31f8183439 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -412,6 +412,7 @@ static NTSTATUS log_nt_token(struct security_token *token) TALLOC_CTX *frame = talloc_stackframe(); char *command; char *group_sidstr; + struct dom_sid_buf buf; size_t i; if ((lp_log_nt_token_command(frame) == NULL) || @@ -424,12 +425,12 @@ static NTSTATUS log_nt_token(struct security_token *token) for (i=1; i<token->num_sids; i++) { group_sidstr = talloc_asprintf( frame, "%s %s", group_sidstr, - sid_string_talloc(frame, &token->sids[i])); + dom_sid_str_buf(&token->sids[i], &buf)); } command = talloc_string_sub( frame, lp_log_nt_token_command(frame), - "%s", sid_string_talloc(frame, &token->sids[0])); + "%s", dom_sid_str_buf(&token->sids[0], &buf)); command = talloc_string_sub(frame, command, "%t", group_sidstr); if (command == NULL) { |