# Help troubleshooting Active Directory "Unauthorized" error in Rancher Server

**URL:** <https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328>\
**Category:** Rancher 1.x\
**Created:** [July 6, 2016, 12:25pm UTC](https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328 "2016-07-06T12:25:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryuzaki](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@Ryuzaki](https://forums.suse.com/u/Ryuzaki)\
**Post date:** [July 6, 2016, 12:25pm UTC](https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328/1 "2016-07-06T12:25:23Z")

</div>

Hey

I’m trying to set up Active Directory access control on my Rancher Server. I’ve entered all the details and all are correct to my knowledge. However, when I try to authorize my AD account all I get is the message “Unauthorized” and nothing else.

Obviously I’ve entered something wrong but I can’t see how to troubleshoot \ debug this. Weirdly nothing is thrown in the server container’s logs (viewing via the docker lgos command.

What’s the best way to get more info about the error?

Many Thanks,  
R.

---

<div class="post-metadata">

**Author:** ![kvaes](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kvaes/32/972_2.png) [@kvaes](https://forums.suse.com/u/kvaes)\
**Post date:** [July 6, 2016, 8:50pm UTC](https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328/2 "2016-07-06T20:50:04Z")

</div>

Does this help?

> **[Integrating Azure Active Directory with Rancher](https://kvaes.wordpress.com/2016/07/02/integrating-azure-active-directory-with-rancher/)**
>
> Introduction Today we’ll be doing a post on how to integrate “Azure Active Directory” with my favorite docker orchestration tool “Rancher”. A few months back I issued …

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [July 6, 2016, 9:43pm UTC](https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328/3 "2016-07-06T21:43:14Z")

</div>

@Ryuzaki probably means actual Active Directory, not Azure “let’s-make-an-identity-web-service-that-has-nothing-to-do-with-LDAP-and-call-it-Active-Directory-anyway-just-to-confuse-everyone”.

It is generally intentional that you don’t get any info back from an identity provider about _why_ authenticating didn’t work. There are several steps involved in enabling Rancher access control though and we could be more helpful in telling you which part failed…

What is likely happening is the host/port/protocol are correct (or you would get a different message about communicating with LDAP), but the service account user/pass or the test user/pass at the bottom are wrong. First guess would be that there is an issue where the “default login domain” isn’t used for the service account, so you have to specify it, i.e. “Default Login Domain: MYCOMPANY”, “Service Account Username: MYCOMANY\someaccount”.

---

<div class="post-metadata">

**Author:** ![Ryuzaki](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@Ryuzaki](https://forums.suse.com/u/Ryuzaki)\
**Post date:** [July 8, 2016, 9:03am UTC](https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328/4 "2016-07-08T09:03:59Z")

</div>

Thanks for the reply Vincent. Indeed this is a local Active Directory and not Azure.

I’ve played about a bit more and I’m sadly not getting any further. The details work on other systems but without some logging I’m flying blind. I appreciate that this area is sensitive though logging wise.

---

<div class="post-metadata">

**Author:** ![matthieudolci](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/matthieudolci/32/2145_2.png) [@matthieudolci](https://forums.suse.com/u/matthieudolci)\
**Post date:** [February 10, 2017, 7:34am UTC](https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328/5 "2017-02-10T07:34:58Z")

</div>

I am having the same issue and tried what @vincent was suggesting but still nothing.

@Ryuzaki did you ever made it work?

Thanks

---

<div class="post-metadata">

**Author:** ![xinity](https://avatars.discourse-cdn.com/v4/letter/x/7cd45c/32.png) [@xinity](https://forums.suse.com/u/xinity)\
**Post date:** [March 28, 2017, 8:02am UTC](https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328/6 "2017-03-28T08:02:37Z")

</div>

same here 🙁

tested with latest rancher version , but can’t find any way to make it work

PS: the configuration tested works perfectly in other tools like portus for example

Any clues perhaps ?

---

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://forums.suse.com/u/Hugo)\
**Post date:** [June 28, 2017, 1:05pm UTC](https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328/7 "2017-06-28T13:05:51Z")

</div>

Hi,

I finally solve this issue by setting up :  
Default Domain: empty

login of the user need to be like :  
DOMAIN\login

Hope this help.

---

<div class="post-metadata">

**Author:** ![abienkowski](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/abienkowski/32/5642_2.png) [@abienkowski](https://forums.suse.com/u/abienkowski)\
**Post date:** [July 13, 2017, 1:35pm UTC](https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328/8 "2017-07-13T13:35:17Z")

</div>

The proposed solution does solve the non-TLS configuration problem.

I’m having issue with TLS configuration and I did follow the steps provided in the link bellow.

I’ve also successfully configured gitlab to use the same AD.

> **[rancher/rancher](https://github.com/rancher/rancher/wiki/LDAP-TLS-Configuration)**
>
> rancher - Complete container management platform

---

<div class="post-metadata">

**Author:** ![shawrk](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shawrk](https://forums.suse.com/u/shawrk)\
**Post date:** [May 7, 2018, 8:17pm UTC](https://forums.suse.com/t/help-troubleshooting-active-directory-unauthorized-error-in-rancher-server/3328/10 "2018-05-07T20:17:31Z")

</div>

Hello,

I am trying to setup AD using a non-standard port, it does the initial validation of a test account but then when the information is saved the port is switched back to the standard “389” port vs the specified value and future authentications fail.  
I am using the GA v.2.0.0 (rancher/rancher) release.

Is there a config file I can exec into the container and change so it pics up the correct default value or other work around?

Posting under this thread a the error message is the same.  
Thanks.
