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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"value provided for adsObject does not implement IADs"

Status
Not open for further replies.

frumpus

Programmer
Aug 1, 2005
113
US
I'm really hoping someone can give me a clue about this problem. thanks for reading.


The following code works great

Dim thisUser As DirectoryEntry
thisUser = New DirectoryEntry("LDAP://wolfgang/CN=JonesDT,OU=users,OU=Students,DC=rockhurst,DC=edu")

However, i need to be able to give it the ldap string in a variable like this.

ADsUserPath = "LDAP://wolfgang/CN=JonesDT,OU=users,OU=Students,DC=rockhurst,DC=edu"

Dim thisUser As DirectoryEntry
thisUser = New DirectoryEntry(ADsUserPath)


Which gives me the following error

"The value provided for adsObject does not implement IADs"

this seems so simple, can anyone tell me what the problem is?
 
Once again, all it took was for me to give up and post my problem in the forum. Naturally, I managed to solve the problem on my own 10 minutes later.

incidently, the solution was to add the ToString funcion as follows.

thisUser = New DirectoryEntry(ADsUserPath.ToString())

 
I am glad that you solved your problem. For future reference, this is the VB 5 & 6 forum. You will want to post VB.NET questions in the VB.Net Forum796
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top