Having an issue getting mediawiki to actually authenticate against ldap. Below is a log from a failed logon. In addition, below that is the LDAP Portion of the configuration. LDAP Authentication extension is 2.1.0, by Ryan Lane, and shows as an installed extension under Special:Version. Beyond that, I had hoped that once I declared the log file for LDAP extension to log to it would populate the file. It remains empty, despite having proper read/ write permissions.
Any assistance would be greatly appreciated.
Start request POST /mediawiki/index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Main+Page HTTP HEADERS: CACHE-CONTROL: no-cache CONNECTION: Keep-Alive CONTENT-LENGTH: 127 CONTENT-TYPE: application/x-www-form-urlencoded ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, */* ACCEPT-ENCODING: gzip, deflate ACCEPT-LANGUAGE: en-US COOKIE: wikidb792_mw__session=fc23383e59c0d1e76ab5cf0608cd1538; my_wiki_mw__session=025b1ac00506f943b51bad37acf948ae HOST: site REFERER: http://site/mediawiki/index.php?title=Special:UserLogin&action=submitlog... USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729) [caches] main: WinCacheBagOStuff, message: WinCacheBagOStuff, parser: WinCacheBagOStuff [caches] LocalisationCache: using store LCStoreCDB Fully initialised 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 IP: ::1 Connected to database 0 at 127.0.0.1 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
---
$wgLDAPDebug = 3; //for debugging $wgShowExceptionDetails = true; //for debugging MediaWiki $wgDebugLogGroups["ldap"] = 'E:\logs\ldap.log'; ##LDAP Authentication Plugin require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPUseLocal = false;
$wgLDAPDisableAutoCreate = array("XXXXXXXX"=>false); $wgShowExceptionDetails = true; //for debugging MediaWiki
$wgLDAPDomainNames = array( "XXXXXXXX.NET http://xxxxxxxx.net/" ); $wgLDAPServerNames = array( "XXXXXXXX" => "XXXXXXXXX" ); $wgLDAPSearchStrings = array( "XXXXXXXX" => "XXXXXXXX\USER-NAME" ); $wgLDAPEncryptionType = array( "XXXXXXXX" => "clear" ); $wgLDAPGroupBaseDNs = array("XXXXXXXX"=>"OU=TestOU,OU=Pilot,DC=XXXXXXXX,DC=net"); $wgLDAPSearchAttributes = array("XXXXXXXX"=>"sAMAccountName");
$wgLDAPProxyAgent = array('XXXXXXXX' => 'CN=testWiki,OU=TestOU,OU=OU,DC=XXXXXXXX,DC=net');
$wgLDAPProxyAgentPassword = array('XXXXXXXX' => 'XXXXXXXX');
I don't see a wgDebugLogFile setting. Do you have one?
I use: $wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log";
Larry Silverman Chief Technology Officer TrackAbout, Inc.
On Tue, Aug 26, 2014 at 10:04 AM, Jon jcunix@gmail.com wrote:
Having an issue getting mediawiki to actually authenticate against ldap. Below is a log from a failed logon. In addition, below that is the LDAP Portion of the configuration. LDAP Authentication extension is 2.1.0, by Ryan Lane, and shows as an installed extension under Special:Version. Beyond that, I had hoped that once I declared the log file for LDAP extension to log to it would populate the file. It remains empty, despite having proper read/ write permissions.
Any assistance would be greatly appreciated.
Start request POST
/mediawiki/index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Main+Page HTTP HEADERS: CACHE-CONTROL: no-cache CONNECTION: Keep-Alive CONTENT-LENGTH: 127 CONTENT-TYPE: application/x-www-form-urlencoded ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, */* ACCEPT-ENCODING: gzip, deflate ACCEPT-LANGUAGE: en-US COOKIE: wikidb792_mw__session=fc23383e59c0d1e76ab5cf0608cd1538; my_wiki_mw__session=025b1ac00506f943b51bad37acf948ae HOST: site REFERER:
http://site/mediawiki/index.php?title=Special:UserLogin&action=submitlog... USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729) [caches] main: WinCacheBagOStuff, message: WinCacheBagOStuff, parser: WinCacheBagOStuff [caches] LocalisationCache: using store LCStoreCDB Fully initialised 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 IP: ::1 Connected to database 0 at 127.0.0.1 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
$wgLDAPDebug = 3; //for debugging $wgShowExceptionDetails = true; //for debugging MediaWiki $wgDebugLogGroups["ldap"] = 'E:\logs\ldap.log'; ##LDAP Authentication Plugin require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPUseLocal = false;
$wgLDAPDisableAutoCreate = array("XXXXXXXX"=>false); $wgShowExceptionDetails = true; //for debugging MediaWiki
$wgLDAPDomainNames = array( "XXXXXXXX.NET http://xxxxxxxx.net/" ); $wgLDAPServerNames = array( "XXXXXXXX" => "XXXXXXXXX" ); $wgLDAPSearchStrings = array( "XXXXXXXX" => "XXXXXXXX\USER-NAME" ); $wgLDAPEncryptionType = array( "XXXXXXXX" => "clear" ); $wgLDAPGroupBaseDNs = array("XXXXXXXX"=>"OU=TestOU,OU=Pilot,DC=XXXXXXXX,DC=net"); $wgLDAPSearchAttributes = array("XXXXXXXX"=>"sAMAccountName");
$wgLDAPProxyAgent = array('XXXXXXXX' => 'CN=testWiki,OU=TestOU,OU=OU,DC=XXXXXXXX,DC=net');
$wgLDAPProxyAgentPassword = array('XXXXXXXX' => 'XXXXXXXX'); _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org