title: Active Directory attribute not retrieved in PHP
body: <p>I am trying to retrieve AD attributes for a user in my PHP application. I successfully bind and am able to retrieve attributes. I have a custom attribute called "<strong>Cust1</strong>" which is not retrieved in the LDAP call. Apart from that, all attributes are retrieved. </p>
  
  <p>My Code:</p>
  
  <pre><code>$ldap_server_url = "&lt;&lt;server_url&gt;&gt;"; ##GLOBAL CATALOG##
  $ldap_bind_dn = '&lt;&lt;bind dn&gt;&gt;';
  $ldap_bind_dn_password = '&lt;&lt;bind password&gt;&gt;';
  
  $ldapconn = ldap_connect($ldap_server_url);
  $ldap_bind = @ldap_bind($ldapconn, $ldap_bind_dn, $ldap_bind_dn_password);
  $attr = array('*');
  $test = ldap_search($ldapconn, "dc=mydomain,dc=com", "(samaccountname=mydemouser)", $attr);
  $entry = ldap_first_entry($ldapconn, $test);
  
  $attrs = ldap_get_attributes($ldapconn, $entry);
  var_dump($attrs);
  </code></pre>
  
  <p>Is there something I need to do so I can retrieve this value?</p>