# Client Login Failover when LDAP Not Available

**URL:** <https://forum.inductiveautomation.com/t/client-login-failover-when-ldap-not-available/21204>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [December 3, 2018, 6:42pm UTC](https://forum.inductiveautomation.com/t/client-login-failover-when-ldap-not-available/21204 "2018-12-03T18:42:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahiero](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@Ahiero](https://forum.inductiveautomation.com/u/Ahiero)\
**Post date:** [December 3, 2018, 6:42pm UTC](https://forum.inductiveautomation.com/t/client-login-failover-when-ldap-not-available/21204/1 "2018-12-03T18:42:19Z")

</div>

I am trying to figure out a way to handle the following problem:

1. The master server goes down along with the AD server (assume it is on the same box).
2. The backup server assumes control, and the clients are transferred to the backup.
3. The client logins to the backup server fail because the AD LDAP server is unavailable.

I’d like to provide read-only access for viewing when on the backup server, which I think I can do with an ‘Internal’ user that I setup on the Gateway with limited access. How do I switch from SSO to a hard-coded username for the project ONLY when on the backup server?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 3, 2018, 6:46pm UTC](https://forum.inductiveautomation.com/t/client-login-failover-when-ldap-not-available/21204/2 "2018-12-03T18:46:38Z")

</div>

A ‘Hard’ Failover Mode ([https://docs.inductiveautomation.com/display/DOC79/User+Sources#UserSources-MainProperties](https://docs.inductiveautomation.com/display/DOC79/User+Sources#UserSources-MainProperties)) on the AD user source will automatically pass through authentication to the fallback internal user source if the AD server is unavailable.

---

<div class="post-metadata">

**Author:** ![ethomason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ethomason/32/43338_2.png) [@ethomason](https://forum.inductiveautomation.com/u/ethomason)\
**Post date:** [December 3, 2018, 6:47pm UTC](https://forum.inductiveautomation.com/t/client-login-failover-when-ldap-not-available/21204/3 "2018-12-03T18:47:49Z")

</div>

I would consider not having AD on the same server. You could also look into local client fallback to create a read only emergency project.

---

<div class="post-metadata">

**Author:** ![Ahiero](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@Ahiero](https://forum.inductiveautomation.com/u/Ahiero)\
**Post date:** [December 3, 2018, 6:49pm UTC](https://forum.inductiveautomation.com/t/client-login-failover-when-ldap-not-available/21204/4 "2018-12-03T18:49:09Z")

</div>

How do I change the credentials in a hard failover situation?

---

<div class="post-metadata">

**Author:** ![Ahiero](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@Ahiero](https://forum.inductiveautomation.com/u/Ahiero)\
**Post date:** [December 3, 2018, 6:50pm UTC](https://forum.inductiveautomation.com/t/client-login-failover-when-ldap-not-available/21204/5 "2018-12-03T18:50:51Z")

</div>

They are not actually on the same box. I simplified the description for the question. Both the Master and the AD LDAP become unavailable at the same time is still accurate.

---

<div class="post-metadata">

**Author:** ![Ahiero](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@Ahiero](https://forum.inductiveautomation.com/u/Ahiero)\
**Post date:** [December 3, 2018, 9:09pm UTC](https://forum.inductiveautomation.com/t/client-login-failover-when-ldap-not-available/21204/6 "2018-12-03T21:09:00Z")

</div>

@paul-griffith: I read the fallback source section.

1. I would have to replicate the AD users in the Internal user source if it is only going to pass AD credentials? Or can I programmatically change the credentials that are passed? Changing the credentials being passed in a script doesn’t work if the client isn’t already open when switching to the backup server.
2. I looked at the Fallback Cache section which looked promising until I read _A Fallback Cache User Source must exist on the Fallback Gateway_. I don’t have multiple gateways configured exactly as we are using the redundant server architecture with the backup on the factory side of the firewall. The Master is the only gateway active during normal operation, and the backup server becomes the only gateway during failover. Is there a way to make this work for us?
