ladap connection problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amalfi
Forum Newbie
Posts: 1
Joined: Fri Nov 27, 2009 3:25 pm

ladap connection problem

Post by amalfi »

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.

here is the simple connection.

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

function getUser($fullname, $pswd)
{
$ld=ldap_connect(LDAP_SERVER,LDAP_PORT);
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: ladap connection problem

Post by pickle »

Thanks for the update. Did you have a question?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply