|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6764 ldap_search warning message
Submitted: 2000-09-14 17:40 UTC Modified: 2000-10-31 20:04 UTC
From: perceau at eram dot fr Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.0.2 OS: Redhat 6.2
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.
Block user comment
Status: Assign to:
Bug Type:
From: perceau at eram dot fr
New email:
PHP Version: OS:


 [2000-09-14 17:40 UTC] perceau at eram dot fr
Here's the PHP script generating the error :


echo "<h3>LDAP query test</h3>";
echo "Connecting ...";
$ds=ldap_connect("nwgwia01");  // must be a valid LDAP server!
echo "connect result is ".$ds."<p>";

if ($ds) {
    $r=ldap_bind($ds);     // this is an "anonymous" bind, typically
                           // read-only access
    echo "Bind result is ".$r."<p>";

    // Search surname entry
    $sr=ldap_search($ds,"O=ERAM", "mail=*");
    echo "Search result is ".$sr."<p>";

    echo "Number of entires returned is ".ldap_count_entries($ds,$sr)."<p>";

    echo "Getting entries ...<p>";
    $info = ldap_get_entries($ds, $sr);

    echo "Closing connection";

} else {
    echo "<h4>Unable to connect to LDAP server</h4>";

The LDAP Server is a Novell Groupwise 5.5 system.
The ldap_search command work fine if search on "sn=" or "givenname=".
BUT it generate the following warning message when used with "mail=..."
Warning: LDAP: Unabel to perform the search: Erreur d'operation in <php_script> line 14.

Ideas ?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-14 22:39 UTC]
Does the same query work for example using netscape?

 [2000-09-18 05:56 UTC]
User feedback:
i haven't tried it with Netscape, but have done it with Outlook : it worked fine..

1. Do not send HTML-emails.
2. Please use this web-interface for replying to bug report queries.
3. I can not reproduce this. 

Are you sure this is correct: 

$sr=ldap_search($ds,"O=ERAM", "mail=*");

Is that second argument like it should be??

 [2000-10-12 08:18 UTC]
Try adding this line right after ldap_Search() line:

echo ldap_error($ds);

And report back what the output of it is.

 [2000-10-29 00:18 UTC]
No feedback.
 [2000-10-31 20:04 UTC]
User feedback:
after searching about the problem, it appear that query on the mail field are not supported by the Novell Groupwise LDAP's implementation.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 23:01:30 2024 UTC