Not really, no. It is probably safer to compare the SID prefix of the user
"Joubert Nel" <j@j.j> wrote in message
news:eTz8QejgFHA.2880@TK2MSFTNGP09.phx.gbl...
> 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
>>
>>
>>
>
>