check your path:
LDAP://Domain/OU=test,DC=Domain,DC=PVT

I think I found that it didn't seem to work as was documented and I faintly remember 
hitting a point where I thought I was connected and querying properly but getting 
errors similar to yours.

Try just LDAP://dc=Domain,dc=PVT .... and if you're searching a specific OU put that 
in your criteria instead.

... Just an idea.

<>< Ryan

-----Original Message-----
From: Sapp, Tim [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 3:02 PM
To: dotnet
Subject: SystemDirectoryServices Again



Guys,

I am still unable to get it to connect to the domain without passing the
userid and password.   I have added the identity line to the Web.Config and
removed all extra code from the sub that I am trying to run.   It's stopping
at the "For Each DE in DirEntry.Children" with a 

"System.Runtime.InteropServices.COMException: The specified directory
service attribute or value does not exist:


I have removed the anonymous from the web site and I am using Windows
Integrated security on the site.  If I change the line to include the user
name and password it works so I know the syntax should be correct.  I never
get an error on creating the object so I am not sure where the exact problem
is.  Just looks like a security issue to me.
 
Tim Sapp


***************   Code From Web.Config

<System.Web>

<identity impersonate="true" />
<authentication mode="Windows" />

</System.Web>


***************   Code from CreateUser.ASPX

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles but_Create.Click

        Dim DomainPath As String = "LDAP://Domain/OU=test,DC=Domain,DC=PVT";
        Dim DirEntry As New DirectoryEntry(DomainPath)    '
DirectoryEntry(DomainPath, "UserID", "Password") works
        Dim DE As DirectoryEntry

        For Each DE In DirEntry.Children   '  <-- Fails Here
            temp.Text = temp.Text & DE.Name
        Next


End Sub

---
You are currently subscribed to dotnet as: [EMAIL PROTECTED]
To unsubscribe send a blank email to %%email.unsub%%

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/



---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to