Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > User.InRole upto Domain Users --Windows Authentication Problem

Thread Tools

User.InRole upto Domain Users --Windows Authentication Problem

Posts: n/a
Hi All,
i used the code below to get the group of the user rfom
Active Directory

WindowsPrincipal wp=new WindowsPrincipal(WindowsIdentity.GetCurrent());
Response.Write(wp.IsInRole("MyDomain\\domain users"));

And iam getting true, for the same, but my problem is i belong to a
group as WebTeam, Iam not able to validate it


If i give this it return false,

Can somebody help me out how do i validate against my Group

Thanks in Advance


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a server on one domain the domain controller of a new domain Limited Wisdom MCSA 7 09-13-2006 02:18 AM