I'm using elasticsearch5.5.2 with java spring boot application.
I would firstly, add the default authentification, after, connect it to the ldap.
So, I added:
.put("xpack.security.user", "transport_client_user:changeme")
.put("client.transport.ignore_cluster_name", true)
.put("xpack.security.transport.ssl.enabled", "true")
.put("xpack.ssl.keystore.path", xxxx.pfx)
.put("xpack.ssl.keystore.password", xxxx)
.put("xpack.ssl.truststore.path", xxxx)
.put("xpack.ssl.truststore.password", xxxx.pfx)
.put("client.transport.sniff", true)
.put("transport.tcp.port", 9300)
.build();
I got the following error: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{wcxlZUAyTLW_uAoYXOMAYw}{localhost}{127.0.0.1:9200}]
I suppose that it's relative to the default user/password? (when I turn ssl.enable to false, it works).