B
Brian Stoop
Hi,
I have a TCP .NET 2 secure remoting interface and I can connect to it from a
remote Windows Console Remoting client, and when the service calls
"Thread.CurrentPrincipal.Identity.Name", the name of the user running the
client is found. All correct.
But when my ASP .NET 2 application calls it, it gets: "NT
AUTHORITY\\ANONYMOUS LOGON".
I have tried wrapping the ASP TcpClientChannel registration and call in
this code:
WindowsIdentity winId = (WindowsIdentity)HttpContext.Current.User.Identity;
WindowsImpersonationContext ctx = null;
try
{
// Start impersonating
ctx = winId.Impersonate();
....... but still I get ANONYMOUS LOGON.
Is is possible using a TcpClient Channel call from ASP .NET 2 application to
a remoting interface in a remote Windows Service, for the service to tell
the identity of the Web user ? Please note that I do not wish to use a
custom sink to pass it in, as this defeats the whole point.
Thanks B,
I have a TCP .NET 2 secure remoting interface and I can connect to it from a
remote Windows Console Remoting client, and when the service calls
"Thread.CurrentPrincipal.Identity.Name", the name of the user running the
client is found. All correct.
But when my ASP .NET 2 application calls it, it gets: "NT
AUTHORITY\\ANONYMOUS LOGON".
I have tried wrapping the ASP TcpClientChannel registration and call in
this code:
WindowsIdentity winId = (WindowsIdentity)HttpContext.Current.User.Identity;
WindowsImpersonationContext ctx = null;
try
{
// Start impersonating
ctx = winId.Impersonate();
....... but still I get ANONYMOUS LOGON.
Is is possible using a TcpClient Channel call from ASP .NET 2 application to
a remoting interface in a remote Windows Service, for the service to tell
the identity of the Web user ? Please note that I do not wish to use a
custom sink to pass it in, as this defeats the whole point.
Thanks B,