LDAP Query Help

LDAP Query Help

Post by sck1 » Sat, 11 Jun 2005 06:54:22


Hello,

I am running the routine below and I am getting the following error at For
Each result In srcLDAP.FindAll.

System.Runtime.InteropServices.COMException. The requested authentication
method is not supported by the server.

Any help with this would be appreciated.

--
Thanks in advance,

sck10

Sub LDAP(ByVal strID As String)
Dim strFilter As String = "(employeenumber = " & strID & ")"
Dim strLDAP As String =
"LDAP://ldap-uscentral.post.myaddress.com:389/o=myaddress.com/ou=people"
Dim dsLDAP As New DirectoryEntry(strLDAP)
Dim srcLDAP As New DirectorySearcher(dsLDAP)
Dim result As SearchResult
srcLDAP.Filter = (strFilter)
For Each result In srcLDAP.FindAll
Console.WriteLine(result.GetDirectoryEntry().Path)
Next
END Sub
 
 
 

LDAP Query Help

Post by dmluYX » Sat, 11 Jun 2005 07:29:02

did u try..


Dim strLDAP As String =
"LDAP://ldap-uscentral.post.myaddress.com:389/ou=people,DC=myaddress,DC=com,"
--
http://www.yqcomputer.com/
=====
vInAypAtHi
o__
---_,>/'_------
(_) \(_)
---------------

 
 
 

LDAP Query Help

Post by v-schan » Sat, 11 Jun 2005 17:39:36

Thanks for vinay's input.

Hi Sck10,

As the error info is on "Security Authentication type", I also suggest you
specifying the AuthenticationType when constructing the DirectoryEntry, you
can have a look at the following MSDN reference:

#AuthenticationTypes
http://www.yqcomputer.com/
tiontypes.asp?frame=true

In addition, since this is a purely ADSI issue, I suggest you try posting
in some other ADSI group to see whether any other
ADSI experts and provide some advice.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)