Impersonation and current logged in user worklist

  • 9 September 2014
  • 1 reply
  • 8 views

Badge +1

Hello,

 

I don't know why always when I connect to K2 server from ASP.NET web application I doesn't log it using the currect logged it user (I am using Active Directory and NTLM authentication). I think It always uses the current logged in Windows Account.

 

Now I want to get the current logged in user in my web application worklist so I am doing impersonation like:

 

this.connection.ImpersonateUser(@"K2:DOMAINUser");

 

Is it the only way to to achieve what I want is by impersonation or can I change any think in the K2 connection string?

BTW: my connection string is uses integrated authencation: 

Integrated=True;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=K2;Port=5555

1 reply

Badge +8

Have you enabled ASP.NET Impersonation in IIS?  Without this, your web application won't be allowed to impersonate the user.

Reply