impersonation
Impersonate with username and password?
WindowsIdentity identity = new WindowsIdentity(accessToken); WindowsImpersonationContext context = identity.Impers开发者_运维百科onate();[详细]
2023-04-12 02:32 分类:问答Logoff after logonuser on C#
I use advapi32.dll\'s logonusermethod to access data over our network. I know it change the thread\'s user to the information i give i开发者_如何转开发t, but i was wondering if there\'s a way to rever[详细]
2023-04-10 20:11 分类:问答Run tests in TFS 2010 with a different identity
Is it possible to run the tests on T开发者_运维问答FS 2010 with a different identity ? The code being tested require higher privileges ( Active Directory, Filesystem manipulations) than the ones the[详细]
2023-04-09 06:05 分类:问答Programmatically access to TFS 2010 from outside the domain
I\'m trying to access my TFS server programmatically from outside the domain where the server is installed. A basic test program would look like this :[详细]
2023-04-09 04:21 分类:问答Could not load file or assembly 'app_code' or one of its dependencies when impersonating
I made a web site with VS2010 and publish it on IIS7. It runs fine but it can\'t connect to an OLAP server so I had to setup impersonation. Impersonation runs fine in debug on my dev machine, but when[详细]
2023-04-08 20:24 分类:问答Unknown error (0xfffffffe) while impersonating in C#
C# Impersonate Error Hello, wanted to create an application that would give me privileges to install applications with an user that has such accesses. It\'s important that the user with elevated privi[详细]
2023-04-08 10:24 分类:问答Launch an application from a windows 7 service
We are currently using a report printing application launched by a user-defined function located in a Firebird database which runs as a service.[详细]
2023-04-07 13:00 分类:问答Error when using Impersonation with Powershell and Exchange 2007 from C#
I\'m using a Windows system service to create a mailbox in Ecxhange 2007 using Powershell.As it\'s running as a system service I\'m wrapping the powershell call using impersonation (using advapi32.dll[详细]
2023-04-06 18:24 分类:问答Why doesn't LogonUser(...) work for domain accounts?
开发者_运维百科I\'ve been trying to use LogonUser(...) to get an access token for a user account, as in this MSDN sample.[详细]
2023-04-06 09:35 分类:问答What is the best way to secure your ID(in connection string) & retrieve it later?
I\'m working in a setup file(web setup) installation, and during the installation I provide the username & the password(for impersonating). but my question is that I want to use this user & pa[详细]
2023-04-05 14:59 分类:问答