Hi,
How can I get the php_ldap.dll and php_openssl.dll?
What do I have to install? For example an LDAP server on my Apache server or something other extensions do I have to install?
I used the following configuration to get regular authentication working first. Despite it is NOT working:
require_once 'LdapAuthentication.php'; $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPDomainNames = array( 'KAR' ); $wgLDAPServerNames = array( 'KAR' => 'aab.kar.local', ); $wgLDAPSearchStrings = array( 'KAR' => 'KAR\USER-NAME', ); $wgLDAPEncryptionType = array( 'KAR' => 'ssl', ); $wgLDAPUseLocal = false; $wgMinimalPasswordLength = 1;
System:
MediaWiki 1.10 Apache/2.2.4 (Win32) - runs on WinXP PHP/5.2.3 MySQL 5.0.41 Microsoft Active Directory - runs on another server
Regards, Gabor Reizer
How can I get the php_ldap.dll and php_openssl.dll?
What do I have to install? For example an LDAP server on my Apache server or something other extensions do I have to install?
Right on the documentation page:
http://www.mediawiki.org/wiki/Extension:LDAP_Authentication#Windows_conf iguration
I used the following configuration to get regular authentication working first. Despite it is NOT working:
require_once 'LdapAuthentication.php'; $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPDomainNames = array( 'KAR' ); $wgLDAPServerNames = array( 'KAR' => 'aab.kar.local', ); $wgLDAPSearchStrings = array( 'KAR' => 'KAR\USER-NAME', ); $wgLDAPEncryptionType = array( 'KAR' => 'ssl', ); $wgLDAPUseLocal = false; $wgMinimalPasswordLength = 1;
You've posted the same thing a few times. I need more information than this to help you. If you don't have PHP configured correctly, fix that problem. For any further help I'll need your debug info; please set:
$wgLDAPDebug = 4;
And post the output, snipping out anything sensitive.
V/r,
Ryan Lane
Hi,
The output:
Entering validDomain User is using a valid domain. Setting domain as: MKB Entering getCanonicalName Username isn't empty. Munged username: U061827 Entering userExists Entering authenticate Entering Connect It looks like you are issing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module. If the authentication is working for you, the plugin isn't properly detecting the LDAP module, and you can safely ignore this message. Using TLS or not using encryption. Using servers: ldap://aab.kar.local
The problem could be that I don't have PHP configured correctly. How can I set 'php_ldap.dll' (and maybe 'php_openssl.dll') to *extension_dir of PHP (*c:/php/ext)? Where can I find these extansions? Could you give me an URL where I can find/download these?
Regards, Gabor
2007/11/9, Lane, Ryan Ryan.Lane@ocean.navo.navy.mil:
How can I get the php_ldap.dll and php_openssl.dll?
What do I have to install? For example an LDAP server on my Apache server or something other extensions do I have to install?
Right on the documentation page:
http://www.mediawiki.org/wiki/Extension:LDAP_Authentication#Windows_conf iguration
I used the following configuration to get regular authentication working first. Despite it is NOT working:
require_once 'LdapAuthentication.php'; $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPDomainNames = array( 'KAR' ); $wgLDAPServerNames = array( 'KAR' => 'aab.kar.local', ); $wgLDAPSearchStrings = array( 'KAR' => 'KAR\USER-NAME', ); $wgLDAPEncryptionType = array( 'KAR' => 'ssl', ); $wgLDAPUseLocal = false; $wgMinimalPasswordLength = 1;
You've posted the same thing a few times. I need more information than this to help you. If you don't have PHP configured correctly, fix that problem. For any further help I'll need your debug info; please set:
$wgLDAPDebug = 4;
And post the output, snipping out anything sensitive.
V/r,
Ryan Lane
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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?
The output:
Entering validDomain User is using a valid domain. Setting domain as: KAR Entering getCanonicalName Username isn't empty. Munged username: U061827 Entering userExists Entering authenticate Entering Connect It looks like you are issing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module. If the authentication is working for you, the plugin isn't properly detecting the LDAP module, and you can safely ignore this message. Using TLS or not using encryption. Using servers: ldap://aab.kar.local
2007/11/12, Reizer Gábor reizer.gabor@gmail.com:
Hi,
The output:
Entering validDomain User is using a valid domain. Setting domain as: MKB Entering getCanonicalName Username isn't empty. Munged username: U061827 Entering userExists Entering authenticate Entering Connect It looks like you are issing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module. If the authentication is working for you, the plugin isn't properly detecting the LDAP module, and you can safely ignore this message. Using TLS or not using encryption. Using servers: ldap://aab.kar.local
The problem could be that I don't have PHP configured correctly. How can I set 'php_ldap.dll' (and maybe 'php_openssl.dll') to *extension_dir of PHP ( *c:/php/ext)? Where can I find these extansions? Could you give me an URL where I can find/download these?
Regards, Gabor
2007/11/9, Lane, Ryan < Ryan.Lane@ocean.navo.navy.mil>:
How can I get the php_ldap.dll and php_openssl.dll?
What do I have to install? For example an LDAP server on my Apache server or something other extensions do I have to install?
Right on the documentation page:
http://www.mediawiki.org/wiki/Extension:LDAP_Authentication#Windows_conf iguration
I used the following configuration to get regular authentication working first. Despite it is NOT working:
require_once 'LdapAuthentication.php'; $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPDomainNames = array( 'KAR' ); $wgLDAPServerNames = array( 'KAR' => 'aab.kar.local', ); $wgLDAPSearchStrings = array( 'KAR' => 'KAR\USER-NAME', ); $wgLDAPEncryptionType = array( 'KAR' => 'ssl', ); $wgLDAPUseLocal = false; $wgMinimalPasswordLength = 1;
You've posted the same thing a few times. I need more information than this to help you. If you don't have PHP configured correctly, fix that problem. For any further help I'll need your debug info; please set:
$wgLDAPDebug = 4;
And post the output, snipping out anything sensitive.
V/r,
Ryan Lane
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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
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@ocean.navo.navy.mil:
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@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reizer Gábor wrote:
The problem could be that I don't have PHP configured correctly. How can I set 'php_ldap.dll' (and maybe 'php_openssl.dll') to *extension_dir of PHP (*c:/php/ext)?
You edit the file php.ini (on the same folder as php or C:\windows on old versions). You set the line extension_dir=c:/php/ext and make sure that extension=php_ldap.dll is not commented (doesn't start with ;)
mediawiki-l@lists.wikimedia.org