Is this configuration and error message exactly as they were in your testing?
If so, it looks like you are trying to connect to an AD server at domainexample.com, and you have mapped that domain name to your local machine (from the error message domainexample.com/127.0.0.1), but you aren't actually running ActiveDirectory on the localhost.
So what I've supplied in the elasticsearch.yml is correct. But as what you've mentioned above, I was trying to connect to an AD server but I haven't mapped it to my local machine but to the IP of the server. Also, I am getting the error since I want to access using my AD account but I am not able to.
I can only work from the information that you have provided.
The error message you posted very clearly has the server as 127.0.0.1 which is the local machine that elasticsearch is running on.
If that is the error message you are seeing, then it indicates that your DNS resolver thinks "domainexample.com" is on the local machine. And that's not a elasticsearch issue.
If that's not the real error message, then you're going to have to work out whether the IP address that is in your message is in fact the IP of your Active Directory server. Because as far as Elasticsearch can tell, there is nothing listening on port 389 of that server. It could be that you have the wrong domain name. It could be that you have a DNS issue. It could be that you have a firewall or other network device preventing access. All of those are issues that you will have to check for yourself.
IP provided above is just an example for the discussion but what I've supplied is the correct IP for the AD Server. If that is the case, we need to check the firewall or ports used since I have supplied the correct domain_name for the server. Thanks for the help and FYI. we are new to this technology and still exploring its functionalities. Thanks!
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.