Please @Osnard could you help me with this problem?
When I try to login in my wiki, I get the message: Could not authenticate credentials against domain "solis"
cat debugLDAP-wiki.log
IP: 127.0.0.1
Start command line script extensions/LDAPProvider/maintenance/CheckLogin.php
[caches] cluster: APCBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: APCBagOStuff, session: APCBagOStuff
[caches] LocalisationCache: using store LCStoreDB
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection.
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "127.0.0.1",
"UserAgent": false,
"ChronologyProtection": false,
"ChronologyPositionIndex": 0
}
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'.
[DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'.
IP: 127.0.0.1
Start command line script extensions/LDAPProvider/maintenance/ShowUserGroups.php
[caches] cluster: APCBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: APCBagOStuff, session: APCBagOStuff
[caches] LocalisationCache: using store LCStoreDB
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection.
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "127.0.0.1",
"UserAgent": false,
"ChronologyProtection": false,
"ChronologyPositionIndex": 0
}
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'.
[error] [15122d2a2917e2206b29694d] [no req] ErrorException from line 19 of /var/lib/wiki/extensions/LDAPProvider/src/UserGroupsRequest/UserMemberOf.php: PHP Notice: Undefined index: memberof
#0 /var/lib/wiki/extensions/LDAPProvider/src/UserGroupsRequest/UserMemberOf.php(19): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /var/lib/wiki/extensions/LDAPProvider/src/Client.php(346): MediaWiki\Extension\LDAPProvider\UserGroupsRequest\UserMemberOf->getUserGroups(string)
#2 /var/lib/wiki/includes/libs/objectcache/BagOStuff.php(159): MediaWiki\Extension\LDAPProvider\Client->MediaWiki\Extension\LDAPProvider\{closure}()
#3 /var/lib/wiki/extensions/LDAPProvider/src/Client.php(347): BagOStuff->getWithSetCallback(string, integer, Closure)
#4 /var/lib/wiki/extensions/LDAPProvider/maintenance/ShowUserGroups.php(48): MediaWiki\Extension\LDAPProvider\Client->getUserGroups(string)
#5 /var/lib/wiki/maintenance/doMaintenance.php(94): MediaWiki\Extension\LDAPProvider\Maintenance\ShowUserGroups->execute()
#6 /var/lib/wiki/extensions/LDAPProvider/maintenance/ShowUserGroups.php(71): require_once(string)
#7 {main}
[error] [15122d2a2917e2206b29694d] [no req] ErrorException from line 59 of /var/lib/wiki/extensions/LDAPProvider/maintenance/ShowUserGroups.php: PHP Warning: Invalid argument supplied for foreach()
#0 /var/lib/wiki/extensions/LDAPProvider/maintenance/ShowUserGroups.php(59): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /var/lib/wiki/extensions/LDAPProvider/maintenance/ShowUserGroups.php(50): MediaWiki\Extension\LDAPProvider\Maintenance\ShowUserGroups->showValue(MediaWiki\Extension\LDAPProvider\GroupList)
#2 /var/lib/wiki/maintenance/doMaintenance.php(94): MediaWiki\Extension\LDAPProvider\Maintenance\ShowUserGroups->execute()
#3 /var/lib/wiki/extensions/LDAPProvider/maintenance/ShowUserGroups.php(71): require_once(string)
#4 {main}
[error] [15122d2a2917e2206b29694d] [no req] ErrorException from line 52 of /var/lib/wiki/extensions/LDAPProvider/src/GroupList.php: PHP Warning: Invalid argument supplied for foreach()
#0 /var/lib/wiki/extensions/LDAPProvider/src/GroupList.php(52): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /var/lib/wiki/extensions/LDAPProvider/src/GroupList.php(32): MediaWiki\Extension\LDAPProvider\GroupList->makeShortNames()
#2 /var/lib/wiki/extensions/LDAPProvider/maintenance/ShowUserGroups.php(64): MediaWiki\Extension\LDAPProvider\GroupList->getShortNames()
#3 /var/lib/wiki/extensions/LDAPProvider/maintenance/ShowUserGroups.php(50): MediaWiki\Extension\LDAPProvider\Maintenance\ShowUserGroups->showValue(MediaWiki\Extension\LDAPProvider\GroupList)
#4 /var/lib/wiki/maintenance/doMaintenance.php(94): MediaWiki\Extension\LDAPProvider\Maintenance\ShowUserGroups->execute()
#5 /var/lib/wiki/extensions/LDAPProvider/maintenance/ShowUserGroups.php(71): require_once(string)
#6 {main}
[DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'.
IP: 127.0.0.1
Start command line script extensions/LDAPProvider/maintenance/ShowUserInfo.php
[caches] cluster: APCBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: APCBagOStuff, session: APCBagOStuff
[caches] LocalisationCache: using store LCStoreDB
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection.
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "127.0.0.1",
"UserAgent": false,
"ChronologyProtection": false,
"ChronologyPositionIndex": 0
}
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'.
[DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'.
cat LDAP.log
2019-09-17 17:50:01 guilherme-pc wiki: ldap_connect( $hostname = 'ldap://ldapslave.solis.com.br:389', $port = 389 );
2019-09-17 17:50:01 guilherme-pc wiki: # __METHOD__ returns Resource id #198
2019-09-17 17:50:01 guilherme-pc wiki: ldap_set_option( $linkID, $option = 17, $newval = 3 );
2019-09-17 17:50:01 guilherme-pc wiki: # returns 1
2019-09-17 17:50:01 guilherme-pc wiki: ldap_set_option( $linkID, $option = 8, $newval = 0 );
2019-09-17 17:50:01 guilherme-pc wiki: # returns 1
2019-09-17 17:50:01 guilherme-pc wiki: ldap_set_option( $linkID, $option = 2, $newval = 1 );
2019-09-17 17:50:01 guilherme-pc wiki: # returns 1
2019-09-17 17:50:01 guilherme-pc wiki: ldap_bind( $linkID, $bindRDN = 'uid=guilherme_bangemann,ou=users,dc=solis,dc=coop,dc=br', $bindPassword = 'XXXX' );
2019-09-17 17:50:02 guilherme-pc wiki: # returns 1
2019-09-17 17:50:02 guilherme-pc wiki: ldap_bind( $linkID, $bindRDN = 'solis\guilherme_bangemann', $bindPassword = 'XXXX' );
2019-09-17 17:50:02 guilherme-pc wiki: # returns
2019-09-17 17:50:07 guilherme-pc wiki: ldap_connect( $hostname = 'ldap://ldapslave.solis.com.br:389', $port = 389 );
2019-09-17 17:50:07 guilherme-pc wiki: # __METHOD__ returns Resource id #198
2019-09-17 17:50:07 guilherme-pc wiki: ldap_set_option( $linkID, $option = 17, $newval = 3 );
2019-09-17 17:50:07 guilherme-pc wiki: # returns 1
2019-09-17 17:50:07 guilherme-pc wiki: ldap_set_option( $linkID, $option = 8, $newval = 0 );
2019-09-17 17:50:07 guilherme-pc wiki: # returns 1
2019-09-17 17:50:07 guilherme-pc wiki: ldap_set_option( $linkID, $option = 2, $newval = 1 );
2019-09-17 17:50:07 guilherme-pc wiki: # returns 1
2019-09-17 17:50:07 guilherme-pc wiki: ldap_bind( $linkID, $bindRDN = 'uid=guilherme_bangemann,ou=users,dc=solis,dc=coop,dc=br', $bindPassword = 'XXXX' );
2019-09-17 17:50:07 guilherme-pc wiki: # returns 1
2019-09-17 17:50:07 guilherme-pc wiki: ldap_search( $linkID, $baseDN = 'dc=solis,dc=coop,dc=br', $filter = '(uid=guilherme_bangemann)', $attributes = [ '*', 'memberof' ], $attrsonly = , $sizelimit = , $timelimit = , $deref = );
2019-09-17 17:50:07 guilherme-pc wiki: # returns Resource id #216
2019-09-17 17:50:07 guilherme-pc wiki: ldap_get_entries( $linkID, $resultID );
2019-09-17 17:50:07 guilherme-pc wiki: # returns: array (
'count' => 1,
0 =>
array (
'objectclass' =>
array (
'count' => 6,
0 => 'sambaSamAccount',
1 => 'shadowAccount',
2 => 'posixAccount',
3 => 'inetOrgPerson',
4 => 'organizationalPerson',
5 => 'person',
),
0 => 'objectclass',
'sambadomainname' =>
array (
'count' => 1,
0 => 'SOLIS',
),
1 => 'sambadomainname',
'displayname' =>
array (
'count' => 1,
0 => 'Guilherme Keunecke Bangemann',
),
2 => 'displayname',
'sambahomedrive' =>
array (
'count' => 1,
0 => 'U:',
),
3 => 'sambahomedrive',
'sambakickofftime' =>
array (
'count' => 1,
0 => '1893463200',
),
4 => 'sambakickofftime',
'sambaprimarygroupsid' =>
array (
'count' => 1,
0 => 'S-1-5-21-2804338137-552302570-2244938293-513',
),
5 => 'sambaprimarygroupsid',
'sambaacctflags' =>
array (
'count' => 1,
0 => '[XU ]',
),
6 => 'sambaacctflags',
'sambasid' =>
array (
'count' => 1,
0 => 'S-1-5-21-2804338137-552302570-2244938293-21792',
),
7 => 'sambasid',
'shadowwarning' =>
array (
'count' => 1,
0 => '10',
),
8 => 'shadowwarning',
'shadowinactive' =>
array (
'count' => 1,
0 => '10',
),
9 => 'shadowinactive',
'shadowmin' =>
array (
'count' => 1,
0 => '1',
),
10 => 'shadowmin',
'shadowmax' =>
array (
'count' => 1,
0 => '365',
),
11 => 'shadowmax',
'homedirectory' =>
array (
'count' => 1,
0 => '/home/guilherme',
),
12 => 'homedirectory',
'loginshell' =>
array (
'count' => 1,
0 => '/bin/bash',
),
13 => 'loginshell',
'gidnumber' =>
array (
'count' => 1,
0 => '10001',
),
14 => 'gidnumber',
'cn' =>
array (
'count' => 1,
0 => 'Guilherme Keunecke Bangemann',
),
15 => 'cn',
'uidnumber' =>
array (
'count' => 1,
0 => '10396',
),
16 => 'uidnumber',
'sn' =>
array (
'count' => 1,
0 => 'Bangemann',
),
17 => 'sn',
'givenname' =>
array (
'count' => 1,
0 => 'Guilherme Keunecke',
),
18 => 'givenname',
'departmentnumber' =>
array (
'count' => 1,
0 => 'Setor de Infraestrutura',
),
19 => 'departmentnumber',
'uid' =>
array (
'count' => 1,
0 => 'guilherme_bangemann',
),
20 => 'uid',
'mail' =>
array (
'count' => 1,
0 => 'guilherme_bangemann@solis.com.br',
),
21 => 'mail',
'sambantpassword' =>
array (
'count' => 1,
0 => 'A7C1B218F8E637AA62F59D31F76DFBCD',
),
22 => 'sambantpassword',
'sambapwdlastset' =>
array (
'count' => 1,
0 => '1559650352',
),
23 => 'sambapwdlastset',
'shadowlastchange' =>
array (
'count' => 1,
0 => '18051',
),
24 => 'shadowlastchange',
'userpassword' =>
array (
'count' => 1,
0 => '{CRYPT}$1$wn6dubOY$obSU01DXY2wolpTXxXLEq1',
),
25 => 'userpassword',
'count' => 26,
'dn' => 'uid=guilherme_bangemann,ou=users,dc=solis,dc=coop,dc=br',
),
)
2019-09-17 17:50:12 guilherme-pc wiki: ldap_connect( $hostname = 'ldap://ldapslave.solis.com.br:389', $port = 389 );
2019-09-17 17:50:12 guilherme-pc wiki: # __METHOD__ returns Resource id #198
2019-09-17 17:50:12 guilherme-pc wiki: ldap_set_option( $linkID, $option = 17, $newval = 3 );
2019-09-17 17:50:12 guilherme-pc wiki: # returns 1
2019-09-17 17:50:12 guilherme-pc wiki: ldap_set_option( $linkID, $option = 8, $newval = 0 );
2019-09-17 17:50:12 guilherme-pc wiki: # returns 1
2019-09-17 17:50:12 guilherme-pc wiki: ldap_set_option( $linkID, $option = 2, $newval = 1 );
2019-09-17 17:50:12 guilherme-pc wiki: # returns 1
2019-09-17 17:50:12 guilherme-pc wiki: ldap_bind( $linkID, $bindRDN = 'uid=guilherme_bangemann,ou=users,dc=solis,dc=coop,dc=br', $bindPassword = 'XXXX' );
2019-09-17 17:50:12 guilherme-pc wiki: # returns 1
2019-09-17 17:50:12 guilherme-pc wiki: ldap_search( $linkID, $baseDN = 'dc=solis,dc=coop,dc=br', $filter = '(uid=guilherme_bangemann)', $attributes = [ '*', 'memberof' ], $attrsonly = , $sizelimit = , $timelimit = , $deref = );
2019-09-17 17:50:12 guilherme-pc wiki: # returns Resource id #214
2019-09-17 17:50:12 guilherme-pc wiki: ldap_get_entries( $linkID, $resultID );
2019-09-17 17:50:12 guilherme-pc wiki: # returns: array (
'count' => 1,
0 =>
array (
'objectclass' =>
array (
'count' => 6,
0 => 'sambaSamAccount',
1 => 'shadowAccount',
2 => 'posixAccount',
3 => 'inetOrgPerson',
4 => 'organizationalPerson',
5 => 'person',
),
0 => 'objectclass',
'sambadomainname' =>
array (
'count' => 1,
0 => 'SOLIS',
),
1 => 'sambadomainname',
'displayname' =>
array (
'count' => 1,
0 => 'Guilherme Keunecke Bangemann',
),
2 => 'displayname',
'sambahomedrive' =>
array (
'count' => 1,
0 => 'U:',
),
3 => 'sambahomedrive',
'sambakickofftime' =>
array (
'count' => 1,
0 => '1893463200',
),
4 => 'sambakickofftime',
'sambaprimarygroupsid' =>
array (
'count' => 1,
0 => 'S-1-5-21-2804338137-552302570-2244938293-513',
),
5 => 'sambaprimarygroupsid',
'sambaacctflags' =>
array (
'count' => 1,
0 => '[XU ]',
),
6 => 'sambaacctflags',
'sambasid' =>
array (
'count' => 1,
0 => 'S-1-5-21-2804338137-552302570-2244938293-21792',
),
7 => 'sambasid',
'shadowwarning' =>
array (
'count' => 1,
0 => '10',
),
8 => 'shadowwarning',
'shadowinactive' =>
array (
'count' => 1,
0 => '10',
),
9 => 'shadowinactive',
'shadowmin' =>
array (
'count' => 1,
0 => '1',
),
10 => 'shadowmin',
'shadowmax' =>
array (
'count' => 1,
0 => '365',
),
11 => 'shadowmax',
'homedirectory' =>
array (
'count' => 1,
0 => '/home/guilherme',
),
12 => 'homedirectory',
'loginshell' =>
array (
'count' => 1,
0 => '/bin/bash',
),
13 => 'loginshell',
'gidnumber' =>
array (
'count' => 1,
0 => '10001',
),
14 => 'gidnumber',
'cn' =>
array (
'count' => 1,
0 => 'Guilherme Keunecke Bangemann',
),
15 => 'cn',
'uidnumber' =>
array (
'count' => 1,
0 => '10396',
),
16 => 'uidnumber',
'sn' =>
array (
'count' => 1,
0 => 'Bangemann',
),
17 => 'sn',
'givenname' =>
array (
'count' => 1,
0 => 'Guilherme Keunecke',
),
18 => 'givenname',
'departmentnumber' =>
array (
'count' => 1,
0 => 'Setor de Infraestrutura',
),
19 => 'departmentnumber',
'uid' =>
array (
'count' => 1,
0 => 'guilherme_bangemann',
),
20 => 'uid',
'mail' =>
array (
'count' => 1,
0 => 'guilherme_bangemann@solis.com.br',
),
21 => 'mail',
'sambantpassword' =>
array (
'count' => 1,
0 => 'A7C1B218F8E637AA62F59D31F76DFBCD',
),
22 => 'sambantpassword',
'sambapwdlastset' =>
array (
'count' => 1,
0 => '1559650352',
),
23 => 'sambapwdlastset',
'shadowlastchange' =>
array (
'count' => 1,
0 => '18051',
),
24 => 'shadowlastchange',
'userpassword' =>
array (
'count' => 1,
0 => '{CRYPT}$1$wn6dubOY$obSU01DXY2wolpTXxXLEq1',
),
25 => 'userpassword',
'count' => 26,
'dn' => 'uid=guilherme_bangemann,ou=users,dc=solis,dc=coop,dc=br',
),
)
cat LDAPProvider.log
2019-09-17 17:50:01 guilherme-pc wiki: Setting LDAP_OPT_PROTOCOL_VERSION to 3
2019-09-17 17:50:01 guilherme-pc wiki: Setting LDAP_OPT_REFERRALS to 0
2019-09-17 17:50:01 guilherme-pc wiki: Setting LDAP_OPT_DEREF to 1
2019-09-17 17:50:02 guilherme-pc wiki: MediaWiki\Extension\LDAPProvider\Client::getSearchString: User DN is: 'solis\guilherme_bangemann'
2019-09-17 17:50:07 guilherme-pc wiki: Setting LDAP_OPT_PROTOCOL_VERSION to 3
2019-09-17 17:50:07 guilherme-pc wiki: Setting LDAP_OPT_REFERRALS to 0
2019-09-17 17:50:07 guilherme-pc wiki: Setting LDAP_OPT_DEREF to 1
2019-09-17 17:50:07 guilherme-pc wiki: Ran LDAP search for '(uid=guilherme_bangemann)' in 0.0060989856719971 seconds.
2019-09-17 17:50:12 guilherme-pc wiki: Setting LDAP_OPT_PROTOCOL_VERSION to 3
2019-09-17 17:50:12 guilherme-pc wiki: Setting LDAP_OPT_REFERRALS to 0
2019-09-17 17:50:12 guilherme-pc wiki: Setting LDAP_OPT_DEREF to 1
2019-09-17 17:50:12 guilherme-pc wiki: Ran LDAP search for '(uid=guilherme_bangemann)' in 0.0033810138702393 seconds.
cat PluggableAuth.log
2019-09-17 17:50:41 guilherme-pc wiki: In execute()
2019-09-17 17:50:41 guilherme-pc wiki: Getting PluggableAuth singleton
2019-09-17 17:50:41 guilherme-pc wiki: Class name: MediaWiki\Extension\LDAPAuthentication2\PluggableAuth
2019-09-17 17:50:41 guilherme-pc wiki: Authentication failure.
2019-09-17 17:50:41 guilherme-pc wiki: ERROR: Could not authenticate credentials against domain "solis"