Re: Determine whether user is authenticated against a Domain / AD

From: Joubert Nel (j_at_j.j)
Date: 07/06/05


Date: Wed, 6 Jul 2005 10:32:30 -0400

Hello Dominick,

Thanks for the input - this is the route I'm taking (doing the comparison) -
I was wondering whether there is perhaps a property in the framework that
indicates this. Thanks for the confirmation.

Regards
Joubert

"Dominick Baier [DevelopMentor]" <dbaier@pleasepleasenospamdevelop.com>
wrote in message news:555367632562026310159120@news.microsoft.com...
> Hello Joubert,
>
> the username has the following format AUTHORITY\USERNAME
>
> authority would be in the case of local accounts the local machine name
(compare
> to the machinename environment variable) - otherwise the authority is the
> domain.
>
> maybe that helps
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
>
> > Hi all,
> >
> > What is the recommended way to determine whether the user is
> > authenticated against a Domain or AD?
> >
> > Simply checking WindowsIdentity.IsAuthenticated and
> > WindowsIdentity.AuthenticationType does not distinguish between a user
> > that is logged into a domain account and a user that is logged into a
> > local account.
> >
> > Regards
> > Joubert
>
>
>