LDAP Integration

  • jordonshaw
  • Student
  • Student
  • User avatar
  • Posts: 96
  • Loc: Tennessee

Post 3+ Months Ago

I'm trying to setup my PHP server to talk to LDAP to do single sign on. So, I went to my php.ini file and uncommented the extension=php_ldap.dll. I also found an article online that said I needed to copy the libeay32.dll and ssleay32.dll from my php folder to my system32 folder as well as my windows folder, which I did. I then restarted IIS. I ran this command:

Code: [ Select ]
echo extension_loaded('ldap') ? 'Loaded' : 'NOT Loaded'


It keeps coming back as NOT Loaded. Any suggestions? I'm lost at this point.

Thank you for your help!

Jordon
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • jordonshaw
  • Student
  • Student
  • User avatar
  • Posts: 96
  • Loc: Tennessee

Post 3+ Months Ago

Ok, so at this point, I'm about to pull my hair out (and I don't have much). So, I need to enable LDAP in my PHP install. So, everything works perfectlly in PHP and has been for a while now. All other extension that I have uncommented in the PHP.INI file, load fine. I uncommented the php_ldap.dll in the PHP.INI file and it didn't load. So, I did some research and found an article that you need to copy the lebeay32.dll and the ssleay32.dll from your PHP directory into your system32 and windows directory, which I did. Still will not load the php_ldap.dll. I have restarted IIS many times, I have restarted the machine, many times. Still nothing. I run this command:
Code: [ Select ]
echo extension_loaded('ldap') ? 'Loaded ' : 'NOT Loaded ';

and this one:
Code: [ Select ]
print_r(get_loaded_extensions());


The first one comes back Not Loaded and the second one shows everything that I have loaded and ldap isn't one of them.

I'm lost at this time and could really, really use some help here! :banghead:

Thanks,
Jordon
  • jordonshaw
  • Student
  • Student
  • User avatar
  • Posts: 96
  • Loc: Tennessee

Post 3+ Months Ago

I turned on start up errors and I get the following message about LDAP:

PHP Startup: ldap: Unable to initialize module
Module complied with module API=20060613, debug=0, thread-safety=1
PHP complied with module API=20060613, debug=0, thread-safety=0
These options need to match


So, now my question is, does anybody know how to make those match?

Thanks,
Jordon
  • jordonshaw
  • Student
  • Student
  • User avatar
  • Posts: 96
  • Loc: Tennessee

Post 3+ Months Ago

Ok, so I went ahead and uninstalled PHP and then reinstalled it. All the dll's are where they should be and now I'm getting a statup message that says:

"PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_ldap.dll' - The specified module could not be found"

The problem is, I know that the dll is there. Any suggestions?

Jordon
  • jordonshaw
  • Student
  • Student
  • User avatar
  • Posts: 96
  • Loc: Tennessee

Post 3+ Months Ago

Ok, so I just looked and there were several .dll files that was in the .zip download, but not in my php directory. I copied them and now it loads the php_ldap.dll; however, I'm now back to the same message of the module and php are complied with different options, like before. I can't win for losing!!!
  • jordonshaw
  • Student
  • Student
  • User avatar
  • Posts: 96
  • Loc: Tennessee

Post 3+ Months Ago

My prayers have been answered!!! I went back to php download site and this time I downloaded the non-thread-safe-zip-package and took the php_ldap.dll file out of it, replaced the one that I had, restarted IIS and it finally loaded without error!

Jordon

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 101 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.