Remoting Impersonation/Delegation problem

Hi,
    I am working on a n-tier app using remoting. I am using the VS 2005 beta
2. My server needs to access a remote resources on behalf on the connected
user.

    I have configured my server like :
        <channel ref="tcp" secure="true" port="8081" impersonate="true">

    and my client:
        <channel ref="tcp" port="0" secure="true"
tokenImpersonationLevel="Delegation">

    I start my server in the context of UserA on one machine and the client
app on another using UserB. When I trace I can see that the context is
properly passed to the server application:
    WindowsIdentity currentUser = WindowsIdentity.GetCurrent();
  this return a WindowsIdentity for UserB, but the
currentUser.ImpersonationLevel is always 'Impersonation' I cannot get a
delegation token!!!!

    I have made sure that UserB is configured in AD to handle Delegation. I
must be missing something!!!!!

    Is there some privileges that I need to activate on my server

    Any ideas would be welcome!

Best regards





Answer this question

Remoting Impersonation/Delegation problem

  • Jeroen Mostert

    You can send it to douglasp@microsoft.com.
  • Noah Coad

    Could you post a small repro
  • Nathan Pieper

    Hi,
       I have reduce my problem to its smiplest form. It is still 2 solutions and 3 projects. It is only 22 kb once zipped.

       How do I send it

    Thank you!

    Martin

  • Dunx

    Yes,
       I have a small program to re-produce it, how do I send it

    Thank you!

  • Remoting Impersonation/Delegation problem