Topic on Extension talk:LDAP Authentication

Warning: array_keys() expects parameter 1 to be array, boolean given in [...]extensions/LdapAuthentication/LdapAuthenticationPlugin.php on line 1422

2
77.158.75.132 (talkcontribs)

Hi,

I get this error when I try to connect with a AD account (in a "wikiAdmin" group) here my config :

LocalSettings.php


$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;

$wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css", "MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js");


# $wgLDAPDebug = 3; //for debugging LDAP
$wgShowExceptionDetails = true; //for debugging MediaWiki

########################################################################################################################
 ### LDAP Authentication Plugin
 #
require_once( "extensions/LdapAuthentication/LdapAutoAuthentication.php" );
require_once( "extensions/LdapAuthentication/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDebug = 3; $wgDebugLogGroups["ldap"] = "/volume1/web/jadeo/debug.log" ;
$wgLDAPDomainNames = array('SIEGE_JADEO',);
$wgLDAPServerNames = array('SIEGE_JADEO' => "AD-JADEO.siege.jadeofrance.fr",);
$wgLDAPSearchStrings = array('SIEGE_JADEO' => 'SIEGE_JADEO\\USER-NAME',);
$wgLDAPEncryptionType = array('SIEGE_JADEO' => 'clear',);
$wgLDAPBaseDNs = array('SIEGE_JADEO' => 'ou=Jadeo,dc=siege,dc=jadeofrance,dc=fr');
$wgLDAPSearchAttributes = array('SIEGE_JADEO' => 'sAMAccountName');
#$wgLDAPProxyAgent = array("SIEGE_JADEO"=>"*****");
#$wgLDAPProxyAgentPassword = array("SIEGE_JADEO"=>"*****");
$wgLDAPUpdateLDAP = array("SIEGE_JADEO"=>false);
$wgLDAPAddLDAPUsers = array("SIEGE_JADEO"=>false);
$wgLDAPPreferences = array( 'SIEGE_JADEO' => true );
$wgLDAPGroupSearchNestedGroups = array("SIEGE_JADEO"=>true);
$wgLDAPRequiredGroups = array("SIEGE_JADEO"=>array("CN=wikiAdmin,OU=Jadeo,DC=siege,DC=jadeofrance,DC=fr"));
$wgLDAPGroupUseFullDN = array("SIEGE_JADEO"=>true);
$wgLDAPLowerCaseUsername = array('SIEGE_JADEO' => false);
$wgLDAPGroupObjectclass = array("SIEGE_JADEO"=>'group');
$wgLDAPGroupAttribute = array("SIEGE_JADEO"=>'member');
#$wgLDAPUseLDAPGroups = array( "SIEGE_JADEO"=>true );
$wgLDAPGroupNameAttribute = array( "SIEGE_JADEO"=>"cn" );
$wgLDAPGroupsUseMemberOf = array('SIEGE_JADEO' => true);

Error in the web Browser

This error is write at the top of the page, when I show the source code, it's upper than the <!DOCTYPE html> (maybe a php error)


Warning: array_keys() expects parameter 1 to be array, boolean given in /volume1/web/jadeo/extensions/LdapAuthentication/LdapAuthenticationPlugin.php on line 1422

Warning: Invalid argument supplied for foreach() in /volume1/web/jadeo/extensions/LdapAuthentication/LdapAuthenticationPlugin.php on line 1422

And I get the error :

La création automatique d’un compte local a échoué : La création automatique de compte n’est pas autorisée.

In english :

The automatic creation of local account fail : Automatic account creation is not allowed.

(or something like that, sorry for my bad english)

Debug


2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering strict.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Returning true in strict().
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering allowPasswordChange
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering modifyUITemplate
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getCanonicalName
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Username is an IP, not munging.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getCanonicalName
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Username is: A.tarpin
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering validDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 User is using a valid domain (SIEGE_JADEO).
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering Connect
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using TLS or not using encryption.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using servers: ldap://AD-JADEO.siege.jadeofrance.fr:389
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getUserDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Doing an anonymous bind
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Created a regular filter: (sAMAccountName=A.tarpin)
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using base: ou=Jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Couldn't find an entry
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Fetched username is not a string (check your hook code...). This message can be safely ignored if you do not have the SetUsernameAttributeFromLDAP hook defined.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Munged username: A.tarpin
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getCanonicalName
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Username is: A.tarpin
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering validDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 User is using a valid domain (SIEGE_JADEO).
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering Connect
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using TLS or not using encryption.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using servers: ldap://AD-JADEO.siege.jadeofrance.fr:389
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getUserDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Doing an anonymous bind
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Created a regular filter: (sAMAccountName=A.tarpin)
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using base: ou=Jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Couldn't find an entry
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Fetched username is not a string (check your hook code...). This message can be safely ignored if you do not have the SetUsernameAttributeFromLDAP hook defined.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Munged username: A.tarpin
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getCanonicalName
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Username is: A.tarpin
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering validDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 User is using a valid domain (SIEGE_JADEO).
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering Connect
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using TLS or not using encryption.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using servers: ldap://AD-JADEO.siege.jadeofrance.fr:389
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getUserDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Doing an anonymous bind
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Created a regular filter: (sAMAccountName=A.tarpin)
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using base: ou=Jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Couldn't find an entry
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Fetched username is not a string (check your hook code...). This message can be safely ignored if you do not have the SetUsernameAttributeFromLDAP hook defined.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Munged username: A.tarpin
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getCanonicalName
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Username is: A.tarpin
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering validDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 User is using a valid domain (SIEGE_JADEO).
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering Connect
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using TLS or not using encryption.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using servers: ldap://AD-JADEO.siege.jadeofrance.fr:389
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getUserDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Doing an anonymous bind
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Created a regular filter: (sAMAccountName=A.tarpin)
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Using base: ou=Jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Couldn't find an entry
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Fetched username is not a string (check your hook code...). This message can be safely ignored if you do not have the SetUsernameAttributeFromLDAP hook defined.
2017-02-14 11:09:22 Serv-Info JadeoWiki: 2.1.0 Munged username: A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getCanonicalName
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Username is: A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering validDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 User is using a valid domain (SIEGE_JADEO).
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering Connect
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using TLS or not using encryption.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using servers: ldap://AD-JADEO.siege.jadeofrance.fr:389
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getUserDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Doing an anonymous bind
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Created a regular filter: (sAMAccountName=A.tarpin)
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using base: ou=Jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Couldn't find an entry
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Fetched username is not a string (check your hook code...). This message can be safely ignored if you do not have the SetUsernameAttributeFromLDAP hook defined.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Munged username: A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getCanonicalName
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Username is: A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering validDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 User is using a valid domain (SIEGE_JADEO).
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering Connect
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using TLS or not using encryption.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using servers: ldap://AD-JADEO.siege.jadeofrance.fr:389
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getUserDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Doing an anonymous bind
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Created a regular filter: (sAMAccountName=A.tarpin)
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using base: ou=Jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Couldn't find an entry
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Fetched username is not a string (check your hook code...). This message can be safely ignored if you do not have the SetUsernameAttributeFromLDAP hook defined.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Munged username: A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering validDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 User is using a valid domain (SIEGE_JADEO).
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Setting domain as: SIEGE_JADEO
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getCanonicalName
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Username is: A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering validDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 User is using a valid domain (SIEGE_JADEO).
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering Connect
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using TLS or not using encryption.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using servers: ldap://AD-JADEO.siege.jadeofrance.fr:389
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getUserDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Doing an anonymous bind
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Created a regular filter: (sAMAccountName=A.tarpin)
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using base: ou=Jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Couldn't find an entry
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Fetched username is not a string (check your hook code...). This message can be safely ignored if you do not have the SetUsernameAttributeFromLDAP hook defined.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Munged username: A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering userExists
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering authenticate for username A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering Connect
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using TLS or not using encryption.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using servers: ldap://AD-JADEO.siege.jadeofrance.fr:389
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getSearchString
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Doing a straight bind
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 userdn is: SIEGE_JADEO\A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Binding as the user
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Bound successfully
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getUserDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Created a regular filter: (sAMAccountName=A.tarpin)
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using base: ou=Jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Fetched UserDN: CN=Arno TARPIN,OU=Jadeo,DC=siege,DC=jadeofrance,DC=fr
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getGroups
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Retrieving LDAP group membership
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using memberOf
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Got the following groups: cn=wikiadmin,ou=jadeo,dc=siege,dc=jadeofrance,dc=fr::cn=wifi,ou=jadeo,dc=siege,dc=jadeofrance,dc=fr::cn=accès devawh,ou=jadeo,dc=siege,dc=jadeofrance,dc=fr::cn=administrateur locaux,ou=jadeo,dc=siege,dc=jadeofrance,dc=fr::cn=groupe informatique,ou=jadeo,dc=siege,dc=jadeofrance,dc=fr::cn=admins du domaine,cn=users,dc=siege,dc=jadeofrance,dc=fr::cn=administrateurs de l’entreprise,cn=users,dc=siege,dc=jadeofrance,dc=fr::cn=administrateurs,cn=builtin,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering checkGroups
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Checking for (new style) group membership
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Required groups: cn=wikiadmin,ou=jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Checking against: cn=wikiadmin,ou=jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Found user in a group.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getPreferences
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Retrieving preferences
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Authentication passed
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getCanonicalName
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Username is: A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering validDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 User is using a valid domain (SIEGE_JADEO).
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering Connect
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using TLS or not using encryption.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using servers: ldap://AD-JADEO.siege.jadeofrance.fr:389
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getUserDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Doing an anonymous bind
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Created a regular filter: (sAMAccountName=A.tarpin)
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getBaseDN
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Using base: ou=Jadeo,dc=siege,dc=jadeofrance,dc=fr
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Couldn't find an entry
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Fetched username is not a string (check your hook code...). This message can be safely ignored if you do not have the SetUsernameAttributeFromLDAP hook defined.
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Munged username: A.tarpin
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering allowPasswordChange
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering modifyUITemplate
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain
2017-02-14 11:09:23 Serv-Info JadeoWiki: 2.1.0 Entering getDomain


What should I do ?

Thanks

77.158.75.132 (talkcontribs)

Ok, so without any change it's working now, I just went to lunch and when I come back it work...

Last question : there is a way to allow a specific AD group some privilege ?

I explain : I want to create 2 groups, one standard user with only read right, and one super admin right with read, edit, delete right.

I find this : Extension:LDAP Authentication/User Provided Information#Allow LDAP users to act as SysOps or Bureaucrat based on groups

and this : Manual:$wgAutopromote

and this : Manual talk:$wgAutopromote

But It's not very usefull...

Thanks !

Reply to "Warning: array_keys() expects parameter 1 to be array, boolean given in [...]extensions/LdapAuthentication/LdapAuthenticationPlugin.php on line 1422"