Re: User management with Windows Authentication

From: Dominick Baier [DevelopMentor] (
Date: 09/16/05

  • Next message: [MSFT]: "RE: Certmgr"
    Date: Thu, 15 Sep 2005 22:11:58 -0700

    Hello jfer,

    in Authenticate_Request

    // get the roles
    string[] roles = _getRoles(Context.User.Identity.Name);

    // create new prinicipal
    GenericPrincipal p = new GenericPrincipal(Context.User.Identity, roles);

    // set new user
    Context.User = p;
    Dominick Baier - DevelopMentor

    > Yes I want to store the roles in SQL but I am having problems
    > understanding how to attach the roles to the user. I was initially
    > using Forms Authentication and the new RoleManager aspect of ASP.NET
    > 2.0 to pull roles from SQL for users. However I realized forms
    > authentication is not a viable solution to another aspect of my tool
    > so I need windows authentication with the rolemanager for
    > authorization elements. Is it possible to mix these? Thanks for
    > insight

  • Next message: [MSFT]: "RE: Certmgr"