Hey everyone! I have been racking my brain all day and I thought I would just finally post on here and ask the experts!
I have a test piece of code in PHP, basically just to test binding to an Microsoft Active Directory Server with a valid account, and I wrote it when I had XAMPP 1.4.5-1.4.7 installed and everything worked beautifully. I just installed the new 1.4.9a and now I get the following three errors:
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Unknown error in /opt/lampp/htdocs/active.php on line 69
Warning: ldap_search() [function.ldap-search]: Search: Unknown error in /opt/lampp/htdocs/active.php on line 70
Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in /opt/lampp/htdocs/active.php on line 71
Again this DID work up to 1.4.7. So anyway, I reverted to a backup of the /opt/lampp directory version 1.4.7 and the code worked fine once again. Then I tried using the upgrade script to 1.4.8, and once the upgrade finished, the code didn't work again. The section of code is below.
$ldap_user = "CN=someUSER,OU=Users,DC=new-albany,DC=k12,DC=oh,DC=us";
$ldap_pass = "somePASS";
$connect = ldap_connect($ldap_host, $ldap_port);
ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($connect, LDAP_OPT_REFERRALS, 0);
$bind = ldap_bind($connect, $ldap_user, $ldap_pass);
I have verified this on two separte machinges, although they are basically configured the same way. Both are Intel P4's, one is a desktop motherboard and another is a laptop. Does this have something to do with OpenLDAP 2.2.xx seemingly being introduced in XAMPP 1.4.8? Any ideas anyone? I am not ruling out operator error here...I may be missing something totally stupid so any help is much appreciated! Thanks so much in advance!
Wes