if you omit the Domain\ part - local groups are assumed.
What exact exception do you get (including inner exception) ?
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
Hi Dominick,
> if you omit the Domain\ part - local groups are assumed.
I know this. What I tried to express is that I would expect the call to
return false
for non-existent group, not exception.
> What exact exception do you get (including inner exception) ?
There is no inner exception. Just System.Exception with message (I do not
remember the exact message).
.NET Framework calls internally Win32 native function (LsaLookupNames2).
Return value of this function is C000018C (STATUS_TRUSTED_DOMAIN_FAILURE).
This coverts into windows error message "The trust relationship between the
primary domain and the trusted domain failed."
Please note interesting point, that for some calls it fails and for others
it does not. And it does not depend on whether the group exists or not, if
account that runs the request is administrator or member of the group in
question or not.
Regards
djk
> -----
> Dominick Baier (http://www.leastprivilege.com)
[quoted text clipped - 23 lines]
> >
> > Thank for your comments.