I have three windows servers, one is a Domain Controller, one hosts laravel via IIS and the other is a windows server with a shared network folder for storage. Everytime I try to access the folder on the shared drive using the following:
scandir('\\servername\foldername');
I get the following error
scandir(\servername\foldername,\servername\foldername): Access is denied. (code: 5)
This is obviously a permissions error as the access to server is limited to only accounts in the DC's AD where as the laravel application is executing using the local IIS user. Can someone please help me with what I should try to do?
Thanks!