ID:               33410
 User updated by:  brian dot bush at alltel dot com
 Reported By:      brian dot bush at alltel dot com
 Status:           Bogus
 Bug Type:         LDAP related
 Operating System: Sun Solaris 8
 PHP Version:      4.3.10
 New Comment:

Yup. The issue was with TLS not being enabled with this particular LDAP
installation.

My apologies.
--brian


Previous Comments:
------------------------------------------------------------------------

[2005-06-20 22:39:41] [EMAIL PROTECTED]

Make sure your ldap installation (openldap) actually provides it. Not
PHP bug.


------------------------------------------------------------------------

[2005-06-20 20:36:23] brian dot bush at alltel dot com

Description:
------------
We compiled php-4.3.10 --with-ldap and --with-openssl on a solaris box.
When we try to call the ldap_start_tls() function, we get an error that
says it is undefined:
Fatal error: Call to undefined function: ldap_start_tls() in blah
blah.

It looks like the symbol is not being defined in the php_config.h
headers. I tried adding:
#define HAVE_LDAP_START_TLS_S 1

In main/php_config.h it breaks the build.
In include/php/main/php_config.h it does nothing.

What else should we try?
--brian

Reproduce code:
---------------
<?php
$ldapconn = @ldap_connect('ldap.company.com');
@ldap_set_option($ldapconn,LDAP_OPT_PROTOCOL_VERSION,3);
ldap_start_tls($ldapconn);
?>

Expected result:
----------------
Should print nothing to the screen (IE: no errors).

Actual result:
--------------
Fatal error: Call to undefined function: ldap_start_tls() in
ldaptest.php on line 8



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33410&edit=1

Reply via email to