dovecot-1.2: Pass original_username to auth-workers.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 26 16:30:54 EET 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/9f66028a1089
changeset: 8346:9f66028a1089
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 26 15:53:12 2008 +0200
description:
Pass original_username to auth-workers.
diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
src/auth/auth-request.c | 8 +++++++-
diffs (25 lines):
diff -r 28867a0ee182 -r 9f66028a1089 src/auth/auth-request.c
--- a/src/auth/auth-request.c Sun Oct 26 15:52:47 2008 +0200
+++ b/src/auth/auth-request.c Sun Oct 26 15:53:12 2008 +0200
@@ -125,7 +125,11 @@ void auth_request_export(struct auth_req
if (request->master_user != NULL) {
auth_stream_reply_add(reply, "master_user",
request->master_user);
- }
+ }
+ if (request->original_username != NULL) {
+ auth_stream_reply_add(reply, "original_username",
+ request->original_username);
+ }
if (request->local_ip.family != 0) {
auth_stream_reply_add(reply, "lip",
@@ -160,6 +164,8 @@ bool auth_request_import(struct auth_req
request->user = p_strdup(request->pool, value);
else if (strcmp(key, "master_user") == 0)
request->master_user = p_strdup(request->pool, value);
+ else if (strcmp(key, "original_username") == 0)
+ request->original_username = p_strdup(request->pool, value);
else if (strcmp(key, "cert_username") == 0) {
if (request->auth->ssl_username_from_cert) {
/* get username from SSL certificate. it overrides
More information about the dovecot-cvs
mailing list