Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP Connection/Query

Status
Not open for further replies.

greg0303

Technical User
May 5, 2006
94
CA
I am trying to connect to a Cisco LDAP directory which is off our Domain so I need to provide a username and password.

I have tried various connection scripts but have not been successful at making the connection and/or making a query.

Here is my connection string, anyone know where I may be making an error:

Set oConfig = GetObject("LDAP://10.80.211.10:8404")
Set oCon = CreateObject("ADODB.Connection")

SQLStmt = "<LDAP://10.80.211.10:8404/ou=users,o=cisco.com>;(ObjectClass=*)"
sUser = "cn=Directory Manager,o=cisco.com"
sPassword = "DM User Password"
oCon.Provider = "ADsDSOObject"

oCon.Open "ADProvider", sUser, sPassword

Set rs = oCon.Execute(SQLStmt)

I get the error at the last line which gives me the error "One or more errors occured during the processing of command"
error #80040E14

Thanks for any help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top