title: php ldap_search(): Search: Operations error
body: <p>I try to connect to LDAP in PHP with this code :</p>
  
  <pre><code>$ds = ldap_connect("122.134.124.2", 389);
  $login = "login@domain.local";
  $password = "password";
  
  if ($ds) 
  {
      $r = ldap_bind($ds, $login, $password);
      $sr = ldap_search($ds, "dc=domain,dc=local", "cn=m*");    
  }
  else
      echo "Impossible to connect to the LDAP server.";
  </code></pre>
  
  <p>And I get this error :
  <strong><em>ldap_search(): Search: Operations error in test.php on line 8</em></strong> (the line with the ldap_search function).</p>
  
  <p>Yet the connection works and I put all the parameters of the function ldap_search.</p>