Simple Question Related TO ADS

  • Thread starter Thread starter Arvind P Rangan
  • Start date Start date
A

Arvind P Rangan

Hi

Code:
Dim entry As New DirectoryServices.DirectoryEntry("WinNT://Amber")
Dim mySearcher As New
System.DirectoryServices.DirectorySearcher(entry)
mySearcher.Filter = ("(anr= John)")

I like to know what does "anr" mean in this i want to know as i am bit
confused.

Please if it sounds 2 low level question also let me know.
Thanks
Regards

aRvind.
 
ANR stands for Ambiguous Name Resolution. When you do a search of the form
anr=John, the DirectorySearcher searches for the value John in nine (by
default) attributes, including name and SamAccountName. You should not do
searches in this form, as they strain the underlying directory database
quite a bit.

Regards
Anil
 
Hi Anil,

Thanks for the information, i to had it in mind about the seaching
method.

Ya nice to know that i has only few set of attributes involved in it.

How does .Filter (&(objectclass=user)(<ca>="<variable>")

Work is this faster or does the same way as anr.

Thanks
ARvind.
 
Back
Top