Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Authentication ...  AD provider performing slow / timing out
Previous Previous
 
Next Next
New Post 7/30/2008 5:34 PM
User is offline shuang
1 posts
10th Ranked


AD provider performing slow / timing out 

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/30/2008 11:42 PM
User is offline Mike Horton
3163 posts
dnn.gmss.org
4th Ranked






Re: AD provider performing slow / timing out 

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 3:16 PM
User is offline Toby
1 posts
10th Ranked


Re: AD provider performing slow / timing out 

Thank you very much.

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Authentication ...  AD provider performing slow / timing out
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com
Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com
SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP