To whomever can help 🙁
I'm new to ldap and and can't seem to bind to the ldap server running off of Exchange 5.5 on a Windows NT 4 server.
Here's a copy of the simple code I'm trying. I figure I need to bind before I can continue on.
<?php
// ldap.php
$dn = ldap_connect("server");
$user = "ou=Organization, cn=My Name";
$pass = "mypassword";
ldap_bind($dn,$user,$pass);
?>
Here's the error I get:
Warning: LDAP: Unable to bind to server: Invalid credentials in /var/www/ldap/ldap.php on line 8
I understand that it's not validating me. The PHP documentation for ldap_bind() and other ldap functions is very bland. Can someone enlighten me?
I'm going to run a Intranet/web based search engine for employees email addresses . I already have it setup in Php/Mysql, but I don't want to have to export into Mysql everytime we update Exchange, so I thought I could query it directly.