Blog Archives

Solution: LDAPs – Unable to bind to server: Can’t contact LDAP server

Last week I encountered the following error message:Warning: ldap_bind(): Unable to bind to server: Can’t contact LDAP server in C:\xamppNew\htdocs\index.php on line 11

To create a AD user you must to connect to the LDAP via securely (SSL). Usually you can achieve this in PHP by connecting through LDAP like this: ldap_connect(“ldaps://“, 636); , watch the ‘s’ at the end of LDAP. This indicates you want to connect through SSL. After binding (ldap_bind($connection, $user, $password); ) I received the error message above.

Posted in IT, ldap, php