
Signature
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
On Feb 12, 10:14 pm, "Joe Kaplan"
<joseph.e.kap...@removethis.accenture.com> wrote:
> Are you trying to authenticate a user in Active Directory or on the local
> machine? You can't authenticate local machine users with LDAP.
[quoted text clipped - 28 lines]
>
> - Show quoted text -
Thanks for your response,
I am actually trying to uthenticate the user of a local machine. Is
there a way to do that?
Joe Kaplan - 13 Feb 2008 19:17 GMT
I'd suggest doing a p/invoke of the LogonUser API. This is probably the
best way and will work with either type of account (domain or local).
The PrincipalContext object in .NET 3.5 can authenticate users in AD, ADAM
or SAM (local machine), but I've heard reports that the SAM support
sometimes provides mysterious results.
You can also try using the WinNT provider for S.DS instead of LDAP, but I
don't know if that will work reliably either.
Joe K.

Signature
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
On Feb 12, 10:14 pm, "Joe Kaplan"
<joseph.e.kap...@removethis.accenture.com> wrote:
> Are you trying to authenticate a user in Active Directory or on the local
> machine? You can't authenticate local machine users with LDAP.
[quoted text clipped - 32 lines]
>
> - Show quoted text -
Thanks for your response,
I am actually trying to uthenticate the user of a local machine. Is
there a way to do that?