Dear All,
Configuring AD realm and having a problem of unable to load security plugin in 7.3 version. I do not want to load any SSL certificates as of now and neither want to enable SSL. Initially want to test a plain AD authentication and move on step by step. Need your help, it says some '.' is missing
xpack.http.proxy.host: 'my_proxy_IP'
xpack.http.proxy.port: 3128
xpack.watcher.enabled: true
xpack.security.enabled: true
xpack.security.audit.enabled: true
xpack.security.authc.realms.enabled: true
xpack.security.authc.realms.active_directory.example:
order: 0
domain_name: example.com
url: ldap://adserver.example.com:389
bind_dn: CN=esadmin1,CN=Users,DC=example,DC=com
bind_password: admin_password
user_search.base_dn: dc=example,dc=com
group_search.base_dn: dc=example,dc=com
files.role_mapping: $ES_PATH_CONF/role_mapping.yml
[root@eshostname elasticsearch]# /usr/share/elasticsearch/bin/elasticsearch-plugin list -v
Plugins directory: /usr/share/elasticsearch/plugins
[root@eshostname elasticsearch]# ll
Error below :
[2019-09-11T23:55:13,718][ERROR][o.e.b.Bootstrap ] [eshostname] Exception
java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.xpack.core.XPackPlugin]
at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:614) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.plugins.PluginsService.loadBundle(PluginsService.java:556) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:471) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:163) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.node.Node.<init>(Node.java:314) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.node.Node.<init>(Node.java:258) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:221) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:221) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349) [elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-7.3.1.jar:7.3.1]
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) [elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.3.1.jar:7.3.1]
Caused by: java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:481) ~[?:?]
at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:605) ~[elasticsearch-7.3.1.jar:7.3.1]
... 15 more
Caused by: org.elasticsearch.common.settings.SettingsException: Failed to get setting group for [xpack.security.authc.realms.] setting prefix and setting [xpack.security.authc.realms.enabled] because of a missing '.'
at org.elasticsearch.common.settings.Settings.getGroupsInternal(Settings.java:451) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.common.settings.Settings.getGroups(Settings.java:439) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.common.settings.Settings.getGroups(Settings.java:426) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.xpack.core.ssl.SSLService.getRealmsSSLSettings(SSLService.java:646) ~[?:?]
at org.elasticsearch.xpack.core.ssl.SSLService.loadSSLConfigurations(SSLService.java:420) ~[?:?]
at org.elasticsearch.xpack.core.ssl.SSLService.<init>(SSLService.java:119) ~[?:?]
at org.elasticsearch.xpack.core.XPackPlugin.<init>(XPackPlugin.java:146) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
[2019-09-11T23:55:13,718][ERROR][o.e.b.Bootstrap ] [eshostname] Exception
java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.xpack.core.XPackPlugin]
at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:614) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.plugins.PluginsService.loadBundle(PluginsService.java:556) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:471) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:163) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.node.Node.<init>(Node.java:314) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.node.Node.<init>(Node.java:258) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:221) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:221) ~[elasticsearch-7.3.1.jar:7.3.1] at java.lang.reflect.Constructor.newInstance(Constructor.java:481) ~[?:?]