Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

UserRoles Error
Last Post 07-21-2010 10:48 PM by Adam. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
AdamUser is Offline
river guide
river guide
Posts:116
Avatar

--
07-20-2010 04:00 AM

    Hi I'm getting an error with the Dynamic login module when trying to use the SSO. I have the latest DL from snowcovered version (3.3.0.24446 / 5.4.2). I have a DB qualifier and the error is   error=Invalid+object+name+'UserRoles'.&content=0

    when the sync roles is switched on. Please help!

    Also, when I login to "portal 1" which has the single sign on switched on to "Portal 2" as Master. When I then go to "portal 2", it still requires me to login in to "portal 2"? Is this correct? Doesn't it automatically login me in as "portal 1" user is already logged in?

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    07-21-2010 02:09 PM
    Hi... Please run this under Host/SQL and let me know if this fixes you up.


    if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}DataSprings_DynamicLogin_SyncUserRolesBetweenPortals') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    drop procedure {databaseOwner}{objectQualifier}DataSprings_DynamicLogin_SyncUserRolesBetweenPortals
    GO


    create procedure {databaseOwner}[{objectQualifier}DataSprings_DynamicLogin_SyncUserRolesBetweenPortals]
    (@MasterPortalID int,@ChildPortalID int,@UserID int)
    as
    begin

    -- generate ##temp tables

    -- drop table ##tempMasterPortalRoles if exists

    IF object_id('tempdb..##tempMasterPortalRoles') is not null

    BEGIN

    DROP TABLE ##tempMasterPortalRoles

    END



    IF object_id('tempdb..##tempMatchedChildMasterRoles') is not null

    BEGIN

    DROP TABLE ##tempMatchedChildMasterRoles

    END


    IF object_id('tempdb..##tempUserMasterRoleInfo') is not null

    BEGIN

    DROP TABLE ##tempUserMasterRoleInfo

    END

    IF object_id('tempdb..##tempUserChildRoleInfo') is not null

    BEGIN

    DROP TABLE ##tempUserChildRoleInfo

    END


    --List all Roles in the Master Portal
    select r.RoleID, r.RoleName into ##tempMasterPortalRoles from {objectQualifier}roles r

    where r.PortalID = @MasterPortalID and r.RoleName != 'Administrators'


    --Get a list of all Matching Roles in the Child Portal (We only want to modify these roles for the user)
    select r.RoleID as ChildRoleID, mpr.roleID as MasterRoleID, r.RoleName into ##tempMatchedChildMasterRoles from {objectQualifier}roles r
    inner join ##tempMasterPortalRoles mpr on r.RoleName = mpr.rolename

    where r.PortalID = @ChildPortalID and r.RoleName != 'Administrators'


    -- Lets get the matched role info for this user for the masterportal
    select UserRoleID, UserID,RoleID,ExpiryDate,IsTrialUsed,EffectiveDate,CreatedByUserID,CreatedOnDate,LastModifiedByUserID,LastModifiedOnDate, mpr.MasterRoleID, mpr.ChildRoleID

    into ##tempUserMasterRoleInfo from {objectQualifier}UserRoles ur
    inner join ##tempMatchedChildMasterRoles mpr ON ur.RoleID = mpr.masterroleID

    where UserId=@UserID

    -- Lets get the matched role info for this user for the chid Portal
    select UserRoleID, UserID,RoleID,ExpiryDate,IsTrialUsed,EffectiveDate,CreatedByUserID,CreatedOnDate,LastModifiedByUserID,LastModifiedOnDate, cpr.MasterRoleID, cpr.ChildRoleID
    into ##tempUserChildRoleInfo from {objectQualifier}UserRoles ur
    inner join ##tempMatchedChildMasterRoles cpr ON ur.RoleID = cpr.childroleID
    where UserId=@UserID

    --Lets Delete any roles that have been removed from the user in the Master Portal

    Delete from {objectQualifier}UserRoles Where UserRoleID In

    (
    Select UserRoleID
    from ##tempUserChildRoleInfo where MasterRoleID not in (Select RoleID from ##tempUserMasterRoleInfo)
    )



    --Update any Expiry dates for roles

    Update {objectQualifier}UserRoles
    SET ExpiryDate = info.ExpiryDate,
    IsTrialUsed = info.IsTrialUsed,
    EffectiveDate = info.EffectiveDate,
    CreatedByUserID = info.CreatedByUserID,
    CreatedOnDate = info.CreatedOnDate,
    LastModifiedByUserID = info.LastModifiedByUserID,
    LastModifiedOnDate = info.LastModifiedOnDate
    FROM {objectQualifier}UserRoles ur INNER JOIN ##tempUserMasterRoleInfo info ON ur.UserID = @UserID and ur.RoleID = info.ChildRoleID



    -- Finally, lets add any new roles in now

    insert into {objectQualifier}UserRoles(UserID,RoleID,ExpiryDate,IsTrialUsed,EffectiveDate,CreatedByUserID,CreatedOnDate,LastModifiedByUserID,LastModifiedOnDate)

    select info.UserID,info.childRoleID,info.ExpiryDate,info.IsTrialUsed,info.EffectiveDate,info.CreatedByUserID,
    info.CreatedOnDate,info.LastModifiedByUserID,info.LastModifiedOnDate
    from ##tempUserMasterRoleInfo info
    where info.childRoleID not in (select RoleID from ##tempUserChildRoleInfo)

    end
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    07-21-2010 02:11 PM
    Also - as far as the SSO and so forth between portals. Currently DNN authentication will allow you to navigate betweens portals on the same domain but not alternate domains. For example, if you had www.site.com/child or www.site.com/child2 then Yes - you wouldn't have to sign in. That being said, if you had child.site1.com or child2.site1.com then the authentication wouldn't stick. You could see the same thing on a parent portal. For example, go to www.datasprings.com and then sign in, then go to datasprings.com (now www) and you will see you need to authentication again. Somewhat annoying but currently how DNN authentication and ASP.NET authentication works.



    -Chad
    AdamUser is Offline
    river guide
    river guide
    Posts:116
    Avatar

    --
    07-21-2010 10:48 PM
    Hi Chad, thanks for the quality support, replacing the procedure fixed the issue. After looking at the old procedure I found that one of the inserts was missing the objectqualifier (insert into UserRoles)(final insert) , guess this needs to go in the next version. Anyway all fixed, thanks again.

    Adam
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi