Thread:Project:Support desk/MediaWiki with LDAP and Active Directory/reply (2)

There must be something missing in this documentation. My installation of this extension is not connecting to my LDAP server, It's trying to use the local database. Is there some other plugin or an LDAP service that I need to make this work?

Environment: Windows Server 2008 R2 Bitnami distribution of WikiMedia Windows Active Directory

Here is a snippet of the debug log.

Start request POST /mediawiki/index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Main+Page HTTP HEADERS: ACCEPT: text/html, application/xhtml+xml, */* REFERER: http://wiki.mydomain.com/mediawiki/index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Main+Page ACCEPT-LANGUAGE: en-US USER-AGENT: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) CONTENT-TYPE: application/x-www-form-urlencoded ACCEPT-ENCODING: gzip, deflate HOST: wiki.mydomain.com CONTENT-LENGTH: 126 CONNECTION: Keep-Alive CACHE-CONTROL: no-cache COOKIE: bitnami_mediawiki_session=84f04d4a7df01594facfd6c899904170; bitnami_mediawikiUserName=Root [caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB Fully initialised Connected to database 0 at 127.0.0.1:3306 IP: 172.16.59.155 Connected to database 0 at 127.0.0.1:3306 MessageCache::load: Loading en... got from global cache Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser Parser: using preprocessor: Preprocessor_DOM Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct User::getBlockedStatus: checking... LoginForm::attemptAutoCreate: $wgAuth->authenticate returned false, aborting OutputPage::sendCacheControl: private caching; ** LoadBalancer::reuseConnection: this connection was not opened as a foreign connection Request ended normally

Here's the relevant config from localsettings.php:

require_once 'c:\program files\mediawiki\apps\mediawiki\htdocs\extensions\LdapAuthentication\LdapAuthentication.php'; require_once 'c:\program files\mediawiki\apps\mediawiki\htdocs\includes\AuthPlugin.php'; $wgAuth = new LdapAuthenticationPlugin; $wgLDAPDomainNames = array( 'MyDomain','MyDomain.com'); $wgLDAPServerNames = array( 'MyDomain' => 'ut-dc1.MyDomain.com ut-dc2.MyDomain.com',); $wgLDAPUseLocal = false; $wgLDAPAutoAuthDomain = 'MyDomain.com -auto'; $wgLDAPEncryptionType = array( 'MyDomain' => 'TLS',); $wgLDAPPort = array( 'MyDomain' => 389,); $wgLDAPProxyAgent = array( 'MyDomain' => 'cn=wikildap,ou=MyDomain services,dc=MyDomain,dc=com',); $wgLDAPProxyAgentPassword = array( 'MyDomain' => 'xxxxxxxxxxxxxxxxxxxx'); $wgLDAPSearchAttributes = array( 'MyDomain' => 'sAMAccountName'); $wgLDAPSearchStrings = array("MyDomain" => "MyDomain\\USER-NAME" ); $wgLDAPBaseDNs = array( 'MyDomain' => 'ou=MyDomain,dc=MyDomain,dc=com',); $wgLDAPPreferences = array( 'MyDomain' =>'true'); $wgShowExceptionDetails = true;