# CROSS REALM support for yaml role mapping file

**URL:** <https://discuss.elastic.co/t/cross-realm-support-for-yaml-role-mapping-file/108123>\
**Category:** Elasticsearch\
**Created:** [November 17, 2017, 12:16pm UTC](https://discuss.elastic.co/t/cross-realm-support-for-yaml-role-mapping-file/108123 "2017-11-17T12:16:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vcgadade](https://avatars.discourse-cdn.com/v4/letter/v/a587f6/32.png) [@vcgadade](https://discuss.elastic.co/u/vcgadade)\
**Post date:** [November 17, 2017, 12:16pm UTC](https://discuss.elastic.co/t/cross-realm-support-for-yaml-role-mapping-file/108123/1 "2017-11-17T12:16:45Z")

</div>

Is there provision to integrate CROSS REALM (Active Directory) in role mapping file. some users are accessing from one active directory server and some are from other.

Can you let me know the is there any option or only one active directory we can setup with the elastic search

---

<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:** [November 18, 2017, 5:35am UTC](https://discuss.elastic.co/t/cross-realm-support-for-yaml-role-mapping-file/108123/2 "2017-11-18T05:35:38Z")

</div>

I don't understand quite what you are after.

You can configure multiple AD realms, and point them at the same role mapping file, or different files if you wish.

---

<div class="post-metadata">

**Author:** ![vcgadade](https://avatars.discourse-cdn.com/v4/letter/v/a587f6/32.png) [@vcgadade](https://discuss.elastic.co/u/vcgadade)\
**Post date:** [November 18, 2017, 6:07am UTC](https://discuss.elastic.co/t/cross-realm-support-for-yaml-role-mapping-file/108123/3 "2017-11-18T06:07:33Z")

</div>

Thanks Tim, Yes.. want to intigrate multiple AD.  
Can you please provide sample config file.

Thanks

---

<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:** [December 16, 2017, 6:07am UTC](https://discuss.elastic.co/t/cross-realm-support-for-yaml-role-mapping-file/108123/4 "2017-12-16T06:07:51Z")

</div>

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