Hi All,
May I know why I can't connect to Elasticsearch using this setup.
xpack:
security:
authc:
realms:
active_directory:
type: active_directory
order: 0
domain_name: domainexample.com
unmapped_groups_as_roles: true
Error being thrown.
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "error attempting to authenticate request",
"header" : {
"WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
}
}
],
"type" : "security_exception",
"reason" : "error attempting to authenticate request",
"caused_by" : {
"type" : "l_d_a_p_exception",
"reason" : "An error occurred while attempting to connect to server domainexample.com:389: java.io.IOException: LDAPException(resultCode=91 (connect error), errorMessage='An error occurred while attempting to establish a connection to server domainexample.com/127.0.0.1:389: ConnectException(message='Connection refused: connect', trace='waitForConnect(null:native) / socketConnect(null:unknown) / doConnect(null:unknown) / connectToAddress(null:unknown) / connect(null:unknown) / connect(null:unknown) / connect(null:unknown) / connect(null:unknown) / run(ConnectThread.java:146)', revision=24201)')",
"caused_by" : {
"type" : "i_o_exception",
"reason" : "LDAPException(resultCode=91 (connect error), errorMessage='An error occurred while attempting to establish a connection to server domainexample.com/127.0.0.1:389: ConnectException(message='Connection refused: connect', trace='waitForConnect(null:native) / socketConnect(null:unknown) / doConnect(null:unknown) / connectToAddress(null:unknown) / connect(null:unknown) / connect(null:unknown) / connect(null:unknown) / connect(null:unknown) / run(ConnectThread.java:146)', revision=24201)')",
"caused_by" : {
"type" : "l_d_a_p_exception",
"reason" : "An error occurred while attempting to establish a connection to server domainexample.com/127.0.0.1:389: ConnectException(message='Connection refused: connect', trace='waitForConnect(null:native) / socketConnect(null:unknown) / doConnect(null:unknown) / connectToAddress(null:unknown) / connect(null:unknown) / connect(null:unknown) / connect(null:unknown) / connect(null:unknown) / run(ConnectThread.java:146)', revision=24201)",
"caused_by" : {
"type" : "connect_exception",
"reason" : "Connection refused: connect"
}
}
}
},
"header" : {
"WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
}
},
"status" : 401
}
Thanks!