User.InRole upto Domain Users --Windows Authentication Problem

Discussion in 'ASP .Net' started by thomson, Oct 13, 2006.

  1. thomson

    thomson Guest

    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

    wp.IsInRole("MyDomain\\WebTeam"));

    If i give this it return false,

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

    Thanks in Advance

    Thomson
    thomson, Oct 13, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Infant Newbie
    Replies:
    2
    Views:
    3,238
    Infant Newbie
    Nov 12, 2003
  2. =?Utf-8?B?aG93YXJkIGRpZXJraW5n?=

    Authentication not mapping domain user to local windows group

    =?Utf-8?B?aG93YXJkIGRpZXJraW5n?=, Jan 24, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    623
    David Jessee
    Jan 25, 2005
  3. bitshift
    Replies:
    1
    Views:
    530
    bruce barker
    Jun 22, 2007
  4. vimuser
    Replies:
    1
    Views:
    1,362
    Tim Golden
    Feb 16, 2009
  5. Timo
    Replies:
    0
    Views:
    146
Loading...

Share This Page