I have found the problem. After I start Apache, It can be found in the error
log:
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Web\\PHP-
v5.2.3\\ext\\php_ldap.dll' - The specified module could not be found.\r\n in
Unknown on line 0
I tried all of the following things, but the extension does not work:
1. In php.ini make sure the following lines are uncommented
;extension=php_ldap.dll
;extension=php_openssl.dll
2. Also in PHP.ini; Confirm those dll's are in the directory
referenced by *extension_dir* (ex. c:\php\ext)
3. Copy several files from the DLL folder of the PHP/Win32 binary
package to the SYSTEM folder of your windows machine. (Ex:
C:\WINNT\SYSTEM32, or C:\WINDOWS\SYSTEM). For PHP >= 4.3.0 copy
libeay32.dll and ssleay32.dll to your SYSTEM folder.
4. Create a text file called *ldap.conf* in the directory *
C:\openldap\sysconf\*. The first line must be *TLS_REQCERT never* .
(For some reason OpenLdap has this as a hard-coded required file.)
5. Both libeay32.dll and ssleay32.dll need msvcr70.dll (or msvcr71.dll,
it depends on the compiler version). Then just copy that dll to system32\
dir and it works perfectly.
6. After copied <php_dir>/dlls/*.dll to <windows>/systems32/ remember
to add read and exexcute premission to "everyone" and the extensions *.dll.
this can prevent warning of Access is denied of php_ldap.dll
7. Copy all DLL files from the PHP folder into the Windows system
directory
In step 4.: first line of ldap.conf must be:*TLS_REQCERT never* OR *TLS_REQCERT
= never*???
Please help me!
Regards,
Gabor Reizer
2007/11/13, Lane, Ryan <Ryan.Lane(a)ocean.navo.navy.mil>il>:
I have downloaded 'Collection of PECL
modules' for PHP. It contains
php_ldap.dll, but not php_openssl.dll file. It is important to use
php_openssl.dll
if I do not use ssl?
If you aren't using SSL, you probably don't need the dll; however, make
sure you define the encryption as follows:
$wgLDAPEncryptionType = array( "domain"=>"clear" );
otherwise you'll be using TLS, which will cause a crash.
Also notice that I may be detecting php_ldap improperly. If binding is
working, you can probably ignore that error. Fixing the detection is on
my todo.
V/r,
Ryan Lane
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l