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 ForumsAuthenticationAuthenticationSynchronize roles?Synchronize roles?
Previous
 
Next
New Post
11/28/2005 3:51 PM
 

 

Oliver,

did your changes get in for the 3.2/4.0 release?

-cc

 
New Post
4/26/2006 4:10 AM
 

It's been quite some time since this tread has been posted. I found no resolution and looks like the issue still exists in DNN 4.0.2 (haven't tested with 4.0.3 yet) - If this is still an Issue and Noone's been able to spend time on this side yet - I would like to go ahead and fix this and send out the fix to all involved. If a solution has been already posted by someone it'll be great if we can have a link posted on this board as a resolution.

Thanks much,
rajiv.

 
New Post
6/8/2006 10:52 AM
 

I'm running DNN 4.0.3.  It appears, at least in Mixed Mode Authentication, that the Roles do not get synchronized every time the User Logs On.  They only sync the first time they log in.  Is this how it's supposed to work.  It appears Oliver has a fix for this...where can this fix be located?  Is this something that will be addressed soon?  What release or is there an add-on that will address this?

Also, does anyone have instructions on how to make the Host (and Portal) admins AD Accounts?

Thanks!

 
New Post
6/15/2006 1:29 PM
 

I am using DNN 3.2 as well and must have synchronization work both ways (adding and removing rolls).  I have a temporary quick fix that works for me.  I use a simple SQL statement to clear out all roles for the authenticated user before the AddUserRoles function is called.  This way the roles should always be up to date when the user logs on.  I need to figure out how to adjust the timeout on the authentication cookie to 5 minutes though... anybody can help me out on that one?

paste after line 84 in components/Authentication/AuthenticationController.vb

...

objAuthUser.UserID = intUserId

' 06/14/06 WE350Z - AD Synch fix
' remove existing user roles from db fix for currently authenticated users, except admin role if present
Dim myDataSet As DataSet
'Dim myDataTable As DataTable
Dim mySqlDataAdapter As SqlDataAdapter
Dim strSQL As String
Dim strConn As String
strConn = System.Configuration.ConfigurationSettings.AppSettings("SiteSqlServer")
strSQL = "DELETE FROM UserRoles WHERE UserID = " + intUserId.ToString() + " AND RoleID != 0"
myDataSet = New DataSet
mySqlDataAdapter = New SqlDataAdapter(strSQL, strConn)
mySqlDataAdapter.Fill(myDataSet, "UserRoles")
' end fix

UserController.AddUserRoles(_portalSettings.PortalId, objAuthUser)

...

 
New Post
6/16/2006 4:26 AM
 

Hi, maybe my question may be considered stupid, but where I can find "AuthenticationController.vb"?

in my installation this doesn't exist.

 

I found it in the DNN 3.2.2 source, but how to apply/compile this fix to the production environment ?

Thanx

Daniele

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationSynchronize roles?Synchronize roles?


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