note 49889 added to function.ldap-search
| From: | rsu_friend at yahoo dot com | Date: | Fri, 11 Feb 2005 09:03:23 +0000 |
| Subject: | note 49889 added to function.ldap-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84836@lists.php.net to get a copy of this message | ||
I was doing a ldap_search with
$searchbasedn = "miDomainName=" . $_SESSION['selectDomain'] ."," .
LDAP_DOMAINBASE;
$filter = "(&(mpsAccountNumber=". $acctNumber
.")(objectclass=mpsAccountDetails))";
$attributes = array("mpsparentchild");
$sr = ldap_search($ldapconn, $searchbasedn, $filter,$attributes);
For some reasone this search was failing
but I was able to do successful search only when I gave the search filter as
$filter = "(&(mpsAccountNumber= $acctNumber )(objectclass=mpsAccountDetails))";
I did not get why the ldap_search was not able to search in the first case.
----
Manual Page -- http://www.php.net/manual/en/function.ldap-search.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49889
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49889&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49889&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49889&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49889&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49889&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49889&report=yes
Search -- http://master.php.net/manage/user-notes.php