Permissions issue with System.DirectoryServices

Discussion in 'ASP .Net' started by =?Utf-8?B?Sm9oaG55IDA=?=, Aug 9, 2005.

  1. 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
     
    =?Utf-8?B?Sm9oaG55IDA=?=, Aug 9, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Edward
    Replies:
    1
    Views:
    2,477
    Edward
    Jul 8, 2003
  2. David M. Weprin

    System.DirectoryServices

    David M. Weprin, Oct 17, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    398
    Yovi Oktofianus
    Oct 18, 2003
  3. Scott G.

    Re: System.DirectoryServices

    Scott G., May 1, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    393
    Scott G.
    May 1, 2004
  4. jm
    Replies:
    0
    Views:
    376
  5. Carl

    Security issue with DirectoryServices

    Carl, Apr 6, 2005, in forum: ASP .Net Security
    Replies:
    4
    Views:
    137
Loading...

Share This Page