Thread:Extension talk:LDAP Authentication/Get Database Error after Login/reply (6)

Hi,

I have the same problem here with database error after loging. Could you please help me to understand why?


 * Debian 6.0.9
 * MediaWiki 1.22
 * LdapAuthentication-2.0f

CONFIG:

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );

$wgAuth = new LdapAuthenticationPlugin;

$wgLDAPUseLocal = false;

$wgLDAPBaseDNs = array("DOMAIN.local"=>"dc=DOMAIN,dc=local");

$wgLDAPSearchStrings = array( "DOMAIN.local" => "DOMAIN\\USER-NAME" );

$wgLDAPEncryptionType = array("DOMAIN.local"=>"clear");

$wgLDAPPort = array("DOMAIN.local" => 389);

$wgLDAPSearchAttributes = array("DOMAIN.local"=>"sAMAccountName");

$wgLDAPDomainNames = array("DOMAIN.local");

$wgLDAPServerNames = array("DOMAIN.local" => "AD.DOMAIN.local");

$wgLDAPDebug = 4; //for debugging LDAP

$wgDebugLogGroups['ldap'] = '/tmp/debug.log';

$wgShowExceptionDetails = true;

LOG :

2014-06-12 16:32:54 SERVER DOMAIN_wiki: 2.0f Entering getCanonicalName

2014-06-12 16:32:54 SERVER DOMAIN_wiki: 2.0f Username is: Ã propos

2014-06-12 16:32:54 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:32:54 SERVER DOMAIN_wiki: 2.0f Munged username: Ã propos

2014-06-12 16:32:59 SERVER DOMAIN_wiki: 2.0f Entering allowPasswordChange

2014-06-12 16:32:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:32:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:32:59 SERVER DOMAIN_wiki: 2.0f Entering getCanonicalName

2014-06-12 16:32:59 SERVER DOMAIN_wiki: 2.0f Username is: $1

2014-06-12 16:32:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:32:59 SERVER DOMAIN_wiki: 2.0f Munged username: $1

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f Entering validDomain

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f User is not using a valid domain.

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f Setting domain as: DOMAIN.local

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f Entering allowPasswordChange

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f Entering modifyUITemplate

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:48 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:58 SERVER DOMAIN_wiki: 2.0f Entering validDomain

2014-06-12 16:42:58 SERVER DOMAIN_wiki: 2.0f User is using a valid domain (DOMAIN.local).

2014-06-12 16:42:58 SERVER DOMAIN_wiki: 2.0f Setting domain as: DOMAIN.local

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getCanonicalName

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Username is: Julien

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Munged username: Julien

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getCanonicalName

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Username is an IP, not munging.

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getCanonicalName

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Username is an IP, not munging.

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering userExists

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering authenticate for username Julien

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering Connect

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Using TLS or not using encryption.

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Using non-standard port: 389

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Using servers: ldap://AD.DOMAIN.local:389

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f PHP's LDAP connect method returned true (note, this does not imply it connected to the server).

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getSearchString

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Doing a straight bind

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f userdn is: DOMAIN\Julien

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Binding as the user

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Bound successfully

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getUserDN

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Created a regular filter: (sAMAccountName=Julien)

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getBaseDN

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f basedn is not set for this type of entry, trying to get the default basedn.

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getBaseDN

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Using base: dc=DOMAIN,dc=local

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Fetched UserDN: CN=Julien [DOMAIN],OU=UTILISATEURS,OU=TECHNIQUE,DC=DOMAIN,DC=local

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getGroups

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering checkGroups

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getPreferences

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Authentication passed

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering allowPasswordChange

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering initUser

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering updateUser

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f Entering getDomain

2014-06-12 16:42:59 SERVER DOMAIN_wiki: 2.0f User has a token, setting domain in user options.