From 97b537ad27faa92a3e20c90efe1e72258766f5a0 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Fri, 14 Sep 2012 17:54:00 +0200 Subject: [PATCH] bug #1394: fix ldap authentication when using username --- src/authm_mad/remotes/ldap/authenticate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authm_mad/remotes/ldap/authenticate b/src/authm_mad/remotes/ldap/authenticate index 6b9e9aeed5..4a4d9fef9a 100755 --- a/src/authm_mad/remotes/ldap/authenticate +++ b/src/authm_mad/remotes/ldap/authenticate @@ -83,7 +83,7 @@ begin end if ldap.authenticate(user_name, secret) - escaped_user=URI_PARSER.escape(user_name) + escaped_user=URI_PARSER.escape(user) escaped_secret=URI_PARSER.escape(secret) puts "ldap #{escaped_user} #{escaped_secret}" authenticated=true