Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.2.0

Bug #15573 Protocol Version 3 Error
Submitted: 2009-01-08 21:58 UTC
From: mituller Assigned: beni
Status: Closed Package: Net_LDAP2 (version 2.0.0RC4)
PHP Version: 5.2.4 OS: Ubuntu Linux
Roadmaps: 2.0.0    
Subscription  


 [2009-01-08 21:58 UTC] mituller (Mike Tuller)
Description: ------------ When trying to use the LDAP2 package, I get the following error: Warning: in_array() [function.in-array]: Wrong datatype for second argument in /usr/share/php/Net/LDAP2.php on line 1169 Could not connect to LDAP-server: LDAP Server does not support protocol version 3: The LDAP server is OpenLDAP 2.3.41 and I know it supports version 3 because I have connected with a script that I wrote. As a matter of fact I think it only supports connections with version 3. Test script: --------------- // Inclusion of the Net_LDAP package: require_once 'Net/LDAP2.php'; // The configuration array: $config = array ( 'binddn' => 'cn=user,ou=Organizations,o=mycompany,c=US', 'bindpw' => 'password', 'basedn' => 'ou=People,o=mycompany,c=US', 'host' => 'ldaps://myserver.com', 'port' => 636 ); // Connecting using the configuration: $ldap = Net_LDAP2::connect($config); // Testing for connection error if (PEAR::isError($ldap)) { die('Could not connect to LDAP-server: '.$ldap->getMessage()); } Expected result: ---------------- I expect it to connect successfully without a messate Actual result: -------------- Warning: in_array() [function.in-array]: Wrong datatype for second argument in /usr/share/php/Net/LDAP2.php on line 1169 Could not connect to LDAP-server: LDAP Server does not support protocol version 3:

Comments

 [2009-01-09 06:29 UTC] beni (Benedikt Hallinger)
I think this bug should already be resolved. Please try the latest CVS version or wait for RC5 which should be released shortly (today)
 [2009-01-09 06:34 UTC] beni (Benedikt Hallinger)
Additional note: Should be fixed already by Bug #14886