[01:19:20] night all, I'm trying to configure the LDAP Stack on MediaWiki 1.39 for authentication on Active Directory and configure the group mapping. The authentication is working but the group mapping it's not. Anyone that already did that? [01:29:18] HAMZEH [08:32:53] Good Day [08:32:53] I was wondering if somebody can assist me.  I am working on a project for my company with Mediawiki and we are using OAUTH.  I am new to Mediawiki and I was wondering if there was a way to enforce the 2fA and to let it show up once users logs in for the first time they are automatically forced presented the QR code to enable it and after enabling [08:32:54] it the user is unable to disable it, except for the sysop.  I would truly appreciate any advice on this. [08:49:39] Which MediaWiki version? Do you use https://www.mediawiki.org/wiki/Extension:OATHAuth ? What's the setup? [08:50:04] Argh, I meant https://www.mediawiki.org/wiki/Extension:OAuth [09:02:26] https://www.mediawiki.org/wiki/Extension:OATHAuth#Configuration [09:02:37] $wgOATHRequiredForGroups [09:02:39] >Sets a list of user groups that are required to have two-factor authentication enabled. Use 'user' if you want all logged in users to be required to have two-factor authentication enabled. [09:11:56] I am using 0.5.0 and Mediawiki version 1.39.1 [09:14:30] Reedy I need to force it as the company wants to store personal data on it for the employees to access, but they want it to be forced presented automatically even when creating new users and the company wants to remove access to disable it. [09:15:26] andre The setup currently is on a the local server running Ubuntu 22.04 [09:23:28] And what does it do if you apply that config? [09:39:18] Reedy I get a error upon refresh [09:39:29] And the error is? [09:45:28] Reedy  error is as follows: [09:45:29] MediaWiki internal error. [09:45:29] Original exception: [392b5c9dcaace91c373e3e5c] /wiki/index.php/Main_Page TypeError: array_intersect(): Argument #2 must be of type array, bool given [09:45:30] Backtrace: [09:45:30] from /var/www/html/wiki/extensions/OATHAuth/src/Hook/HookHandler.php(180) [09:45:31] #0 /var/www/html/wiki/extensions/OATHAuth/src/Hook/HookHandler.php(180): array_intersect() [09:45:31] #1 /var/www/html/wiki/extensions/OATHAuth/src/Hook/HookHandler.php(201): MediaWiki\Extension\OATHAuth\Hook\HookHandler->getDisabledGroups() [09:45:32] #2 /var/www/html/wiki/includes/HookContainer/HookContainer.php(160): MediaWiki\Extension\OATHAuth\Hook\HookHandler->onUserEffectiveGroups() [09:45:32] #3 /var/www/html/wiki/includes/HookContainer/HookRunner.php(4142): MediaWiki\HookContainer\HookContainer->run() [09:45:33] #4 /var/www/html/wiki/includes/user/UserGroupManager.php(346): MediaWiki\HookContainer\HookRunner->onUserEffectiveGroups() [09:45:33] #5 /var/www/html/wiki/includes/Permissions/PermissionManager.php(1481): MediaWiki\User\UserGroupManager->getUserEffectiveGroups() [09:45:34] #6 /var/www/html/wiki/includes/Permissions/PermissionManager.php(1432): MediaWiki\Permissions\PermissionManager->getUserPermissions() [09:45:34] #7 /var/www/html/wiki/includes/Permissions/PermissionManager.php(1006): MediaWiki\Permissions\PermissionManager->userHasRight() [09:45:35] #8 /var/www/html/wiki/includes/Permissions/PermissionManager.php(538): MediaWiki\Permissions\PermissionManager->checkQuickPermissions() [09:45:35] #9 /var/www/html/wiki/includes/Permissions/PermissionManager.php(299): MediaWiki\Permissions\PermissionManager->getPermissionErrorsInternal() [09:45:36] #10 /var/www/html/wiki/includes/Permissions/UserAuthority.php(285): MediaWiki\Permissions\PermissionManager->userCan() [09:45:36] #11 /var/www/html/wiki/includes/Permissions/UserAuthority.php(152): MediaWiki\Permissions\UserAuthority->internalCan() [09:45:37] #12 /var/www/html/wiki/includes/user/User.php(3471): MediaWiki\Permissions\UserAuthority->probablyCan() [09:46:14] Guest27: please don't paste large amounts of text into the channel - please use a pastebin next time [09:46:51] @swt will do, thanks [09:47:23] What did you add to your config? [09:47:57] https://github.com/wikimedia/mediawiki-extensions-OATHAuth/blob/REL1_39/src/Hook/HookHandler.php#L180 would suggest you've set $wgOATHRequiredForGroups incorrectly [10:05:17] Reedy I had a look and it seems I did configure it wrongly.  Thanks a lot for the help