1

After a user logs in to my web app (authenticating against Active Directory/LDAP) I need to connect to a windows network share on the same network (with their credentials/impersonating them) and access files they have access to so that they can be made available in the web app. This is running on IIS/Windows.

The only way I found that partially works, is mapping a network drive using their credentials, querying for the files they requested, then deleting the network drive (which isn't deleted most of the time), this seems insecure and inefficient for production use.

Is there a better option?

Ajit Kumar
  • 1,157
  • 12
  • 21
user177916
  • 11
  • 1
  • If it is not secure, then you can try to use other authentication methods. Regarding the inefficiency, you need to analyze what is causing it. – samwu Mar 31 '22 at 02:19

0 Answers0