Thread:Project:Support desk/LDAP Authentication problem

Hello, I have to install a Wiki with LDAP plugin on a Server with AD domain, but at the first I begin to install it on my PC (Windows XP) to make some tests and I installed easyphp to simulate a server. I tryed to follow the official user guide, but with no success. I also didn't find a good unofficial guide.

I enabled LDAP on php.ini I set these variables after their declaration on LdapAuthentication.php:

$wgLDAPRequiredGroups = array( "testADLDAPdomain"=>array("cn=testgroup,ou=groups,dc=adldap,dc=example,dc=com")); $wgLDAPGroupUseFullDN = array( "testADLDAPdomain"=>true ); $wgLDAPGroupObjectclass = array( "testADLDAPdomain"=>"group" ); $wgLDAPGroupAttribute = array( "testADLDAPdomain"=>"member" ); $wgLDAPGroupSearchNestedGroups = array( "testADLDAPdomain"=>true ); $wgLDAPGroupNameAttribute = array( "testADLDAPdomain"=>"cn" ); $wgLDAPBaseDNs = array( "testADLDAPdomain"=>"dc=ADLDAP,dc=example,dc=com" ); $wgLDAPSearchAttributes = array( "testADLDAPdomain"=>"sAMAccountName" );

Moreover I set following variables at the end of LocalSetting.php:

require_once ('extensions/LdapAuthentication.php'); $wgAuth = new LdapAuthenticationPlugin; $wgLDAPDomainNames = array( 'exampleADDomain'  ); $wgLDAPServerNames = array( 'exampleADDomain' => 'exampleldapserver.example.com exampleldapserver2.example.com'  ); $wgLDAPSearchStrings = array( 'exampleADDomain' => 'EXAMPLEDOMAIN\\USER-NAME'  ); $wgLDAPEncryptionType = array( 'exampleADDomain' => 'ssl'  ); $wgLDAPUseLocal = false; $wgMinimalPasswordLength = 1; $wgLDAPBaseDNs = array( 'exampleADDomain' => 'cn=Users,dc=example,dc=com'  ); $wgLDAPSearchAttributes = array( 'exampleADDomain' => 'sAMAccountName' );

(obviously I set all my parameters instead of "testADLDAPdomain" and "example")

When I try to log in using a domain user, I cannot do it (system give me an error about the password, but I know that my pass is correctly.) Moreover when I browse on my wiki, it always show me following errors on the top of the page:

Strict Standards: Declaration of LdapAuthenticationPlugin::modifyUITemplate should be compatible with that of AuthPlugin::modifyUITemplate in C:\Programmi\EasyPHP-5.3.6.0\www\mediawiki- 1.16.4\extensions\LdapAuthentication\LdapAuthentication.php on line 70 Strict Standards: Declaration of LdapAuthenticationPlugin::setPassword should be compatible with that of AuthPlugin::setPassword in C:\Programmi\EasyPHP-5.3.6.0\www\mediawiki- 1.16.4\extensions\LdapAuthentication\LdapAuthentication.php on line 70 Strict Standards: Declaration of LdapAuthenticationPlugin::addUser should be compatible with that of AuthPlugin::addUser in C:\Programmi\EasyPHP-5.3.6.0\www\mediawiki- 1.16.4\extensions\LdapAuthentication\LdapAuthentication.php on line 70 Strict Standards: Declaration of LdapAuthenticationPlugin::initUser should be compatible with that of AuthPlugin::initUser in C:\Programmi\EasyPHP-5.3.6.0\www\mediawiki- 1.16.4\extensions\LdapAuthentication\LdapAuthentication.php on line 70