From: kric0999 at uni-hildesheim dot de Operating system: Solaris 10 PHP version: 5.1.2 PHP Bug Type: LDAP related Bug description: ldap_start_tls_s not found in iPlanet LDAP C SDK and OpenLDAP
Description: ------------ When compiling PHP with --with-ldap=/path/to/ldap the configure script does not recognize that LDAP-SSL is possible. The iPlanet C SDK has a built-in SSL functionality (http://www.sun.com/download/products.xml?id=3ec28dbd). My OpenLDAP was built against OpenSSL (http://www.planetmirror.com/pub/openldap/openldap-release/openldap-2.3.21.tgz). Reproduce code: --------------- export CFLAGS="" export CPPFLAGS="" export LDFLAGS="" # LD_LIBRARY_PATH contains no paths to LDAP directories ./configure --prefix=/foo --disable-cli --without-pear --with-ldap=/data/openldap | grep ldap or ./configure --prefix=/foo --disable-cli --without-pear --with-ldap=/data/iplanet | grep ldap Expected result: ---------------- checking for 3 arg ldap_set_rebind_proc... (cached) yes checking for ldap_parse_result... (cached) yes checking for ldap_parse_reference... (cached) yes checking for ldap_start_tls_s... (cached) yes checking for ldap_bind_s... (cached) yes Actual result: -------------- checking for 3 arg ldap_set_rebind_proc... (cached) yes checking for ldap_parse_result... (cached) yes checking for ldap_parse_reference... (cached) yes checking for ldap_start_tls_s... (cached) no checking for ldap_bind_s... (cached) yes SEE: ldap_start_tls_s is NO grep -r "ldap_start_tls_s" /data/openldap finds many, many results grep -r "ldap_start_tls_s" /data/iplanet finds nothing, but there is a /data/iplanet/include/ldap_ssl.h and the /data/iplanet/tools/ldapsearch supports a SSL connection to the LDAP-SSL port 636. -- Edit bug report at http://bugs.php.net/?id=37041&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37041&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37041&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37041&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37041&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37041&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37041&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37041&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37041&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37041&r=support Expected behavior: http://bugs.php.net/fix.php?id=37041&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37041&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37041&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37041&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37041&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37041&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37041&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37041&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37041&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37041&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37041&r=mysqlcfg