Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Permissions issue with System.DirectoryServices

Thread Tools

Permissions issue with System.DirectoryServices

Posts: n/a

I'm having an issue with permissions using the System.DirectoryServices
namespace at a customer site. It's an 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("\")).ToUp per
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!

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
In-depth documenation on User Permissions, Group Permissions, ACLs, DCLs etc. Curt K ASP .Net 0 11-03-2006 04:54 PM
Wireless Network - XP Home - Permissions Issue =?Utf-8?B?QW56eQ==?= Wireless Networking 2 02-07-2005 02:05 PM
ASPX file returning obscur runtime error - after changing permissions to a subweb (.net app) to different permissions than on its parent ? Isabelle ASP .Net 0 08-11-2004 02:04 PM
Re: Permissions - giving "everyone" full permissions is bad ? Scott Allen ASP .Net 0 07-13-2004 08:54 PM
Permissions Issue with ASP.NET using CDO for Send Mail Function Lance Safford ASP .Net 0 04-21-2004 07:13 PM