Have this code, which works from within excel (change a few things due to environment), and I'm trying to make it work using ASP... but when it comes to executing, it fails giving me this:
Provider
error '80004005'
Unspecified error /test/ldap2.asp, line 23
ADsPath = "
ldap://[server]"
Set con = CreateObject("ADODB.Connection")
With con
.Provider = "ADSDSOObject"
.Properties("User ID") = "[username]"
.Properties("Password") = "[password]"
.Open "ADSI"
End With
Set com = CreateObject("ADODB.Command")
With com
.ActiveConnection = con
' ADsPath
.CommandText = "<" & ADsPath & ">;(cn=[name]);mail,cn;subtree"
End With
Set rs = com.Execute 'Line 23
Any help on this would be... fantastic!