I have been at this for a few hours and can't seem to figure out the problem.
OS - Windows XP
WAMP : Apache 2.2.22 / PHP 5.4.3
Apache modules active:
mod_authnz_ldap
ldap_module
PHP extensions active:
php_ldap.dll
I have tried many different combination found on the forum and online and can't get any to work. My current ldap.config.php contents are as follows:
'binddn' => '',
'bindpw' => '',
'basedn' => 'ou=Engineer,dc=corp,dc=jltmobilecomputers,dc=com',
'host' => 'ldap://10.8.0.20:389',
'port' => 389,
'uid' => 'sAMAccountName'
The combinations all result in the following error:
Session "default" started at 2014-07-08T02:44:56+0000
#1 ERROR: Error: ldap_search(): Search: Operations error in 'C:\wamp\www\feng\library\PEAR\Net\LDAP2.php' on line 1087 (error code: 2)
Time since start: 0.40205883979797 seconds
I have created the username "lab" in FO and can login with this user using the FO password.
LDAP Administrator shows the following:cn: Lab User
name: Lab User
sAMAccountName: lab
sAMAccountType: < samUserAccount >
distinguishedName: CN=Lab User,OU=Engineer,DC=corp,DC=jltmobilecomputers,DC=com
displayName: Lab User