ldap connection

Posted on 16th Feb 2014 by admin

We are using ldap to get user information from the domain controller. It was working before. Recently I found the application is hanging at ldap_connect. It doesn't return any message.

i am not sure how to debug without any message.

here is the connection.

define ("LDAP_SERVER","ldap://server.company.net");
define ("LDAP_PORT",389);

function getUser($fullname, $pswd)
{
$ld=ldap_connect(LDAP_SERVER,LDAP_PORT);

Other forums