0
votes

I'm trying to set up an ASP.NET application to use Windows Authentication. But the IIS server is not part of a domain, it is a sole server hosted in our Rackspace account.

I'd like to have the Windows Authentication module validate against the list of local Windows users on the IIS server. Is this possible?

Anonymous Authentication is off
Basic Authentication is off
Windows Authentication is on

But when I enter credentials for a local machine account as
machinename\user
password
it doesn't seem to work. It just prompts me again.

enter image description here

2

2 Answers

0
votes

Is possible make a local machine validation, like this:

var bool valid = false;
using (var  context = new PrincipalContext(ContextType.Machine))
{
    valid = context.ValidateCredentials(username, password);
}
0
votes

It appears that you can use local accounts, but I'm getting some kind of server error when the account tries to authenticate.

Once I found the error in the event logs, and got the status code, I was able to track it down, and find this answer, which worked exactly!