I am working on a database imaging application. Links to the images are
stored in the database and accessed via a shared network drive. This network
share is mapped when the user logs on to Windows (using XP), and they have
“read” access only.
My challenge is I need the application to have “write” access during certain
functions, but I don’t want the user to have this access all the time. My
intent is for the app to impersonate a user with access to “write” to this
share during these times, and then switch back.
I have been able to successfully do the impersonation, (using
http://msdn.microsoft.com/library/de...asp?frame=true)
but am unable to “write” to the network share (get message that user does not
have permission)
My question – am I going about this correctly? Will the new identity
supersede the security in place when the drive is mapped during the initial
Windows log on? If not, is there another way I might accomplish the same
thing?
Thank you