
Access LDAP server with OLEDB provider
Hello,
First, I'm french, so my english isn't very good.
I try to access to LDAP server (in my case Imail server, but I would like my
code works for any LDAP Server) .
I have the message
-2147217865 "The specified table does not exist"
I use the Active Directory OLD DB provider (ADsDSOObject). For Microsoft, it
can be used to access to any LDAP Service.
code :
oConnection.Provider = "ADsDSOObject"
oConnection.Open "Active Directory Provider"
strCommand = "<LDAP://serveur>;(objectClass=Person);cn;subtree"
Set oRecordset = oConnection.Execute(strCommand)
It works when I try to access to the Windows2000 Active Directory but not
when I try to access to LDAP service of Imail Server.
I'm looking for samples of using this provider with other LDAP service than
the Active Directory
and explanation of syntax of LDAP dialect. (DC, CN, OU, .....)
Thank you for all response.
--
Stphane DOUSSIERE