note 27347 deleted from ref.ldap by betz
| From: | betz@php.net | Date: | Sun, 19 Oct 2003 14:35:00 +0000 |
| Subject: | note 27347 deleted from ref.ldap by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58895@lists.php.net to get a copy of this message | ||
Note Submitter: dave.awatere@equant.com
----
When enabling ldap support for win32 binaries I ran into a few difficulties. As previously
mentioned here, the libsasl library is required for php_ldap. Here are the two simple steps to
getting this to work.
1. After sucessfully installing php and testing, copy the file libsasl.dll (google it for download
sites, it's 40kb) to: C:/your_php_path/dlls.
2. Edit your php.ini and un-comment the line ;extension=php_ldap.dll so that it reads
extension=php_ldap.dll
Thats it. Restart your webserver and test with <?php phpinfo();?>.
Note: if you have been fiddling with the location of libsasl.dll and you have an error "Unable
to load dynamic library..." then you will need to kill the hung apache process (you can use
taskinfo app for this) or restart you windows box after restoring you php.ini to original (no
ldap_support). I know this sounds confusing but it is the reason why I just wasted an hour and a
half.
I have tested this with all php versions from 4.1.2 up incl 4.3rc2. Also have this running with
apache2. We use it with the xaraya.com cms to authenticate our intranet users. Hope this saves
some-one the hour and a half of pain it served me...