Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationproblems with user registration and Authenticationproblems with user registration and Authentication
Previous
 
Next
New Post
2/27/2006 9:18 AM
 
When i log in as an existing AD user for the first time i encounter the following problem:

All records in 'Users', 'UserRoles', 'aspnet_Membership', 'aspnet_Users' are correctly populated, but the user roles in 'aspnet_UsersInRoles' are not.

I would really appreciate some helpful suggestions.

Thanks a lot
Jörg
 
New Post
4/13/2006 3:03 AM
 
Hi,

We at NRL.com are experiencing the same issue: when a user joins the site everything goes fine except their roles aren't added to the aspnet_usersinroles table.

This works on our local builds but for some reason on our Production server we have issues.

Currently we are running the following SQL Script to fix it up but we would rather the site was doing this automatically, of course:

INSERT INTO aspnet_usersinroles
        SELECT aspnet_users.UserID,
            'df890364-7a14-4eda-981e-d6421f69b177'
        FROM aspnet_users
        WHERE aspnet_users.userid not in
            (
                SELECT    R.userid FROM aspnet_usersinroles as R
                    LEFT JOIN aspnet_Users as U
                    ON U.UserId = R.UserId
                WHERE    R.RoleId =
                    'df890364-7a14-4eda-981e-d6421f69b177'
            )

INSERT INTO aspnet_usersinroles
        SELECT aspnet_users.UserID,
        '804784f5-951e-4da3-af3d-2ac4ebc0c48a'
        FROM aspnet_users
        WHERE aspnet_users.userid not in
            (
                SELECT    R.userid FROM aspnet_usersinroles as R
                    LEFT JOIN aspnet_Users as U
                    ON U.UserId = R.UserId
                WHERE    R.RoleId =
                     '804784f5-951e-4da3-af3d-2ac4ebc0c48a'
            )


Where the UIDs correspond to the RoleIDs for subscribers/registered users.

Any help would be greatly appreciated.

Cheers, arron
(arron<at>cfour.com.au)
 
New Post
5/14/2006 11:43 PM
 
Fix aspnet_UsersInRoles_AddUsersToRoles  as it is recommended in comment to DNNP-2920 and let us know if it makes the difference.

Michael Freidgeim http://geekswithblogs.net/mnf
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationproblems with user registration and Authenticationproblems with user registration and Authentication


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out