php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5603 ldap_search($link_id,$dn,"objectclass=*",array("name") don't work!
Submitted: 2000-07-15 09:28 UTC Modified: 2000-07-25 17:33 UTC
From: christian at comlink dot org Assigned: sniper (profile)
Status: Closed Package: LDAP related
PHP Version: 4.0.0 OS: Red Had 6.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: christian at comlink dot org
New email:
PHP Version: OS:

 

 [2000-07-15 09:28 UTC] christian at comlink dot org
Hallo,
I use PHP 4.0.1pl2.

The command:

ldap_search($link_id,$dn,"objectclass=*",array("name"));

even "name" is an field in the Database.

But if i choose the command:

ldap_search($link_id,$dn,"name=*",array("name"))
                          ^^^^^^
                           or somethingelse

it work! 

If i go to commandline and use :

ldapsearch -L -b "dn" 
"(objectclass=*)" "name"

it work!

So where is the mistake?


Christian


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-22 05:08 UTC] sniper at cvs dot php dot net
Does this print any errors?

--Jani
 [2000-07-25 03:02 UTC] sniper@php.net
After thinking this more (and doing some tests) I think
this has something to do with bug #5433.

--Jani
 [2000-07-25 08:22 UTC] christian at comlink dot org
Oh, i'm sorry for bad expalnation of the bug.
Useing the ldap_search command with the filter 'objectclass=*' AND an array $justthese("Attribute") where attribute is an existing attribute in the directory the result is empty.
With any other filter it work e.g. 'objectclass=person'.

By christian

 [2000-07-25 17:33 UTC] sniper@php.net
Fixed in CVS. Thanks for confirming my thoughs! =)

--Jani
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Nov 30 19:03:38 2021 UTC