The following exception occurred
"MediaWiki\Config\ConfigException: MediaWiki\Config\GlobalVarConfig::get: undefined option: 'DomainNames'"
when I add them in LocalSettings.php like that:
wfLoadExtension( 'LdapAuth' );
$wgLdapAuthDomainNames = 'MY_DOMAIN_HERE';
$wgLdapAuthServers = 'SERVER1,SERVER2,SERVER3';
$wgLdapAuthBindDN = 'MY_BIND_DN_HERE';
$wgLdapAuthBindPass = 'PASSWORD_FOR_BIND_DN';
My versions are:
MediaWiki 1.41.1
PHP 8.1.2-1ubuntu2.18 (apache2handler)