delphi - I need my desktop app to access network folder that the current user does not have permission to -
i have windows desktop app (written in delphi) allows users store , retrieve files.
- the application stores these files in single network shared folder (active directory).
- the various users of app not have permission see of files, these permissions controlled app.
currently have allow every user of app access shared folder, malicious user find directory , gain access of files.
is there way app can act specific user such "app user" , not each individual needs permission shared folder?
you need either:
1) run app desired user.
2) have code programmably impersonate desired user, via logonuser()
, impersonateloggedonuser()
, or other similar functions, before accessing shared folder. don't forget stop impersonating when finished using folder.
Comments
Post a Comment