From: Alex_Diedler at gmx dot de
Operating system: Linux Suse 9.0
PHP version: 4.3.8
PHP Bug Type: LDAP related
Bug description: ldap_bind doesn�t work but ldap_connect works!
Description:
------------
A Login make a request to LDAP-Server for User-Authentication.
The code is very simple, but it doesn�t work on Linux.
ldap_connect works fine on both (Windows and Linux)
ldap_bind anonymous works NOT on Linux! But on Windows works!
What�s the problem?
Reproduce code:
---------------
<?php
$ldaphost = "ldapserver.diedler.com";
$ldapport = 389;
// Verbindung zu LDAP
$ldapconn = ldap_connect( $ldaphost, $ldapport );
if ($ldapconn) {
echo "<li>It works!<br>";
}else {
echo "<li>Failed<br>";
}
$ldapbind = ldap_bind($ldapconn);
if ($ldapbind) {
echo "<li>anon. Bind works!<br>";
}else {
echo "<li>bind failed<br>";
}
?>
Expected result:
----------------
The same result like on windows. It should work fine!
Actual result:
--------------
I removed all packages from Linux with PHP and Apache and LDAP.
I installed Apache 1.3.28 with devel.
OpenLDAP Client V2 and ldap_devel.
PHP 4.3.8 from Homepage php.net.
Install with ./configure --with-mysql --with=apxs --with-ldap
Important: remember that the connect to LDAP Server works! So it is not a
maschine problem!
--
Edit bug report at http://bugs.php.net/?id=29651&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29651&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29651&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29651&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29651&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29651&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29651&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29651&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29651&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29651&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29651&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29651&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29651&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29651&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29651&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29651&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29651&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29651&r=float