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.

  1. the application stores these files in single network shared folder (active directory).
  2. 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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -