Re: Determine whether user is authenticated against a Domain / AD
From: Joubert Nel (j_at_j.j)
Date: Wed, 6 Jul 2005 10:32:30 -0400
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.
"Dominick Baier [DevelopMentor]" <email@example.com>
wrote in message news:firstname.lastname@example.org...
> Hello Joubert,
> the username has the following format AUTHORITY\USERNAME
> authority would be in the case of local accounts the local machine name
> to the machinename environment variable) - otherwise the authority is the
> maybe that helps
> Dominick Baier - DevelopMentor
> > 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