Hi everyone. I've been stuck on this problem for a while, and it's driving me nuts, so I'd greatly appreciate the help!
I have PHP set up on a Microsoft IIS 5.x server. For authentication purposes, I am trying to query a Microsoft Exchange of user information via LDAP. Now, I have never used LDAP before, but I followed the instructions very closely. Here is what I've done so far:
- Placed php_ldap.dll and libsasl.dll in the c:/php/extensions folder
- Uncommented the extension for php_ldap.dll in the php.ini file and set the extension_dir to c:/php/extensions
- Gave the IUSR_machine_name full privileges to the php_ldap.dll and libsasl.dll files, as well as the folders they reside in.
- I have tried placing the .dll's in the c:/winnt/system32 directory, and still the same problem. I have also downloaded all the .dll's in the windows binary version of the PHP download and placed them all in the system32 directory.
The problem I'm having is that whenever I try to access the website I get a pop-up message on the server that states:
"Unknown(): Unable to load dynamic library 'c:/php/extensions/php_ldap.dll' - Access is denied". This occurs whenever I try to access any of the PHP pages, not just the one that tries to connect to the Exchange Server via LDAP. One more possible clue is that my phpInfo() page doesn't mention anything about LDAP being used in the system.
My hunch is that this is a permissions thing, but I've tried everything I know to do as far as that goes! Anybody out there ever had this problem or have any ideas? I'd be very grateful.