Elasticsearch: 7.8
I'm trying to enable X-Pack Active-Directory Realm authentication along with Native user authentication feature but after the .yml config update/change I'm unable to start the elasticsearch service:
Below is the error:
systemd-entrypoint: Caused by: mapping values are not allowed here
systemd-entrypoint: in 'reader', line 49, column 18:
systemd-entrypoint: order: 0
systemd-entrypoint: ^
systemd-entrypoint: at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:870)
systemd: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Below is my X-Pack Config:
xpack:
security:
authc:
realms:
active_directory:
corp_ad:
order: 0
domain_name: <Domain-Name>
follow_referrals: false
url: ldaps://<AD-Hostname>:636
bind_dn: <username>
bind_password: <password>
ssl:
certificate_authorities: [ "/etc/elasticsearch/certs/ca-cert.pem" ]
native:
native1
order: 0
Referred this link for configuration: Native User Authentication
Can anyone please review & suggest