I spun up an IIS server on my domain and verified I could go to http://mycomputername and it displays the default IIS page.
I then enabled Windows Authentication and disabled anonymous authentication and the web.config file now looks like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<security>
<authentication>
<anonymousAuthentication enabled="false" />
<windowsAuthentication enabled="true" />
</authentication>
</security>
</system.webServer>
</configuration>
Now when I go to http://mycomputername I get prompted for a username and password (this is expected).
I type in "domain1\username" and the password and I get a 401 Unauthorized.
I type in just "username" and the password and I get a 200 OK.
I also have a trust from "domain1" to "domain2" and "domain2" users can access this site just fine when they authenticate with "domain2\user2" as the username.
Any ideas on why the authentication works when I don't include the domain for users in "domain1"?
Thanks~!
IIS 6.2 on Windows2012R2
Windows Authentication is enabled and has 2 providers enabled