Portal Home > Knowledgebase > Articles Database > LDAP, PHP and IIS7


LDAP, PHP and IIS7




Posted by crEA-tEch, 11-23-2011, 06:00 AM
Hi all, I'm venturing into LDAP authentication and I want to simply start by connecting to our active directory. Here is the code I have: I can confirm the code can see the active directory, as if I change the name of it, it throws the error "Can't contact LDAP server", whereas with the correct details it will then say "Invalid credentials". I can vow 100% that the username and password are correct, but still it doesnt like it. I have a peice of software called "Softerra LDAP Administrator 2011", I then browsed the OU that contains the user, and then clicked "Properties" to obtain the location, then copied and pasted it into the code you see above. Am I missing something here? LDAP is completely new to me, and it would be great if I could get it working! Cheers, Nick

Posted by crEA-tEch, 11-23-2011, 07:24 AM
Silly me, I had "); ' at the end, when all I needed was a ' - it seems to have connected now



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
MX Suspension (Views: 674)


Language: