[dovecot-cvs] dovecot/src/auth passdb-pam.c,1.37.2.12,1.37.2.13

tss at dovecot.org tss at dovecot.org
Tue Apr 3 06:36:42 EEST 2007


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv5584

Modified Files:
      Tag: branch_1_0
	passdb-pam.c 
Log Message:
Lowercase the PAM service name when calling with "args = *". Linux PAM did
this internally already, but at least BSD didn't.



Index: passdb-pam.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-pam.c,v
retrieving revision 1.37.2.12
retrieving revision 1.37.2.13
diff -u -d -r1.37.2.12 -r1.37.2.13
--- passdb-pam.c	26 Mar 2007 16:14:16 -0000	1.37.2.12
+++ passdb-pam.c	3 Apr 2007 03:36:40 -0000	1.37.2.13
@@ -429,7 +429,7 @@
 	pid_t pid;
 
 	service = module->service_name != NULL ?
-		module->service_name : request->service;
+		module->service_name : t_str_lcase(request->service);
 	auth_request_log_debug(request, "pam", "lookup service=%s", service);
 
 	if (worker) {



More information about the dovecot-cvs mailing list