Simple Question Related TO ADS

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.
 
A

Anil Chadha

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
 
A

Arvind Rangan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top