#18659 [Opn->Bgs]: can not bind a ldap server via function ldap_bind()
| From: | hholzgra@php.net | Date: | Wed, 31 Jul 2002 08:24:42 +0000 |
| Subject: | #18659 [Opn->Bgs]: can not bind a ldap server via function ldap_bind() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15650@lists.php.net to get a copy of this message | ||
ID: 18659
Updated by: hholzgra@php.net
Reported By: lesson@263.net
-Status: Open
+Status: Bogus
Bug Type: LDAP related
Operating System: Red had 7.2
PHP Version: 4.2.2
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-07-31 03:26:44] lesson@263.net
I have got a problem when bind to a ldap server
software:
apache_1.3.26
php-4.2.2
openldap-2.1.3
mysql-3.23.51
install:
[mysql]
./configure --prefix=/usr/local/mysql
make
make install
[openldap]
env CPPFLAGS=-I/usr/local/BerkeleyDB.4.0/include
LDFLAGS=-L/usr/local/BerkeleyDB.4.0/lib ./configure
make
make install
[php]
cd ../apache_1.3.26
./configure
cd ../php-4.2.2
./configure --with-mysql --with-ldap
--with-apache=../apache_1.3.26
make
make install
[apache] ./configure --prefix=/usr/local/apache
--activate-module=src/modules/php4/libphp4.a
make
make install
No errors report while install.
here is my test program
<?php
echo "<h3>LDAP query test</h3>";
echo "Connecting ...";
$ds=ldap_connect("localhost");
echo "connect result is ".$ds."<p>";
if ($ds) {
echo "Binding ...";
$r=ldap_bind_s($ds); // this is an "anonymous" bind, typically
// read-only access
echo "Bind result is ".$r."<p>";
?>
and I got a error message below:
Warning: LDAP: Unable to bind to server: Protocol error in
/home/httpd/html/test.php
any idea?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18659&edit=1