![]() |
Getting Logged in User Name
Hi Experts,
I am using windows integrated authentication in my ASP.Net application. I get a Windows Login dialog box and the user has to enter a username and password to access the pages. Once the user has logged in successfuly, I need to get the signed in userID and password (If possible.) Can I use System.Net.CredentialCache.DefaultCredentials.GetC redential().UserName; for this purpose. If so How is it possible to use that. Please advice if there is a better way of doing the same. Thankx in Advance Regards Ganesh |
Re: Getting Logged in User Name
Ganesh Ramamurthy,
Since you are using Windows Auth u can get the logged on user by <%=User.Identity.Name%>. But you can't retrieve the Password!! Are u validating against Active Directory? Enjoy! Pstrick *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Re: Getting Logged in User Name
Yes Pstrick. I am using Active Directory
"Patrick Olurotimi Ige" <patrick.ige@crazyjohns.com.au> wrote in message news:O7yKCRR3EHA.3616@TK2MSFTNGP11.phx.gbl... > Ganesh Ramamurthy, > Since you are using Windows Auth u can get the logged on user > by <%=User.Identity.Name%>. > But you can't retrieve the Password!! > Are u validating against Active Directory? > Enjoy! > Pstrick > > > > *** Sent via Developersdex http://www.developersdex.com *** > Don't just participate in USENET...get rewarded for it! |
Re: Getting Logged in User Name
Then that should work..
Enjoy! Patrick *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
| All times are GMT. The time now is 08:54 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.