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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connect to LDAP using PHP script

Status
Not open for further replies.

tempsup

MIS
Sep 10, 2003
26
0
0
GB
Hi,
i'm trying to connect to LDAP using ldap_connect() ...

$ldaphost = "ldaps://localhost";
$ldapconn = ldap_connect( $ldaphost )
or die( "Could not connect to {$ldaphost}" );

but i always get this error
Fatal error: Call to undefined function: ldap_connect() in C:\Program Files\Apache Group\Apache2\htdocs\project\ldap_test.php on line 48

Does anyone knows how to solve this problem?
Please help.... Thanxxxxx

 
I had this same error a few minutes ago. I went to the php.ini file and uncommented the line that points to php_ldap.dll. I then found the php_ldap.dll file and manually moved it the same directory the php.ini file was looking for it in. I restarted my web service and this cleared the error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top