Thread:Extension talk:LDAP Authentication/Incorrect login details freezes wiki/reply (2)

Very late reply. Sorry.

I couldn't get the LDAP extension to produce a log file. I changed paths and log levels but nothing. It always outputs the log information to the browser, which in my case isn't useful since it's hanging.

Nevertheless, I got some useful (perhaps) information from the mediawiki logs. When I log in, the last few entries in this log file are shown below (with sensitive bits replaced):

Connected SQL: BEGIN SQL: SELECT /* User::idFromName  */ user_id  FROM `user`  WHERE user_name = 'anonymous'  LIMIT 1 Cache miss for user 8 SQL: SELECT /* User::loadFromDatabase  */ *  FROM `user`  WHERE user_id = '8'  LIMIT 1 SQL: SELECT /* User::loadGroups  */ ug_group  FROM `user_groups`  WHERE ug_user = '8'

I can tell you that ug_user for value 8 is sysop.

As for version information:

MediaWiki 1.15.1 PHP 5.2.2 (apache2handler) MySQL 5.0.41-community-nt LDAP Authentication Plugin (Version 1.2a (beta))

And the configuration (again, sensitivities removed):

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin; $wgLDAPDomainNames = array("domain"); $wgLDAPServerNames = array("domain" => "box1.domain.local box2.domain.local"); $wgLDAPSearchStrings = array("domain" => "USER-NAME@domain"); $wgLDAPEncryptionType = array("domain" => "clear"); $wgLDAPRetrievePrefs = array("domain" => true); $wgLDAPBaseDNs = array( "domain" => "dc=domain,dc=local" ); $wgLDAPSearchAttributes = array( "domain" => "sAMAccountName" ); $wgLDAPDebug = 3; $wgDebugLogGroups["ldap"] = "ldap_debug.log"; # I tried various values for this but couldn't get a log file