Hello,
I have a DNN 06.02.05 (24) hosts using Active Directory authentication, one on IIS 6 and one on IIS 7.5, both working good with mixed authentication (AD autologin and possibility to logoff and login with a DNN user, e.g. host).
I am now testing impersonation: I see that if I include <identity impersonate="true" /> I actually can see my domain user as the current windowsidentity (System.Security.Principal.WindowsIdentity.GetCurrent().Name). And I can test filesystem access with code like:
Try
Dim ent() As String = IO.Directory.GetFileSystemEntries(path)
DnnLog.Debug("ent=" & ent.GetUpperBound(0))
Catch ex As Exception
DnnLog.Error(ex.Message)
End Try
Such function should just tell me if the folder exists, and if the currently logged-on user has access to it.
The problem is when I test access to an UNC share as the path (e.g. \\server\share\folder), I always get an access denied exception, but I do have access to such a share!
Is this a problem with UNC, with impersonation or both? Is there another way to perform such a check?
Thank you for any help,
al.