# Auto-login via AD domain credentials

**URL:** <https://forums.rocket.chat/t/auto-login-via-ad-domain-credentials/1399>\
**Category:** Community Support\
**Created:** [June 25, 2018, 11:39am UTC](https://forums.rocket.chat/t/auto-login-via-ad-domain-credentials/1399 "2018-06-25T11:39:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dexter](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dexter](https://forums.rocket.chat/u/dexter)\
**Post date:** [June 25, 2018, 11:39am UTC](https://forums.rocket.chat/t/auto-login-via-ad-domain-credentials/1399/1 "2018-06-25T11:39:23Z")

</div>

Hello,

Is there any way to configure auto-login via AD domain credentials on windows machines?

Another questions is about file configuration of rocket-chat desktop. In the first access to the app I need to configure the server URL. In what file this data saved?

---

<div class="post-metadata">

**Author:** ![JSzaszvari](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/jszaszvari/32/86_2.png) [@JSzaszvari](https://forums.rocket.chat/u/JSzaszvari)\
**Post date:** [June 25, 2018, 1:16pm UTC](https://forums.rocket.chat/t/auto-login-via-ad-domain-credentials/1399/2 "2018-06-25T13:16:28Z")

</div>

Please see the ‘Default Servers’ section of the readme here on how to preconfigure the server that it opens with when first launched

> **[RocketChat/Rocket.Chat.Electron](https://github.com/RocketChat/Rocket.Chat.Electron)**
>
> Official OSX, Windows, and Linux Desktop Clients for Rocket.Chat - RocketChat/Rocket.Chat.Electron

For auto login you’ll need to look at electron support for this. I found this here : [https://github.com/atom/electron/blob/master/docs/api/app.md#appallowntlmcredentialsforalldomainsallow](https://github.com/atom/electron/blob/master/docs/api/app.md#appallowntlmcredentialsforalldomainsallow)

So it is possible but apparently does not work too well and it’s something you’d need to implement yourself.

---

<div class="post-metadata">

**Author:** ![dexter](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dexter](https://forums.rocket.chat/u/dexter)\
**Post date:** [June 25, 2018, 1:52pm UTC](https://forums.rocket.chat/t/auto-login-via-ad-domain-credentials/1399/3 "2018-06-25T13:52:54Z")

</div>

Thanks for the answer @JSzaszvari!!!

For other users that have the same doubt, the servers.json file should be in the folder :\Program Files\Rocket.Chat+\resources

> [@JSzaszvari](#):
>
> So it is possible but apparently does not work too well and it’s something you’d need to implement yourself.

Any tips on how I can start implementing this?

---

<div class="post-metadata">

**Author:** ![LittleNo](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@LittleNo](https://forums.rocket.chat/u/LittleNo)\
**Post date:** [June 6, 2019, 4:10pm UTC](https://forums.rocket.chat/t/auto-login-via-ad-domain-credentials/1399/4 "2019-06-06T16:10:15Z")

</div>

I would be interested too in instructions or any further information how to get this done
