Code2care : TechZone Apps & Tutorials

Bypass domain name for IIS site

Does your Organization have a single Domain and still requires users to pass-in the Domain name in the credentials to login ? Well, there is a way to bypass it.
Ever came across a requirement where your Organization has a single Domain and still the users are required to pass-in the Domain name in the credentials to login (Domain\userid)?

There is a way to bypass this through IIS (but only if you have a single domain)

We will enable Basic Authentication on our site which is a Challenge-Based authentication mode and will prompt the user to pass their credentials in order to login

1) Navigate to your site from IIS

2) Click on 'Authentication' under the IIS heading
3) Right click Basic Authentication --> Enable (Important - This will send the credentials in plain text, so it is recommended to use SSL certificate if using this kind of authentication and have https site)

You can also have different combinations of authentication (say Windows + Forms) 4) Right click Basic Authentication --> Edit --> Enter the Default domain - This domain will be passed by default and user can pass just the userid

Now if you hit the URL .. you should be able to get in by just passing the User Id and without the domain name.


Popular tags
x 175
x 29
x 20
x 14
x 14
x 14
x 13
x 11

1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy

Code2care © 2012-17