Bug 7973 : Follow up to remove an extraneous my
authorChris Cormack <chrisc@catalyst.net.nz>
Thu, 21 Mar 2013 21:51:31 +0000 (10:51 +1300)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 23 Mar 2013 02:01:22 +0000 (22:01 -0400)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Fixes problem found by QA scripts.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Auth_with_ldap.pm

index d29d8e8..1f2f617 100644 (file)
@@ -119,7 +119,7 @@ sub checkpw_ldap {
     $userldapentry = $search->shift_entry;
 
     # Perform a LDAP bind for the given username using the matched DN
-    my $res = $db->bind( $userldapentry->dn, password => $password );
+    $res = $db->bind( $userldapentry->dn, password => $password );
     if ( $res->code ) {
       $debug and warn "LDAP bind failed as kohauser $userid: ". description($res);
       return 0;