Bypass domain name for IIS site (SharePoint)


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. Authentication
    Authentication
  4. 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

Edit Basic Authentication Settings
Edit Basic Authentication Settings

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