Bug #14693: Problem with searchin single signed LDAP base name dc=<something>
| From: | Dubravko dot Penezic at SRCE dot hr | Date: | Tue, 25 Dec 2001 22:08:02 +0000 |
| Subject: | Bug #14693: Problem with searchin single signed LDAP base name dc=<something> | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-74975@lists.php.net to get a copy of this message | ||
From: Dubravko.Penezic@SRCE.hr
Operating system: Sun Solaris 2.7 (32 bit)
PHP version: 4.1.0
PHP Bug Type: LDAP related
Bug description: Problem with searchin single signed LDAP base name dc=<something>
<script LANGUAGE="PHP">
$ds=ldap_connect("ds.carnet.hr");
$r=ldap_bind($ds);
$dn = 'dc=hr';
$filter="(o=*)";
$justthese = array( "dc");
$sr=ldap_search($ds, $dn, $filter, $justthese);
$info = ldap_get_entries($ds, $sr);
print $info["count"]." entries returned<p>";
ldap_close($ds);
</script>
Warning: LDAP: Unable to perform the search: No such object in
/web/www/htdocs/ltest/bug.php on line 11
Warning: Supplied argument is not a valid ldap result resource in
/web/www/htdocs/ltest/bug.php on line 13
entries returned
- When puting $dn equal anything else then single signed base name
(dc=<something>), script work without warning.
./configure --with-mysql --with-gd --with-ldap=/home/ldap/ldap
--with-config-file-path=/usr/local/apache --prefix=/usr/local/apache
--enable-ftp --with-ftp --enable-track-vars
--with-apache=/opt/apache_1.3.22 --with-curl=/usr/local
--
Edit bug report at: http://bugs.php.net/?id=14693&edit=1