#18659 [NEW]: can not bind a ldap server via function ldap_bind()
| From: | lesson at 263 dot net | Date: | Wed, 31 Jul 2002 07:26:45 +0000 |
| Subject: | #18659 [NEW]: can not bind a ldap server via function ldap_bind() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15647@lists.php.net to get a copy of this message | ||
From: lesson@263.net
Operating system: Red had 7.2
PHP version: 4.2.2
PHP Bug Type: LDAP related
Bug description: can not bind a ldap server via function ldap_bind()
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 bug report at http://bugs.php.net/?id=18659&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18659&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18659&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18659&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18659&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18659&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18659&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18659&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18659&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18659&r=globals