Hi,
I'm maintaining asp.net aplication. After logging in, application do Impersonate:
[System.Runtime.InteropServices.DllImport("advapi32.dll", SetLastError = true)]
public static extern int LogonUser(...)
IntPtr zetonHandle = new IntPtr(0);
zetonHandle = IntPtr.Zero;
LogonUser(login, domena, haslo, 3, 0, out zetonHandle);
System.Security.Principal.WindowsIdentity wi = new System.Security.Principal.WindowsIdentity(zetonHandle);
wi.Impersonate();
With this users have their rights to files on server. Whch they may edit/view from explorer or application. Everything is ok.
But now i have to made scaled icon in aplication. I have: img src="http://aserver/P/a%20c.jpg">
Where P is virtual directory. With Integrated authentication.
Then users open page with image server want to authenticate user. Impersonate not working.
Go to the complete details ...