V
Vibert
Hi all,
I need to read data from a Novell eDirectory LDAP-server, located at a
specific IP address.
What works:
-----
Using the "LDAP Browser/Editor 2.8.2" from University of Chicago, with
settings: Anonymous Bind: On, SSL: On,
everything works fine.
What doesn't work:
-----
Using VB.NET and DirectoryEntry/ DirectorySearcher, I get:
System.Runtime.InteropServices.COMException (0x8007203A): The server is not
operational
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindOne()
Code: (have tried numerous variations of this.)
Dim objRootOU As New DirectoryEntry("LDAP://xxx.xxx.xxx.xxx:636/o=zzzz")
Dim objSearch As New DirectorySearcher(objRootOU)
Try
objRootOU.AuthenticationType = AuthenticationTypes.None 'Also tried the
others
objSearch.SearchScope = SearchScope.Subtree
Dim searchResult As SearchResult
searchResult = objSearch.FindOne()
Dim result As String
result = searchResult.Properties("givenName")(0) & " " & _
searchResult.Properties("sn")(0)
Catch ex As Exception
System.Console.WriteLine(ex.GetBaseException.ToString)
End Try
Other facts:
Using Windows XP
Using .NET Framework 1.0.3705
Thanx for any help/hints,
Vidar
I need to read data from a Novell eDirectory LDAP-server, located at a
specific IP address.
What works:
-----
Using the "LDAP Browser/Editor 2.8.2" from University of Chicago, with
settings: Anonymous Bind: On, SSL: On,
everything works fine.
What doesn't work:
-----
Using VB.NET and DirectoryEntry/ DirectorySearcher, I get:
System.Runtime.InteropServices.COMException (0x8007203A): The server is not
operational
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindOne()
Code: (have tried numerous variations of this.)
Dim objRootOU As New DirectoryEntry("LDAP://xxx.xxx.xxx.xxx:636/o=zzzz")
Dim objSearch As New DirectorySearcher(objRootOU)
Try
objRootOU.AuthenticationType = AuthenticationTypes.None 'Also tried the
others
objSearch.SearchScope = SearchScope.Subtree
Dim searchResult As SearchResult
searchResult = objSearch.FindOne()
Dim result As String
result = searchResult.Properties("givenName")(0) & " " & _
searchResult.Properties("sn")(0)
Catch ex As Exception
System.Console.WriteLine(ex.GetBaseException.ToString)
End Try
Other facts:
Using Windows XP
Using .NET Framework 1.0.3705
Thanx for any help/hints,
Vidar