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
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC