#29651 [Opn->Fbk]: ldap_bind doesn�t work but ldap_connect works!
| From: | derick@php.net | Date: | Tue, 17 Aug 2004 06:16:47 +0000 |
| Subject: | #29651 [Opn->Fbk]: ldap_bind doesn�t work but ldap_connect works! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64759@lists.php.net to get a copy of this message | ||
ID: 29651
Updated by: derick@php.net
-Summary: ldap_bind doesn´t work but ldap_connect works!
Reported By: Alex_Diedler at gmx dot de
-Status: Open
+Status: Feedback
Bug Type: LDAP related
Operating System: Linux Suse 9.0
PHP Version: 4.3.8
New Comment:
No need to shout here and how do you expect us to reproduce the problem
without an LDAP server?
Previous Comments:
------------------------------------------------------------------------
[2004-08-17 07:26:09] Alex_Diedler at gmx dot de
Hello!
This URL is NOT A PUBLIC URL! Nobody can connect to it from outside!
------------------------------------------------------------------------
[2004-08-17 00:18:59] iliaa@php.net
Cannot reproduce with my ldap servers, the specified
hostname for your ldap server cannot be resolved.
------------------------------------------------------------------------
[2004-08-13 13:19:27] Alex_Diedler at gmx dot de
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 this bug report at http://bugs.php.net/?id=29651&edit=1