If you are on Windows Server 2003 and in a 2003 functionality domain - you
can use Protocol Transition -
have a look at the ctor of WindowsIdentity that takes a string.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> Hello Everybody,
>
> I wanted to check the role of a given user name. I looked into lots of
> online stuffs but all of them does it for the Current Principle. I
> wanted to find the if a given user name belongs to Administrator
> group. How can I do this ? Also, I wanted to do this without providing
> the user password.
>
> Thanks in advance.
> -Prem
> have a look at the ctor of WindowsIdentity that takes a string.
I tried that but I got "Unable to logon". I tried the username in different
format like DomainName\Username, Username.
Thanks.
-Prem
Note that protocol transition only works if your domain is 2003 native and
if the code is executing on a 2003 server or higher. Otherwise, you cannot
expect it to work.
Joe K.
"prem" <pr...@discussions.microsoft.com> wrote in message
news:7C07541E-665E-4BBB...@microsoft.com...