Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. $ds=ldap_connect("ldap-example.com");
  2. if ($ds) {
  3. $r=ldap_bind($ds);
  4. $sr=ldap_search($ds, "DC=tpcontact,DC=co,DC=uk",$search);
  5. $info = ldap_get_entries($ds, $sr)or die('get info fail');
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement