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 ForumsAuthenticationAuthenticationChild Portal AD not working correctlyChild Portal AD not working correctly
Previous
 
Next
New Post
6/11/2007 4:07 PM
 

We are in the process of rolling out a new corporate intranet on DNN.  It is currently running DNN v4.03.05, .NET 2.0, W2k3, IIS6.  There is 1 Parent portal and 2 child portals (more child portals to come).

We are trying to set the portal up in Windows Auth mode, but also need a handful of users to have separate accounts (created directly in DNN) that they will use to log in to perform content management.  For this reason, we have <authentication mode="Forms">  <forms name=".DOTNETNUKE" protection="All" timeout="600" cookieless="UseCookies" /> in web.config.  We have identity impersonate turned off.  We have been able to access the Authentication module on the Admin menu and synch all three portals to the AD.  We have the DNN root folder, and the windowssignin.aspx page set to Windows Authentication in IIS.

Up until recently we had been working purely on content management functions, by coming to the portal and logging in using a userid created directly in DNN (meaning not an AD account).  Again, this has been done to allow our content managers to easily get into admin mode to update the site (without having to do a complete network login) and back out again so they can use the site in normal mode (without seeing all the modules, some of which are filtered by security when they are using their normal network login).

We are in the process of trying to roll the intranet out to a group of test users.  We initially had some problems, where users were not being recognized when they accessed the portal.  Some of the users were able to login using a fully qualified (domain\username) login name, and see the content expected, filtered by security settings. 

We came in this Monday to find that one of the child portals was unaccessible.  The log shows the message of:

AssemblyVersion: 04.03.05
PortalID: 1
PortalName: CS Intranet
UserID: -1
UserName:
ActiveTabID: 72
ActiveTabName: CS Home
RawURL: /dnn/cs/Default.aspx
AbsoluteURL: /dnn/cs/Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: be9e886f-45ea-4f9f-a1ad-91335e48a8aa
InnerException: Unhandled Error:
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Security.Authentication.Configuration..ctor
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Security.Authentication.Configuration..ctor() at DotNetNuke.Security.Authentication.Configuration.GetConfig() at DotNetNuke.HttpModules.AuthenticationModule.OnAuthenticateRequest(Object s, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
Source:
Server Name: CHPSQL01

This child portal was completely inaccessible, even by the host account.  After a lot of google research, I finally commented out the authentication http module in web.config.  The child portal was instantly accessible again and users were able to login with their DNN content mgr account to get to work.  No network users were able to login to this portal however.  When they try to login with a domain account, they get an exception about an undefined object.  The log viewer only shows the attempted login, it does not show the complete error.  Here is where things seem to get very strange.  With the auth http module commented out, we are still able to synch the parent portal and one child portal with the AD.  We are also able to request the windowssignin page and are authenticated.  When we try to access the Authentication module in the "problem child" portal, we get the error that "Windows Authentication is currently unavailable."

It seems very strange that this child portal behaves so differently from the other two.  The bottom line is that we need windows authentication working for all three portals.  It is not even a big deal if the users have to manually specify their network account to get logged in.  Currently we can't make the one child portal, the most important of the three, work properly.

Any help will be greatly appreciated!

 
New Post
6/11/2007 11:57 PM
 

I'm surprised that you had it working at all!  Like I just mentioned in another thread, DNN ties each user account to the portal that it originally connects to.  That makes it difficult to get multiple portals working with one account.

On a side note, I've had two installs of 4.5.x suddenly have corrupted user profiles.  Try deleting and re-creating the account you're having problems with and see if that clears it up.

 

 
New Post
6/12/2007 9:29 AM
 

Thanks for the quick response.  Are you saying that I am having this problem because I have implemented child portals?  Should I implement each as a parent portal and allow them to link to each other?  We need to setup portals for various departments, so that each department can have the equivalent of admin rights in their portal.  Users of the intranet may need resources from various portals, but ideally will only have to login once if at all.  What will be the best way to implement this given the way AD works?

 
New Post
6/12/2007 11:55 AM
 

That is a good question, and I don't have a good answer for you on it...  I'll wait for Mike to return (he will be back in a day or two) to give a better answer on this, as he knows the code a heck of a lot better than I do. 

Part of the problem I was running into was that I tried to implement this via mixed-mode, and that is pretty much impossible with child portals due to the URL structures. Parent portals are possible, because they use the same paths, but then I ran into the problem with each user being assigned to one portal.

 

 
New Post
6/12/2007 12:55 PM
 

I am still doing some testing on this, but here is what I have found out.  When I hit the parent (first portal created by the DNN install) portal, I am able to click a link I have created to the WindowsSignin page and I am authenticated.  As soon as I go to a child portal, I am unable to login.  There is an error message about "object reference not set to an instance of the object" message that appears on the signin page.  I looked in the database and found that my userid did not have records in the UserPortals table for the child portal I am trying to access.  I added a record to UserPortals for my userid and things now work as I expect.  Once I login (using the link to windowssignin) I am able to move between the portals without having to re-login.

If this proves to be reliable, it almost seems like a potential modification to the AD core.  When a user authenticates, the AD code should confirm the presence of UserPortal records for this user for all defined portals in the DNN instance, creating any records that do not exist.  An alternative would be to expand the security management to have a portal dimension, so that defined users could be granted rights to portals on a case by case basis. 

I will report back my findings once I have done some additional tests with other users.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationChild Portal AD not working correctlyChild Portal AD not working correctly


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