Mercurial > dovecot > core-2.2
diff src/lib-master/master-login-auth.c @ 16909:9ef23179892a
auth: Added %{session_pid} variable for userdb lookups in login requests.
session_pid is now always sent to auth process. A new request_auth_token
parameter was added to specify if auth_token should be returned or not.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 02 Nov 2013 13:52:30 +0200 |
parents | 36ef72481934 |
children | add8c00fb3cc |
line wrap: on
line diff
--- a/src/lib-master/master-login-auth.c Sat Nov 02 13:34:17 2013 +0200 +++ b/src/lib-master/master-login-auth.c Sat Nov 02 13:52:30 2013 +0200 @@ -440,8 +440,9 @@ str_printfa(str, "REQUEST\t%u\t%u\t%u\t", req->id, req->client_pid, req->auth_id); binary_to_hex_append(str, req->cookie, sizeof(req->cookie)); + str_printfa(str, "\tsession_pid=%s", my_pid); if (auth->request_auth_token) - str_printfa(str, "\tsession_pid=%s", my_pid); + str_append(str, "\trequest_auth_token"); str_append_c(str, '\n'); o_stream_nsend(auth->output, str_data(str), str_len(str)); }