Thread.CurrentPrincipal.Identity.Name returns "ANONYMOUS LOGON"

Discussion in 'ASP .Net' started by Brian Stoop, May 8, 2008.

  1. Brian Stoop

    Brian Stoop Guest

    Hi,

    I have a .NET 2 Remoting client in an ASP application, pages call various
    methods on the TCP channel. The .NET Remoting Server runs as a Windows
    Service, "secure"=true in both the Client and Server Remoting interfaces..

    But when I call Thread.Current.Principal.Name in the server, it always
    returns "NT AUTHORITY\\ANONYMOUS LOGIN".

    How can I get the ID of the user that is logged into the ASP application ?


    Thanks, B
     
    Brian Stoop, May 8, 2008
    #1
    1. Advertisements

  2. Brian Stoop

    Brian Stoop Guest

    I have switched to a http channel. This question is closed.

    thanks

    "Brian Stoop" <> wrote in message
    news:%...
    > Hi,
    >
    > I have a .NET 2 Remoting client in an ASP application, pages call various
    > methods on the TCP channel. The .NET Remoting Server runs as a Windows
    > Service, "secure"=true in both the Client and Server Remoting interfaces..
    >
    > But when I call Thread.Current.Principal.Name in the server, it always
    > returns "NT AUTHORITY\\ANONYMOUS LOGIN".
    >
    > How can I get the ID of the user that is logged into the ASP application ?
    >
    >
    > Thanks, B
    >
    >
     
    Brian Stoop, May 9, 2008
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon Paugh
    Replies:
    0
    Views:
    497
    Jon Paugh
    Jan 22, 2004
  2. nalbayo
    Replies:
    2
    Views:
    5,873
    Bruce Barker
    Nov 11, 2005
  3. Ken
    Replies:
    2
    Views:
    3,072
  4. Dune88
    Replies:
    0
    Views:
    419
    Dune88
    Oct 10, 2008
  5. Michael Ames

    HttpContext.Current.User vs. Thread.CurrentPrincipal

    Michael Ames, Nov 13, 2003, in forum: ASP .Net Security
    Replies:
    1
    Views:
    688
    Ram Sunkara [msft]
    Nov 14, 2003
  6. John K
    Replies:
    8
    Views:
    516
    Dominick Baier [DevelopMentor]
    Sep 20, 2005
  7. Kjell Kristiansson
    Replies:
    0
    Views:
    453
    Kjell Kristiansson
    Nov 30, 2005
  8. Antonio O''Neal

    user.identity.name returns old AD user name

    Antonio O''Neal, Oct 31, 2008, in forum: ASP .Net Security
    Replies:
    5
    Views:
    3,308
    Antonio O''Neal
    Nov 3, 2008
Loading...