Re: Impersonation of a specified account to archive to File Shares



On Mar 13, 3:47 pm, "Aethyrial" <aram.malin...@xxxxxxxxx> wrote:
What I'm attempting to do is make a basic extension of the
System.IO.File class with Copy and Move methods, but what I need to be
able to do is provide it with a credential to perform the file
operations in a new thread (for example I would have an Active
Directory account DW_Archiver with access to //server/folder). The
hope of this is to keep from having custom app pools because of file
access needs.

I'm not very familiar with impersonation and threading (or whichever
methodology I need to accomplish my goal), but hopefully someone can
point me towards some useful information or perhaps a recommendation
of a better way of implementing this.

Thanks

I believe you want to follow this article in your code:
http://west-wind.com/weblog/posts/1572.aspx

I've used it to temporarily impersonate a higher priveleged user in
order to accomplish a particular operation, and then I release the
identity when I'm through with the operation.

.



Relevant Pages

  • Re: Writing Help
    ... whichever is cheaper for you) are very affordable. ... are excited about your work and look forward to helping you accomplish ...
    (rec.arts.sf.composition)
  • Re: apache + tomcat + mod_jk on AIX
    ... what was needed to accomplish this? ... Very useful information. ... Was probably to dumb to find it myself:) ... I found out that it helps to use gcc 3.XX when compiling jk2 on AIX 5.2. ...
    (comp.unix.aix)