Код: Выделить всё
using (var usertoken = ReportSecurityCredentials.FileCopyUserCredentials.LogonUser(ReportSecurityCredentials.LogonTypeSecurity, SimpleImpersonation.LogonProvider.Negotiate))
{
WindowsIdentity.RunImpersonated(usertoken, () =>
{
//test
});
}
CMD
`your text`klist sessions
using (var usertoken = ReportSecurityCredentials.FileCopyUserCredentials.LogonUser(ReportSecurityCredentials.LogonTypeSecurity, SimpleImpersonation.LogonProvider.Negotiate))
{
WindowsIdentity.RunImpersonated(usertoken, () =>
{
//test
});
}
Код: Выделить всё
your textСеанс Kerberos для олицетворенного пользователя не должен быть указан в списке сеансов
Подробнее здесь: https://stackoverflow.com/questions/791 ... ever-purge
Мобильная версия