Luj Reyes
Luj Reyes

Reputation: 25

Automatic AD Auth

I'm developing an ASP .NET application, nothing fancy just another LOB App. Our company's authentication model is based on a typical AD setup. Nearly all of our applications are written on Sharepoint so it is a requirement that the authentication is "automatic", meaning that once you are logged on your machine you have access to all your applications without writing another user or pwd.

For some reasons i cannot develop this app over Sharepoint.. so, the question is How Can I Automatically Authenticate AD users on my web App?

thanks in advance

Upvotes: 1

Views: 93

Answers (2)

Nasko
Nasko

Reputation: 1332

You need to enable Windows Authentication on the web app. This article has enough details to get you started.

Upvotes: 1

TonyP
TonyP

Reputation: 5873

PrincipalContext Authenticator = new PrincipalContext(ContextType.Domain, 'yourDomainName');
    AuthenticationFailed = !Authenticator.ValidateCredentials(Username, Password);

If AuthenticationFailed; you can redirect to login page..

Upvotes: 0

Related Questions