[Mediawiki-l] LdapAuthentication extension error

Eduardo Patto Kanegae epk.lists at gmail.com
Mon Oct 29 21:27:21 UTC 2007


Hi,

I´m trying to setup LdapAuthentication with MediaWiki 1.9.3 under Windows
and MySQL 4.1.22 and PHP 5.2.3
But after trying to log in I just got the following debug message:

Entering validDomain
User is using a valid domain.
Setting domain as: mydomain
Entering getCanonicalName
Username isn't empty.
Munged username: Ekanegae
Entering authenticate
Entering Connect
Using TLS or not using encryption.
Using servers: ldap://mydomain101.mydomain.local
Connected successfully
Lowercasing the username: Ekanegae
Entering getSearchString
Doing a straight bind
userdn is: uid=ekanegae,dc=mydomain,dc=local
Binding as the user
Failed to bind as uid=ekanegae,dc=mydomain,dc=local
Entering strict.
Returning true in strict().
Entering modifyUITemplate

My configuration is set to:

require_once( "$IP/extensions/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "mydomain" );
$wgLDAPServerNames = array( "mydomain"=>"mydomain101.mydomain.local" );
$wgLDAPUseLocal = false;
$wgLDAPEncryptionType = array( "mydomain"=>"clear"  );
$wgLDAPSearchStrings = array(
"mydomain"=>"uid=USER-NAME,dc=mydomain,dc=local" );
$wgLDAPSearchAttributes = array( "mydomain"=>"uid" );
$wgLDAPBaseDNs = array(  "mydomain"=>"dc=mydomain,dc=local" );
$wgLDAPDisableAutoCreate = array( "mydomain"=>false );
$wgMinimalPasswordLength = 1;
$wgLDAPDebug = 4;
$wgLDAPLowerCaseUsername = array( "mydomain"=>true );


-- 
Eduardo Patto Kanegae


More information about the MediaWiki-l mailing list