diff options
-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) { |