Elasticsearch Active-Directory: Native User Authentication Failure

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

I think you missed a colon after native1.

Actually that was a typo while pasting and editing in the chat/thread. Actual config file has the colon after native1 :upside_down_face:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.