title: php ldap search find attribute
body: <p>I have a php application which is querying an LDAP server. Using the LDAP Browser desktop application I can see users listed as:
  cn=joebloe,ou=users,ou=people,o=cuid</p>
  
  <p>with attributes like: 'departmentNumber', 'loginDisabled' etc.</p>
  
  <p>Inside my php application, I have this code:</p>
  
  <pre><code>$sr = ldap_search($ds, "o=$o", "cn=joebloe,ou=users,ou=people,o=cuid"); 
  </code></pre>
  
  <p>but that code me wrong and just returns a resource link; it would be nice if I can get the value of the attribute of 'loginDisabled'. </p>
  
  <p>How can I do that?
  Thanks!</p>