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 ForumsAuthenticationAuthenticationusing AD in permissionsusing AD in permissions
Previous
 
Next
New Post
9/8/2008 10:45 AM
 

I have a post in the iFrame forum, but I think this might be related.

Right now, I have an application that uses an xref table with dnnUserID and a buildingID that I look up to see what the user has permission to.  They could have access to 1 building or 50 - depending on what comes back from the query will determine what gets put into the list.

What I'd like to do is assign permission based on Roles in AD.  Is there a way for me to access the Roles a user has if I have the AD Authentication all set up and working?  IE, userA logs in and they are in AD Groups ITUsers, Building1Users, and Building3Users.  I'd like to somehow create my list with Building1 and Building3 because I've somehow given the two AD groups access.

Even if it's just another xref table with ADGroupID and BuildingID instead of dnnUserID and BuildingID.

To make a short story long(sorry), I'm wondering if there is a way to access the RoleID's for a specific person logged in.  I tried looking in the db tables, but I don't see any of the AD Groups in any of the tables.  I've logged in several users and I know I have a bunch of Roles in the Role table that are not ones I created, but were brought in when the users logged in.

We're trying to use AD as the central point of security(and just about everything else) and finding a way to do this will solve multiple issues with going forward.

 
New Post
9/9/2008 1:17 AM
 

User's can't bring roles in with them and have the roles created. The DNN security role has to exist in the first place and if it's the same as one of the AD groups the user belongs to then they'll be added to it (if Synchronize is checked in the Authentication Settings).

So, you can pull the AD users roles the same way that you'd pull any DNN users roles. I don't have my VPC fired up and I'm trying to get the posts that have built up over the day answered. If you're unsure of how to pull the user's RoleInfo let me know and I'll dig it out of the core code tomorrow.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationusing AD in permissionsusing AD in permissions


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