title: LDAP users list using php
body: <pre><code>function getUsers() { 
      $process = new process();
      $process-&gt;s_Host('domain.com');
      $process-&gt;s_Domain('domain.com');   
      $process-&gt;s_LdapSecure(false);
  
      if($process-&gt;LdapConn()){
          if($process-&gt;LdapBind()){        
              $filter = "(&amp;(&amp;(objectCategory=person)(objectClass=user)";       
              $search = @ldap_search($filter);     
              $entries = ldap_get_entries($search);    
              return $entries;
          }
      }
  }
  </code></pre>
  
  <p>I am not able to return any values from the search, i dont know how to search or get all users.</p>
  
  <p>The connection is working fine.</p>