Re: domain - user validation



How do you authenticate the user?

If you are using IIS integrated authentication - IIS will do the authentication and you will see the username on Context.User.Identity.Name.

This name will have two parts domain\username.

-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

How do I validate that a user belongs to a particular domain,
programmatically? For example, I have a user (user1) who claims to
belong to
a particular domain (domain1). How do I confirm whether user1 belongs
to
domain1, in my web application?
Any help is appreciated.
Thanks.


.