Fix ssl configuration in openldap test
This commit fixes the ssl configuration in the openldap tests to not
use the deprecated global configuration and instead properly define the
realm settings so that the session factory can retrieve the correct
ssl configuration.
See
@@ -56,7 +56,8 @@ public class OpenLdapUserSearchSessionFactoryTests extends ESTestCase {
*/
globalSettings = Settings.builder()
.put("path.home", createTempDir())
- .put("xpack.ssl.certificate_authorities", caPath)
+ .put("xpack.security.authc.realms.oldap-test.type", "ldap")
+ .put("xpack.security.authc.realms.oldap-test.ssl.certificate_authorities", caPath)
.build();
threadPool = new TestThreadPool("LdapUserSearchSessionFactoryTests");
}
