When you try to access files on a file share, the Microsoft Dynamics NAV Server throws an authentication error, and the SQL Server Error log shows the following error message: Login failed for user "NT AUTHORITY\ANONYMOUS LOGON"The symptoms described in this article occur in the following scenario:
The most likely reasons for receiving authentication errors are missing SPNs or delegation setup. You must also give the account running the NAV Server permissions to delegate to the HOST and CIFS Services on the machine where the file share is. This article assumes that all this has already been set up correctly; yet the authentication problem still exists.
- Microsoft Dynamics NAV is running in a 3-tier installation, i.e. the NAV Server and SQL Server are on different machines.
- C/AL code is trying to access files, which are on a file share on a machine other than the one the NAV Server is running on.
- The account that is running the NAV Server is set up for constrained delegation.
Note: If the account is set up to be allowed to delegate to any services, then any symptoms you see will not be explained by this article.
The most likely reasons for receiving authentication errors are missing SPNs or delegation setup. You must also give the account running the NAV Server permissions to delegate to the HOST and CIFS Services on the machine where the file share is. This article assumes that all this has already been set up correctly; yet the authentication problem still exists.