Get Client Username with asp.net

From: Jason Cable (cabes@cabes.ws)
Date: 06/17/02


From: "Jason Cable" <cabes@cabes.ws>
Date: Mon, 17 Jun 2002 07:09:41 -0700


I use this in C#.... will also work in VB... just Dim as
string or whatever:
System.Web.HttpContext.Current.User.Identity.Name.ToString
()

Thanks,
Jason
cabes@cabes.ws

>-----Original Message-----
>Hello,
>
>Iīd like to authenticate uses of an inhouse intranet
application by there
>local client side username (username in the NT Domain /
Active Directory).
>
>How can I read the userīs name with VB.NET ? Is there an
object that reads
>the logon user properties on the client ?
>
>
>
>
>.
>



Relevant Pages

  • Re: Impersonation problem
    ... I want my app to run as admin, but I also want to authenticate the user ... Public Shared Function TestUserPassword(ByVal domain As String, ... ByVal userName As String, ByVal password As String) ... Note that I'm trying to connect to ADSI using the username and ...
    (microsoft.public.dotnet.security)
  • Re: Authentication against active directory
    ... Public Function AuthenticateUser(ByVal userName As String, ... As String, ByVal domain As String, ByVal server As String) As Boolean ... > I found some code that allows me to authenticate the user trying to access ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... Microsoft.Web.Services3.Security.Security security) ... throw new Exception("The username token is not present in the ... I've added the web service call directly to my Data binding method ... protected override string AuthenticateToken(UsernameToken ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... Microsoft.Web.Services3.Security.Security security) ... This assertion is only valid to see whether you are receiving the username ... I've added the web service call directly to my Data binding method ... protected override string AuthenticateToken(UsernameToken token) ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... Microsoft.Web.Services3.Security.Security security) ... This assertion is only valid to see whether you are receiving the username ... I've added the web service call directly to my Data binding method ... protected override string AuthenticateToken(UsernameToken token) ...
    (microsoft.public.dotnet.framework.webservices.enhancements)

Quantcast