And please note that you need a license in 6.x for using custom authentication backends when you want to load them dynamically.
You can still use them free of charge but this requires that you build the search guard plugin on your own. Make sure you set
"searchguard.enterprise_modules_enabled: true" (60 day trial) so that your custom modules are loaded.