Bug #17738: ldap_bind for ldaps://server

From: Date: Thu, 13 Jun 2002 10:01:36 +0000
Subject: Bug #17738: ldap_bind for ldaps://server
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10319@lists.php.net to get a copy of this message
From: benoit@gide.net Operating system: Redhat 6.2 7.1 7.2 PHP version: 4.2.1 PHP Bug Type: LDAP related Bug description: ldap_bind for ldaps://server Compiled modules: ./configure --with-apache=../apache_1.3.24 --with-openssl --with-ldap I have a problem when i use php to bind my ldap directory over ssl If i use on shell command ldapsearch -x -H 'ldaps://localhost/' -b 'uid=100000, ou=company, dc=domain, dc=com' -D 'uid=100000, ou=company, dc=mydomain, dc=com' -W I have good result My script is like that : $server = "ldap://localhost" ; $ds=ldap_connect($server); $dn = "uid=100000, ou=company, dc=domain, dc=com"; $value = "password"; $result=@ldap_bind($ds,$dn,$value); $dn = "ou=company, dc=domain, dc=com"; $filtre = "(cn=*DUPONT*)"; $sr = ldap_search($ds, $dn, $filtre); $info = ldap_get_entries($ds, $sr); for ($i=0; $i < $info["count"]; $i++) { print "UID: ".$info[$i]["urn"][0]."<br /><br />"; } ldap_close($ds); i have a result, but if i change $server = "ldap://localhost" by "ldaps://localhost) i have a error message "Can't contact LDAP server" -- Edit bug report at http://bugs.php.net/?id=17738&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17738&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17738&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17738&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17738&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17738&r=support Expected behavior: http://bugs.php.net/fix.php?id=17738&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17738&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17738&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17738&r=globals

« previous php.bugs (#10319) next »