Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 576
  • Last Modified:

Problems attempting to impersonate a service account on another server

I am attempting to use impersonation to upload and download files to a file server using the "Impersonate a Specific User in Code" method from the MS KB article "How to implement impersonation in an ASP.NET application" (\\http://support.microsoft.com/kb/306158/).

I can get impersonation to work if I use a domain\username login, but our domain\username accounts are required to change passwords every 90 days, so I am trying to use a service account on the file server that is not associated with a domain.  I have tried using the server name, a blank string, a dot, our domain name, and probably several other things, but I keep getting login failed (Err.LastDllError returns 1326, Logon failure: unknown user name or bad password).

Is there some way to impersonate an account on another server that is not a member of a domain?
0
smoee
Asked:
smoee
1 Solution
 
naveenkohliCommented:
You can's impersonate as "Service Account" because you will not have access to password for this account.

If impersonation is required for your app to work then ask your IT admin to create a low previlege account which password expiration policy does not apply and then use that account.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now