Home All Groups Group Topic Archive Search About

AD, LDAP, Query, OpenDSObject, 2 Questions...

Author
22 Mar 2006 11:51 AM
ShrimpBoy
Hi!

I want to do something...

Query an Active directory container for all computers with name beginning
with something, ending with something or containing something.

And

Query an Active directory container for a computer with a specific name.

I need to do those queries using "OpenDSObject" method to connect with
specific credential to AD.

Thanks!

ShrimpyOne

Author
22 Mar 2006 2:13 PM
Bob Butler
Show quote Hide quote
"ShrimpBoy" <Shrimp***@discussions.microsoft.com> wrote in message
news:88BDFD08-DB63-4D8B-8932-FF733B4A8709@microsoft.com
> Hi!
>
> I want to do something...
>
> Query an Active directory container for all computers with name
> beginning with something, ending with something or containing
> something.
>
> And
>
> Query an Active directory container for a computer with a specific
> name.
>
> I need to do those queries using "OpenDSObject" method to connect with
> specific credential to AD.

For the query for all computers from VB you'll need to use ADO; you can find
lots of samples in google with a search like
http://groups.google.com.my/groups/search?q=ADsDSOObject+vb+ldap+query+credentials&qt_s=Search
note that searching for "beginning with something" is normally easy as you
can search for "<value>*" but "ending with something" and "containing
comething" aren't so easy because you can't always rely on wildcards at the
beginning of the criteria (that is often disabled to improve performance).
For those you need to retrieve all entries and compare the names using VB
code (e.g. Like or Instr).

for the second I'm not sure what the question is


--
Reply to the group so all can participate
VB.Net: "Fool me once..."