From:             thu at nykredit dot dk
Operating system: Linux debian testing
PHP version:      5.0.0RC2
PHP Bug Type:     LDAP related
Bug description:  ldap cannot connect (nothing send on network)

Description:
------------
Ldap_connect does not work.. tcpdump shows no traffic on the network when
trying to connect..

>dpkg -s |grep ldap gives:
ii  ldap-utils     2.1.23-1       OpenLDAP utilities
ii  libldap2       2.1.23-1       OpenLDAP libraries
ii  libldap2-dev   2.1.23-1       OpenLDAP development libraries

The compile went fine and ldap show up as expected in phpinfo()
LDAP Support    enabled
RCS Version     $Id: ldap.c,v 1.151 2004/04/06 23:14:06 iliaa Exp $
Total Links     0/unlimited
API Version     2004
Vendor Name     OpenLDAP
Vendor Version  20123


I have compiled with the following directives:
'./configure' '--with-mysql' '--with-apxs' '--with-gd' '--with-openssl'
'--with-zlib' '--enable-bcmath' '--enable-calendar' '--with-curl'
'--enable-dio' '--enable-ftp' '--with-ttf' '--enable-gd-native-ttf'
'--with-kerberos' '--with-imap-ssl' '--with-mcrypt'
'--enable-embedded-mysqli' '--enable-soap' '--with-xsl' '--with-pear'
'--with-ming' '--with-oci8' '--with-ldap'

Reproduce code:
---------------
<?php
$connect = ldap_connect($server);
if ($connect) {
    echo "Connected OK - That is the server ($server) is     }else {
    echo "Connect FAILED server=($server)";
}
?>

Expected result:
----------------
I want to get a valid ldap connection, like I do when I run the script on
another server with PHP4..



Actual result:
--------------
ldap_connect() just returns null...
Nothing is ever sent on the network.. 

-- 
Edit bug report at http://bugs.php.net/?id=28400&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28400&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28400&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28400&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28400&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28400&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28400&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28400&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28400&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28400&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28400&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28400&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28400&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28400&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28400&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28400&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28400&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28400&r=float

Reply via email to