From what i can currently see the only way is to pull back all records and
then cycle through them doing a compare.
Unforuently this is dealing with around 9,000 records, so it adds a lot of
delay.
any known ways of applying a filter on
(Name/sAMAccountName/givenName/description) etc that coutain a string ?
You can use the "*" wildcard character in an LDAP query. For example:
(&(objectCategory=person)(objectClass=user)(givenName=*ab*))
This will work for the attributes you list. However, wildcards cannot be
used with DN attributes, like distinguishedName or memberOf. It's best to
use "*" only at the end of strings. Using "*" at the beginning or in the
middle requires more processing, but it can be done, and is still probably
faster than returning more records.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
It did the job
"Richard Mueller [MVP]" <rlmuelle...@ameritech.nospam.net> wrote in
message news:OF$446pfH...@TK2MSFTNGP04.phx.gbl...