dovecot-1.1: Pass original_username to auth-workers.
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Sun Oct 26 15:53:16 EET 2008
    
    
  
details:   http://hg.dovecot.org/dovecot-1.1/rev/21919817f427
changeset: 7973:21919817f427
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 2dc77c1c2656 -r 21919817f427 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",
@@ -158,6 +162,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