Error detail:
java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.xpack.security.Security]
Likely root cause: java.lang.IllegalArgumentException: Incorrect realm settings found. Realm settings have been changed to include the type as part of the setting key.
For example 'xpack.security.authc.realms.file.my_file.order'
Found invalid config: xpack.security.authc.realms.ldap1.type, xpack.security.authc.realms.ldap, xpack.security.authc.realms.ldap1.bind_password, xpack.security.authc.realms.ldap1.order, xpack.security.authc.realms.ldap1.bind_dn, xpack.security.authc.realms.ldap1.url, xpack.security.authc.realms.ldap1.unmapped_groups_as_roles
Please see the breaking changes documentation.
There are some invalid settings in your configuration. For example, type is not a valid setting. You may want to check an example of LDAP configuration in our documentation.
I have given valid setting as per the documentation,
xpack.security.http.ssl.verification_mode: certificate
xpack.security.authc.token.enabled: true
xpack.security.authc.realms:
ldap.ldap1:
order: 2
url: "ldaps://SERVER_IP:636"
user_search:
base_dn: "dc=example,dc=com"
attribute: cn
group_search:
base_dn: "ou=groups,dc=example,dc=com"
ssl:
verification_mode: certificate
truststore:
path: "/app/config/truststore/keystore.ks"
password: "PASSWORD"
files:
role_mapping: "/app/config/mappings/role-mappings.yml"
unmapped_groups_as_roles: false
I see below error,
java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.xpack.security.Security]
Likely root cause: java.lang.IllegalArgumentException: Incorrect realm settings found. Realm settings have been changed to include the type as part of the setting key.
For example 'xpack.security.authc.realms.file.my_file.order'
Found invalid config: xpack.security.authc.realms.ldap
Please see the breaking changes documentation.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.