changeset 4155:cf02b2fbcb7a HEAD

Fixed non-plaintext password lookups from LDAP. Patch by Lior Okman.
author Timo Sirainen <tss@iki.fi>
date Sun, 09 Apr 2006 20:29:10 +0300
parents 7a4c7a12da9e
children d39ac5712d2e
files src/auth/passdb-ldap.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/passdb-ldap.c	Sun Apr 09 20:27:22 2006 +0300
+++ b/src/auth/passdb-ldap.c	Sun Apr 09 20:29:10 2006 +0300
@@ -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;