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 ForumsAuthenticationAuthenticationAD provider performing slow / timing outAD provider performing slow / timing out
Previous
 
Next
New Post
7/30/2008 7:34 PM
 

We have recently setup a DNN site (v04.08.01) for our company intranet and uses AD authentication ~500 users.
We used both the DNN form authenticator(for host/admin login) and AD authentication (v01.00.03)
It all worked prefectly for a while, user is automatically authenticated when entering the site.

However we are starting to experienceing issues with users getting logged out and stuck on the login screen.
My first question, what may have caused this logout (session expire?) is it possible to re-authenticate them automatically without re-directing to the login page.

Anyway, I manage to work around the previous issue by code a javascript re-direct to WindowsSignin.aspx on the login page ( which I dont think is ideal )

Then we are starting to experienceing the second problem, users are finding it very slow (some times up to 30seconds) when initially loading up the page ( AD authentication ).
Some users are even timing out on WindowsSignin.aspx (screenshot 1). In DNN event log a thread aborted exception was received.

I searched all over the forum and did not found any thread on performance issue regarding to AD provider.
My second question, is can anyone suggest any possible cause/solution to this AD provider timing out issue.

Thanks

 
New Post
7/31/2008 1:42 AM
 

One of the most often heard requests before I took over the project and shortly after was that people wanted nested groups searched (User is a member of the AD Group Sales and Sales is a member of the AD Group Staff so when the roles are synchronized the user should be added to the Sales DNN Security Role). When I implemented that I didn't do it in the ideal way as it was take the DNN Role and then searching the AD for A) was the user a member of that group and B) were there any nested groups and was the user a member of that group. So to use my earlier example it would search for Staff and then see that Sales was part of the staff group and then search Staff to see if the user was a member. It seems simple enough but if there are a lot of groups and nested groups then it's going to take time and I think what's happening in your case is it's timing out and causing these problems.

So, there's two things you can try. One is to disable Synchronize Roles and see if the problem goes away (I really recommend trying this before trying the second option) and the second option is to try the 01.00.04 beta (http://dnn.gmss.org) which is the same version as I've submitted to the DNN Release Tracker. I changed the code significantly for the AddUserRoles. Along with the problem mentioned above the code there was a lot of SQL traffic to the database especially if there were a lot of DNN roles setup (the way the roles were synchronizing is that the user was getting deleted out of any roles they belonged to and then re-added).

What I did for the .04 beta was the following: Make a call to the database to get an arraylist of all the DNN Roles on the portal; make a call to the database to get an arraylist of the roles the user belongs to; make a call to the Active Directory to get an arraylist of the user's MemberOf property (MemberOf contains the roles a user belongs to and any parent roles of those roles). Then a comparison is done through the arraylists and a user is deleted from only those DNN Security Roles they no longer belong to and added only to those Roles that they need to be added to. I haven't done an actual time comparison between the two versions but I have noticed a significant change on our production server.

As for people getting logged out and using a javascript redirect to WindowsSignin. Well, hopefully we can track down the cause of the problem (if it's not what I think it is above) What I've done is just used a Text/HTML module on the pages that a user must be logged in to see and provided a link to the WindowsSignin.aspx (example at http://www.bus.nait.ca/main/Resources/IDrive.aspx). This isn't ideal either but users sometimes click Logout and this is a quick way to get them logged back in.

 
New Post
7/31/2008 5:16 PM
 

Thank you very much.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAD provider performing slow / timing outAD provider performing slow / timing out


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