Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP and PHP

Status
Not open for further replies.

timgerr

IS-IT--Management
Jan 22, 2004
364
US
I am trying to pull information LDAP information from my linux box. I can get the count number of my search but I want to pull all information from the query. I am new to ldap and need a little help. Here is my code:
Code:
$ldaphost = "AAA.BBB.com";  // your ldap servers 
$ldapport = 389;   
$ds = ldap_connect( $ldaphost, $ldapport ) or die( "Could not connect to {$ldaphost}" );
$dn = ("ou=people, ou=intranet, dc=Somthing, dc=com"); 
$filter="(uid=Username)";
$sr=ldap_search($ds, $dn, $filter);
$info = ldap_get_entries($ds, $sr);
print $info[0]["dn"] . "stuff<BR>";
print $info["count"]." entries returned<p>";

Thanks,
Timgerr

-How important does a person have to be before they are considered assissinated instead of just murdered?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top