Iis – Can iis authenticate against two separate AD without trust

authenticationiis

First of all, I have poor experience on IIS, I'm more a linux/apache/nginx guy.

Now I have a proprietary app running on an old IIS (w2003, I know is out of support) which is currently authenticating against domainA using integrated windows authentication.

I need to make it authenticate against a completely separate w2003 AD, too. I can route between the two networks. This works all on internal networks.

The app currently maps each domainA user to its personal account & details, the same should happen for domainB users. Obviously I can't change the app in any way.

I guess I could set a trust between domainA and domainB, but if possible it would be best to avoid this. Long story.

I wonder if there could be other methods, eg: make IIS authenticate users also against a LDAP, and make domainB AD act as that LDAP. Or else. Anything that works could be interesting.

Best Answer

Without a trust, you're almost definitely out of luck unless the app explicitly supports adding a second domain identity source (that would need to involve providing credentials for the second domain).

Even with a trust, you might still be out of luck depending on how well the app was written and whether it made any assumptions about only ever existing in a single-domain forest. A lot of app authors are just short sighted when it comes to that sort of thing.

If it magically does work with a trust, you might still ultimately run into edge cases where things break randomly. Like what happens if two users from the different domains happen to have the same username? They might get mapped to the same "account" within the app. It might just throw an error.

When you start talking about LDAP and other authentication protocols, you start to blur the line between what is IIS's responsibility and what is the application's responsibility. For LDAP specifically, the web server doesn't care anything about that. Apps that use LDAP authentication typically configure the web server for Basic authentication (hopefully over SSL) and all of the LDAP connectivity is handled within the application logic.

I hate to be a downer. But with a proprietary app and a legacy environment like this, your outlook is not so good.

Related Topic