GibboK
GibboK

Reputation: 73938

External website in .NET and Active Directory

I'm building a website and I need authenticate a User using Active Directory.

My website is on a different network and IP from the Server where the Active Directory is running (it is in a completely different network and domain).

I would like to know if is possible build an Login Page which could authenticate an User on a remote AD.

Thanks for your time.

Upvotes: 0

Views: 289

Answers (3)

mmorel
mmorel

Reputation: 444

You should not deploy any web services on an Active Directory server.

You can use System.Directoryservices.Accountmanagement namespace classes (.NET 4) or using ADSI.

Upvotes: 2

PHeiberg
PHeiberg

Reputation: 29831

One way of doing it would be to use LDAP to validate the supplied user credentials. Here is an example from Microsoft on how you could do it.

Upvotes: 3

Paul Grimshaw
Paul Grimshaw

Reputation: 21034

I had a similar situation to this, and the only way I could think to do it was like this:

  • Create a very small website on the server with Active Directory, which uses windows authentication
  • Have this website redirect to your main website, with some form of login key in the URL (best if generated on the fly) if the user authenticated.

Don't think there is any way for you to use the authentication over the external website other than along these lines.

Upvotes: 0

Related Questions