locked
Bind to a specific person without directory searcher RRS feed

  • Question

  • User-2070978840 posted
    I use the directory searcher class all the time to bind to specific people, but I remember when I used to use the WINNT provider I could do this without searching.  I could easily bind to them like this: "WinNT://LocalMachine/User".

    Is there a way to do this with LDAP knowing only a persons CN, not their DN?

    I am assuming using the directory searcher is slower than the WINNT way, but is that not the case?
    Tuesday, June 27, 2006 1:07 AM

All replies

  • User1354132231 posted
    Under the covers, it might or might not be doing the same thing.  You have to understand that the WinNT provider is actually going after the SAM - not an LDAP store.  However, It can hit AD (LDAP) in kind of a compatibility mode.  When you bind using LDAP and WinNT it is actually performing a search under the covers.  I would doubt that there is any significant performance difference.
    Tuesday, June 27, 2006 8:37 AM