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 ForumsAuthenticationAuthenticationRoles sync?Roles sync?
Previous
 
Next
New Post
8/14/2007 9:17 AM
 

Hello,

I could find a way to automatically import AD groups into DNN roles: is this possible?

Preamble: I'm developing an Intranet portal, using ADSI authentication; I enabled "synchronize role", and can see users get assigned their AD roles at logon, but this only if I previously created an equivalent  DNN role. Since I want to use AD groups (as DNN roles) to configure permissions, and I have many AD groups, I'd like to understand how roles sync works.

Example: the AD domain holds a "Users" group. User "user1" is member of that group. If I create a role named "Users" in DNN, and configure it as public and auto-assignment, users get assigned (if they are member of that group in AD), and I can use that role to assign permissions. If I do not create the role in DNN, I cannot see/use it.

I also tried writing code for that, but with strange result: I can create roles (see code below) and see them in the database, but they're not visible under roles management. But I can see them under users' management, assigned to users - even if then permissions based on one of these are not recognized (access denied).

Can anybody point me to the right direction?

 

Code snippet:

Dim rc As New DotNetNuke.Security.Roles.RoleController

 

Dim nr As New DotNetNuke.Security.Roles.RoleInfo
nr.RoleName = "MyRole"
nr.PortalID = 0
nr.Description = "MyRole"
nr.IsPublic = True
nr.AutoAssignment = True
nr.RoleID = -1
nr.RoleGroupID = -1
nr.TrialPeriod = -1
nr.TrialFrequency = "N"
nr.BillingPeriod = -1

iRC = rc.AddRole(nr)

 

Thanks,

al.

 

 

 

 
New Post
10/15/2007 4:50 PM
 

al,

Have you made any progress on this?  I'm in the same situation and interested in your approach, what happends when roles are Created,Updated,Deleted?

Thanks,
Nou

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationRoles sync?Roles sync?


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