Quick PHP code to test ldap connection$ldap = ldap_connect(“domain.com”);$username=”username@domain.com”;$password=”password”;if($bind = ldap_bind($ldap, $username,$password ))echo “logged in”;elseecho “fail”;echo “done”;?>Quick PHP code to test mysql database connectionecho “trying”;$link = mysql_connect(’123.123.123.123′, ‘username’, ‘password’);if (!$link) {die(‘Could not connect: ‘ . mysql_error());}else{echo...
Showing posts with label ldap. Show all posts
Showing posts with label ldap. Show all posts
Wednesday, January 26, 2011
Subscribe to:
Posts (Atom)