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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...HELP PLEASE - Unauthenticated User RoleHELP PLEASE - Unauthenticated User Role
Previous
 
Next
New Post
11/5/2007 1:46 AM
 

I am using a third party login module and have a custom login page.  Everything was working fine until I decided to take a shortcut reassigning page permissions.  The custom login page is subordinate to the Home page and both were visible to 'Unauthenticated' users and everything worked fine until I changed permissions on the home page to a  'User' and then propogated that setting to subordinate pages.  Consequently, when I go to 'Login' because only that 'User' can see the login page I get a 'Cannot display the webpage error'; something of a Catch 22 situation.

I have gone into the database and identified the TabID of the 'Login' page in the 'Tabs' table and have then gone to the 'TabPermission' page and for that TabID I have tried both settings shown below attempting to gain access to the Login' one again; neither works.  The 'Home' page displays irrespective of how the 'View' permission is set.

TabPermissionID TabID PermissionID AllowAccess RoleID UserID
1179 36 3 True -1 NULL
and          
1179 36 3 True NULL NULL

Can anyone tell me how I might get the 'Login' page to display for Unauthenticated users again, I at a total loss?

Regards
Taz

 
New Post
11/5/2007 8:23 AM
 

Couple of suggestions:

1. Login as Admin/Host and change the home page permissions back to what they were and then propogate the changes.

2. Login as Admin/Host got to the Admin|Pages page select the login page and from there modify the page settings.

HTH

Antony

 
New Post
11/6/2007 4:17 AM
 

Thanks Antony but the issue is that I cannot open the Login page because I must first be logged in; that's what I meant by a Catch 22 situation (perhaps my age is showing and you haven't seen Catch 22 the movie). 

Any recovery must be done from the database. 

I have set up two local DNN instances and synchronised them so that they are identical including a custom Login page using Redgate Data Compare.  I then reproduced what I did on my live site in one of those instances and recompared the databases.  The only changes Data Compare identified occurred in the TabPermission table so I manually reversed those changes except for the record number which I couldn't change; it still didn't work.  I then resynchronised the second instance of DNN so that record IDs were reset to original as well and then for some reason that I haven't fathomed yet both DNN instances refused to work; at this stage I am suspecting finger trouble so I am still researching.

The interesting thing that I can't fathom at this stage is why when I reset the data to the original configuration it still didn't work; the Record IDs shouldn't make a difference unless there is some relationship which ties them to another table.  However, the Redgate software didn't identify that relationship.  I'll run the Redgate Dependency Tracker over the database and see what it shows in the way of relationships, perhaps that will give me some hints.

Anyone with other ideas please feel free to jump in with suggestions.

Regards
Taz

 
New Post
11/6/2007 8:21 AM
 

OK the issue is not that I haven't been resetting the database settings correctly, it is related to clearing the DNN cache.  The problem is that the database changes do not propagate to the DNN website because the cache takes priority.  The easiest way of removing the custom Login page is to change the 'LoginTabId' field in the 'Portals' table from the TabId of the custom page and reset it to 'Null'.  If the DNN cache is then cleared the DNN instance will act according to the database setting, I am able to log in  and then I can reset the custom login page to unauthenticated users.

The issue then becomes how do I clear the DNN cache when I can't log in to get to the Site Settings page to use Clear Cache; I tried deleting the files at the /Portals/0/cache location and that didn't work and the /Portals/_Default/cache didn't contain any cache type files. 

So what else was there; restarting the website (didn't work) but recycling the application pool did.  So the answer was reset the 'LoginTabId' field in the 'Portals' table to NULL and recycle the application pool.  Not easy when you are on paid hosting but fortunately this is on an internal company server.

Thanks to Antony for his help, it may not have been the solution but my description wasn't the easiest to understand either perhaps.  Anyway maybe my wanderings might be useful to someone else out there; I can't be the only one who gets attacked by Murphy on regular intervals.

Regards
Taz

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...HELP PLEASE - Unauthenticated User RoleHELP PLEASE - Unauthenticated User Role


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