auth: Use dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Sun, 9 Dec 2018 10:56:59 +0000 (11:56 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 10 Dec 2018 23:40:30 +0000 (00:40 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/auth/auth_util.c

index 7b0d69f1f2175d494978fd6fda8a57e14d8a1efc..e31f8183439f13046f5c2551fac6e1cd34a3ebfc 100644 (file)
@@ -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) {