I have a website which uses Forms authentication. I would like for a couple folks, mainly me, to be authenticated with my AD user id of the PC I am on. Currently I have code in the login page which compares the Request.LogonUserIdentity.Name.ToString to "Domain\Me" and if true it sets a cookie with my name and then redirects to the calling page. Is this method ok? Is there a more preferred way of associating my AD account with a forms user id account? Here is the code I am using.
Dim myid As String = Request.LogonUserIdentity.Name.ToString
If myid = "USC\blabla" Then
FormsAuthentication.SetAuthCookie("blabla", True)
FormsAuthentication.RedirectFromLoginPage(Request.LogonUserIdentity.Name.ToString, True)
End If
thanks
Milton
...
Go to the complete details ...