mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 05:28:34 +00:00
The SessionFactory construction was calling the `ldapServers` method in the constructor, which was fine for all of the session factories except for the ActiveDirectorySessionFactory. The ActiveDirectorySessionFactory overrides the ldapServers method and use class variables that are initialized in its constructor so the value was always null. This change moves setup to an init method for objects that depend on variables set during construction. Closes elastic/elasticsearch#2011 Original commit: elastic/x-pack-elasticsearch@07c15ce171