VB.NET Search

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to create a search in VB.NET to search for a user in
Active Directory? I am able to do a search if I enter the EXACT username, but
I would like to create it so that if I type in a partial username it will
return usernames that are like my inputted text.

I appreciate your help
 
Matt said:
Does anyone know how to create a search in VB.NET to search for a
user in Active Directory? I am able to do a search if I enter the
EXACT username, but I would like to create it so that if I type in a
partial username it will return usernames that are like my inputted
text.

Just use wildcard characters in your search term (*), e.g. search for
*usern*
 
Leon said:
Just use wildcard characters in your search term (*), e.g. search for
*usern*

:-) If you have OE-quotefix then that would have just shown up bold! Forgot
about that.
Just put asterix then your search term, then asterix to do a wildcard search
 
Basically I just want to have a text box and a button and a list box. I would
ilke to enter a partial user name in the text box, click submit and have all
the users that relate to the partial username show up in the text box.

ex. Enter username of "maint". Expected results:

maintmrr
maintrmr
maintamc
mainttmk

I am not sure where to even start to do this? Any advise?
 
Matt said:
I am not sure where to even start to do this? Any advise?

Do you mean you don't have any code yet that does actually search the AD, or
you have it in place but don't know how to do a partial text search with it?
 
Back
Top