# Disable auth0 login box during Active Directory connection

**URL:** <https://community.auth0.com/t/disable-auth0-login-box-during-active-directory-connection/86651>\
**Category:** Get Help\
**Tags:** active-directory, redirect\
**Created:** [July 8, 2022, 12:23pm UTC](https://community.auth0.com/t/disable-auth0-login-box-during-active-directory-connection/86651 "2022-07-08T12:23:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mab/32/38495_2.png) [@mab](https://community.auth0.com/u/mab)\
**Post date:** [July 8, 2022, 12:23pm UTC](https://community.auth0.com/t/disable-auth0-login-box-during-active-directory-connection/86651/1 "2022-07-08T12:23:20Z")

</div>

Hi,  
I have got a connection with the active directory. And I set up that I use only this connection. If you go to the web you will see the auth0 login box with the button to connect to AD. No textbox with login and password. I would like to disable this auth0 login box in this case. I try to uncheck the “Display connection as a button” but without this, I get an error:

```auto
  "title": "Status Code: 500; InternalServerError",
  "status": 500,
  "detail": "An unhandled exception has occurred: An error was encountered while handling the remote login."

```

---

<div class="post-metadata">

**Author:** ![mab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mab/32/38495_2.png) [@mab](https://community.auth0.com/u/mab)\
**Post date:** [July 12, 2022, 6:55am UTC](https://community.auth0.com/t/disable-auth0-login-box-during-active-directory-connection/86651/2 "2022-07-12T06:55:05Z")

</div>

Hi team, should I clarify something more? I really appreciate your feedback 🙂

---

<div class="post-metadata">

**Author:** ![mab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mab/32/38495_2.png) [@mab](https://community.auth0.com/u/mab)\
**Post date:** [July 13, 2022, 12:37pm UTC](https://community.auth0.com/t/disable-auth0-login-box-during-active-directory-connection/86651/3 "2022-07-13T12:37:38Z")

</div>

I resolved this issue. Authenticate profile should be set up for “Identifier First”. Then set up the “Home Realm Discovery” and unchecked the connection button.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 4, 2022, 2:39pm UTC](https://community.auth0.com/t/disable-auth0-login-box-during-active-directory-connection/86651/4 "2022-11-04T14:39:29Z")

</div>

Thank you for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 4, 2022, 2:39pm UTC](https://community.auth0.com/t/disable-auth0-login-box-during-active-directory-connection/86651/5 "2022-11-04T14:39:32Z")

</div>


