Permissions issue with System.DirectoryServices

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top