Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Get role for any given user name

0 views
Skip to first unread message

Dominick Baier [DevelopMentor]

unread,
Nov 3, 2005, 5:22:20 PM11/3/05
to
Hello prem,

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


prem

unread,
Nov 4, 2005, 9:30:01 AM11/4/05
to
Thanks for the response.

> 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

Joe Kaplan (MVP - ADSI)

unread,
Nov 4, 2005, 10:56:52 AM11/4/05
to
The Protocol Transition constructor takes the UPN syntax: us...@domain.com.

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...

0 new messages