# Security realm settings structure changed

**URL:** <https://discuss.elastic.co/t/security-realm-settings-structure-changed/189702>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [July 10, 2019, 9:15am UTC](https://discuss.elastic.co/t/security-realm-settings-structure-changed/189702 "2019-07-10T09:15:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapnali](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@swapnali](https://discuss.elastic.co/u/swapnali)\
**Post date:** [July 10, 2019, 9:15am UTC](https://discuss.elastic.co/t/security-realm-settings-structure-changed/189702/1 "2019-07-10T09:15:03Z")

</div>

Hi

I am trying to update my elasticsearch from 6.7.1 to 7.0 in assistant of 7.0 suggest below changes

**Security realm settings structure changed**  
these settings must be updated to the new format while the node is offline during the upgrade to 7.0 (nodes impacted: [eltest1, eltest3, eltest2])

so i changed my elasticsearch.yml  
--------------------------------------------BEFORE-------------------------------------------------  
#xpack:  
# security:  
# authc:  
# realms:  
# active\_directory:  
# type: active\_directory  
# order: 0  
# follow\_referrals: false  
# domain\_name: [nseroot.com](http://nseroot.com)  
# url: ldaps://ROOTDC01.NSEROOT.COM:636, ldaps://ROOTDC02.NSEROOT.COM:636  
# ssl:  
# certificate\_authorities: ["/etc/elasticsearch/ELKCERTS/ldapcerts/Certs/ca2.pem", "/etc/elasticsearch/ELKCERTS/ldapcerts/Certs/ca1.pem"]  
# verification\_mode: certificate  
# load\_balance:  
# type: "round\_robin"

--------------------------------------------AFTER-------------------------------------------------  
xpack:  
security:  
authc:  
realms:  
active\_directory.active\_directory:  
order: 0  
follow\_referrals: false  
domain\_name: [nseroot.com](http://nseroot.com)  
url: ldaps://ROOTDC01.NSEROOT.COM:636, ldaps://ROOTDC02.NSEROOT.COM:636  
ssl:  
certificate\_authorities: ["/etc/elasticsearch/ELKCERTS/ldapcerts/Certs/ca2.pem", "/etc/elasticsearch/ELKCERTS/ldapcerts/Certs/ca1.pem"]  
verification\_mode: certificate  
load\_balance:  
type: "round\_robin"

* * *

i am getting below error in my log

**java.lang.IllegalArgumentException: missing realm type [xpack.security.authc.realms.active\_directory.type] for realm**

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 11, 2019, 1:53am UTC](https://discuss.elastic.co/t/security-realm-settings-structure-changed/189702/2 "2019-07-11T01:53:47Z")

</div>

> [@swapnali](#):
>
> these settings must be updated to the new format **while the node is offline during the upgrade** to 7.0

You must make these changes while performing the upgrade to 7.0  
The format is not compatible between 6.7 and 7.0 - once you change it to the new format, it will no longer work on 6.7 node.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 8, 2019, 1:53am UTC](https://discuss.elastic.co/t/security-realm-settings-structure-changed/189702/3 "2019-08-08T01:53:48Z")

</div>

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