DNN Sub Portal User Authentication

Last post 09-11-2004, 10:30 PM by jloyola. 7 replies.
Sort Posts: Previous Next
  •  08-17-2004, 1:09 PM 1523

    DNN Sub Portal User Authentication

    Hi.

     
    I have sub portals with differents users in that portals. I configured Chat OK and anonimous users chat Ok too. But when a User log in to the sub-portal Chat sends a message: "Can't find account information".
     
    Is there any restriction to users form sub-portals domain?
     
    Thanks
     
    Juan
     
  •  08-17-2004, 1:19 PM 1524 in reply to 1523

    Re: DNN Sub Portal User Authentication

    Juan,

     
    We don't have any restriction to the sub-portals domain.
     
    Which version of dotnetnuke are you using?
     
    Have you got it works with your main site?
     
    When you talk about the subportal? Do you mean the following structure?
     
    abc.com
    abc.com/portal1
    abc.com/portal2
     
    or
     
    abc.com
    domain1.abc.com
    domain2.abc.com
     
     
    Keep me posted.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-17-2004, 2:44 PM 1529 in reply to 1524

    Re: DNN Sub Portal User Authentication

    Hi.

    The portal structure is:
     
    and subportal
     
    I registered an user for the subportal and log in with that user. When I tried to Chat I received "Login failed. Can't find account information".
    Then I registered the same user in the portal and log in with that user in the suportal (user already created) and the Chat worked OK, using the account information.
     
    I use DNN 2.1.2 and I know every portal or subportal have a diferent ID in the database. I think you use the domain name to get the portal ID to find users.
     
    Thanks.
     
    Juan
     
     
     
  •  08-18-2004, 9:23 AM 1545 in reply to 1529

    Re: DNN Sub Portal User Authentication

    Hi  Juan :

     
    Maybe the problem is that in the older version , the CuteChat cache the account list for performance , for 10 minutes .
     
    So if a user registered , the CuteChat wound know him immediately.
     
    We have changed that to 10 seconds in the newest version . We are planning upload it these days .
     
    Regards, Terry .
  •  08-18-2004, 10:18 AM 1546 in reply to 1545

    Re: DNN Sub Portal User Authentication

    Thanks.

     
    I don't know if you understand me, sorry for my English. The thing is that users in the portal www.domain.com are different from the users registered in subdomain www.domain.com/subdomain. So when a registered user Log in to the subdomain Cutechat can't find him. If the same user also register for domain portal and log in to the subdomain, CuteChat find him now. We need to have diferent users in subdomain because they are isolated for educational purposes.
     
    I don't know if CuteChat search for users with the domain portal ID, in that case the subdomain have a diferent portal ID, or search for users in the whole database.
     
     
    Thanks.
     
    I don't know how many hours we have in diference, here now is 10:20AM (Atlantic Time USA, Santiago Chile).
     
     
  •  08-18-2004, 11:20 AM 1548 in reply to 1546

    Re: DNN Sub Portal User Authentication

    jloyola,

     
    Sorry for the late response. We are working/testing this issue since last night.  It's 11:13am (Eastern time ). We are from Ontatio, Canada.
     
    For the dotnetnuke sub portal problem , I think it's a bug of DotNetNuke.
     
    In global.asax.vb , It's auto singout if portalid not found .
     
    I commented this code , and the cutechat run OK now in sub portal :

    'If _portalSettings.PortalId <> Int32.Parse(PortalCookie.UserData) Then

    ' ' expire cookies if portal has changed

    ' Response.Cookies("portalid").Value = Nothing

    ' Response.Cookies("portalid").Path = "/"

    ' Response.Cookies("portalid").Expires = DateTime.Now.AddYears(-30)

    ' Response.Cookies("portalroles").Value = Nothing

    ' Response.Cookies("portalroles").Path = "/"

    ' Response.Cookies("portalroles").Expires = DateTime.Now.AddYears(-30)

    ' ' check if user is valid for new portal

    ' Dim objUsers As New UserController

    ' Dim objUser As UserInfo = objUsers.GetUser(_portalSettings.PortalId, Int32.Parse(Context.User.Identity.Name))

    ' If objUser Is Nothing Then

    ' ' log user out

    ' FormsAuthentication.SignOut()

    ' ' Redirect browser back to home page

    ' Response.Redirect(Request.RawUrl, True)

    ' Exit Sub

    ' End If

    'End If

     

    and:
     

    '' Log User Off from Cookie Authentication System

    'FormsAuthentication.SignOut()

    '' expire cookies

    'Response.Cookies("portalid").Value = Nothing

    'Response.Cookies("portalid").Path = "/"

    'Response.Cookies("portalid").Expires = DateTime.Now.AddYears(-30)

    'Response.Cookies("portalroles").Value = Nothing

    'Response.Cookies("portalroles").Path = "/"

    'Response.Cookies("portalroles").Expires = DateTime.Now.AddYears(-30)

     

    ----------

    But , I don't know what the impact is if that codes are commented!
     
    We are still investigating the problem and hope we can find a solution soon.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-18-2004, 11:49 AM 1549 in reply to 1548

    Re: DNN Sub Portal User Authentication

     
    Terry found a soluton and we made the test and it works.
     
    I highlighted the code we added as followings:

    'If the url contain the CuteChat, we don't want to dotnetnuke do the sighout.

    If Request.Path.ToLower().IndexOf("/cutechat/") = -1 Then

        ' expire cookies if portal has changed

        Response.Cookies("portalid").Value = Nothing

        Response.Cookies("portalid").Path = "/"

        Response.Cookies("portalid").Expires = DateTime.Now.AddYears(-30)

        Response.Cookies("portalroles").Value = Nothing

        Response.Cookies("portalroles").Path = "/"

        Response.Cookies("portalroles").Expires = DateTime.Now.AddYears(-30)

        ' check if user is valid for new portal

        Dim objUsers As New UserController

        Dim objUser As UserInfo = objUsers.GetUser(_portalSettings.PortalId, Int32.Parse(Context.User.Identity.Name))

        If objUser Is Nothing Then

            ' log user out

            FormsAuthentication.SignOut()

            ' Redirect browser back to home page

            Response.Redirect(Request.RawUrl, True)

            Exit Sub

        End If

    End If

     

    and:
     

    'If the url contain the CuteChat, we don't want to dotnetnuke do the sighout.

    If Request.Path.ToLower().IndexOf("/cutechat/") = -1 Then

        ' Log User Off from Cookie Authentication System

         FormsAuthentication.SignOut()

         ' expire cookies

        Response.Cookies("portalid").Value = Nothing

        Response.Cookies("portalid").Path = "/"

        Response.Cookies("portalid").Expires = DateTime.Now.AddYears(-30)

        Response.Cookies("portalroles").Value = Nothing

        Response.Cookies("portalroles").Path = "/"

        Response.Cookies("portalroles").Expires = DateTime.Now.AddYears(-30)

    End If

     
    Please give it try and keep us posted.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  09-11-2004, 10:30 PM 1779 in reply to 1549

    Re: DNN Sub Portal User Authentication

    It works, thanks.

     
    We are evaluating your chat sw. We had a meeting chat last week with 30 users and worked ok. We have different subportals for different class ranges. In every portal I created a chat room but when we "select room" the list shows all room created in all portals. If a student is registered for a subportal but is not registered in other subportal he can enter any room.
     
    I think the room list must show only the rooms created in that portal so the users in that portal could enter those rooms only.
     
    Thanks.
     
    Juan
View as RSS news feed in XML