G
Guest
Hi,
I'm having an issue with permissions using the System.DirectoryServices
namespace at a customer site. It's an ASP.net app that is using windows
integrated security. One of the functions that it does is enumerate domain
user names and return this list to the client.
If I log into a remote machine as a domain admin, everything works fine, but
if I log in with more restricted user account, I get:
"The network path was not found" from System.DirectoryServices when creating
a new Directory Entry object. My code looks basically like this:
Dim domainName As String = WindowsIdentity.GetCurrent.Name.Substring(0,
WindowsIdentity.GetCurrent.Name.IndexOf("\")).ToUpper
Dim dirEntry As String = "WinNT://" & AppSettings("AdminGroup").Replace("\",
"/") & ",group"
Dim de As DirectoryEntry = New DirectoryEntry(dirEntry)
If anyone could point me in the right direction for what permissions are
involved that would be most helpful!
Thanks,
John
I'm having an issue with permissions using the System.DirectoryServices
namespace at a customer site. It's an ASP.net app that is using windows
integrated security. One of the functions that it does is enumerate domain
user names and return this list to the client.
If I log into a remote machine as a domain admin, everything works fine, but
if I log in with more restricted user account, I get:
"The network path was not found" from System.DirectoryServices when creating
a new Directory Entry object. My code looks basically like this:
Dim domainName As String = WindowsIdentity.GetCurrent.Name.Substring(0,
WindowsIdentity.GetCurrent.Name.IndexOf("\")).ToUpper
Dim dirEntry As String = "WinNT://" & AppSettings("AdminGroup").Replace("\",
"/") & ",group"
Dim de As DirectoryEntry = New DirectoryEntry(dirEntry)
If anyone could point me in the right direction for what permissions are
involved that would be most helpful!
Thanks,
John