Fix broken LDAP bind; thanks to Marcel Schleusner
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Oct 2008 02:03:41 +0000 (02:03 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Oct 2008 02:03:41 +0000 (02:03 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13310 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/configtest.php

index 3400c8c8fbe06766dfbdab9507695a0a1ea46cc4..d86f0643796f52547c91fd76276cc9573f3026d4 100644 (file)
@@ -966,7 +966,7 @@ if( empty($ldap_server) ) {
                 if ( empty($param['binddn']) ) {
                     $bind = @ldap_bind($linkid);
                 } else {
-                    $bind = @ldap_bind($param['binddn'], $param['bindpw']);
+                    $bind = @ldap_bind($linkid, $param['binddn'], $param['bindpw']);
                 }
 
                 if ( $bind ) {