I am developing a web application with MVC-3
I want to give the users of a particular windows domain some special privileges; therefore I have to determine whether the request is coming from that particular domain.
Please note that I am using Forms authentication.
I know that I can do this by tracking the IP address of the user. But is there a way to directly get the domain name?
For example, if the user is logged in as ADomain\AUsername
in a windows machine, is there a way to get ADomain
?