[dovecot-cvs] dovecot/src/auth passdb-ldap.c,1.43,1.44

cras at dovecot.org cras at dovecot.org
Sun Apr 9 20:29:12 EEST 2006


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

Modified Files:
	passdb-ldap.c 
Log Message:
Fixed non-plaintext password lookups from LDAP. Patch by Lior Okman.



Index: passdb-ldap.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-ldap.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- passdb-ldap.c	14 Feb 2006 17:43:04 -0000	1.43
+++ passdb-ldap.c	9 Apr 2006 17:29:10 -0000	1.44
@@ -149,7 +149,7 @@
 		auth_request_log_error(auth_request, "ldap",
 				       "Multiple password replies");
 	} else {
-		password = auth_request->passdb_password;
+		password = p_strdup(auth_request->pool, auth_request->passdb_password);
 		if (password == NULL)
 			auth_request->no_password = TRUE;
 		passdb_result = PASSDB_RESULT_OK;



More information about the dovecot-cvs mailing list