Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Leona Wright   on Feb 04 In Asp.net Category.

  
Question Answered By: Corbin Jones   on Feb 04

I'm using this code. I just want to navigate AD from vb.net. I dont
want to search any criteria. Just watch ou's and the users of the
ou's. This is such an easy thing, but I can't manage! I'm giong
crazy:)


objConnection.Provider = "ADsDSOObject"
objConnection.Open("Active Directory Provider")
objCommand.ActiveConnection = objConnection
cmdText = "<LDAP://xxx.net>;(objectClass=*);" & _
"ADsPath, objectclass;subTree"
objCommand.CommandText = cmdText
objRecordSet = objCommand.Execute
objRecordSet.MoveFirst()
Do Until objRecordSet.EOF
TextBox1.Text += objRecordSet.Fields(0).Value() & vbCrLf
objRecordSet.MoveNext()
Loop

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on active directory help is needed Or get search suggestion and latest updates.


Tagged: