php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33410 ldap_start_tls function undefined
Submitted: 2005-06-20 20:36 UTC Modified: 2005-06-22 21:37 UTC
From: brian dot bush at alltel dot com Assigned:
Status: Not a bug Package: LDAP related
PHP Version: 4.3.10 OS: Sun Solaris 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: brian dot bush at alltel dot com
New email:
PHP Version: OS:

 

 [2005-06-20 20:36 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-20 22:39 UTC] sniper@php.net
Make sure your ldap installation (openldap) actually provides it. Not PHP bug.

 [2005-06-22 21:37 UTC] brian dot bush at alltel dot com
Yup. The issue was with TLS not being enabled with this particular LDAP installation.

My apologies.
--brian
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC