Guest User

Untitled

a guest
Apr 27th, 2015
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  $filtro = "(&(objectClass=user)(objectCategory=person)(displayname=*))";
  2.  
  3.  $mostrar = array("displayname","samaccountname","useraccountcontrol","userprincipalname","distinguishedname","departmentnumber");
  4.  
  5.     if (!($busca=@ldap_search($connect, $base_dn, $filtro, $mostrar))){
  6.         die("Não foi possível realizar busca no Active Directory");
  7.     }
  8.  
  9.     $info = ldap_get_entries($connect, $busca);
  10.     echo "<pre>".print_r($info,true)."</pre>";exit;
RAW Paste Data