Products

Solutions

Resources

Partners

Community

About

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 ...Configuring for Strong Password UsageConfiguring for Strong Password Usage
Previous
 
Next
New Post
4/2/2007 3:35 PM
 
Let’s suppose you have version Dnn 4.x installed and you want to force users to use strong passwords when registering and you want to modify the login attempt threshold to a number other than the default of 5 attempts. I looked everywhere in the Dotnetnuke documentation and searched the forums, but couldn’t find anything. The webconfig file has a comment for passwordAttemptThreshold but when I added this to the AspNetSqlMembershipProvider key I discovered it wasn’t supported.
After a bit of research I discovered the solution.  
To change the passwordAttemptThreshold add the maxInvalidPasswordAttempts attribute to the AspNetSqlMembershipProvider key and use the passwordStrengthRegularExpression attribute with a regular expression of choice to strengthen passwords.
 
Here is an example of a config setting that will change the maximum loggin attempts to three and will require that password contain at least one uppercase letter, one lowercase letter, and one number. The minimum password length is also set to 7.
Hope this helps.
 
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" maxInvalidPasswordAttempts="3" passwordStrengthRegularExpression="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$" connectionStringName="SiteSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" requiresUniqueEmail="false" passwordFormat="Encrypted" applicationName="DotNetNuke" description="Stores and retrieves membership data from the local Microsoft SQL Server database"/>
 
 
 
New Post
4/19/2007 5:00 PM
 

This is exactly what I was jsut looking for, thank you for this valuable information.

 
New Post
5/9/2007 11:20 PM
 

You seem like you have already put alot of work in to this. I am needing to make a change but it will not work.

I need change the minRequiredPasswordLength="7" to minRequiredPasswordLength="4"

I am using Active Directory and that works with my other domain accounts but when I change it I get an error message twice...

Any ideas? 

Login Failed, remember that Passwords are case sensitive


Login Failed, remember that Passwords are case sensitive

 
New Post
8/24/2007 4:14 PM
 

Same problem here.  Changing it to "4" in the web.config does nothing.  Anybody?

 
New Post
8/24/2007 4:27 PM
 

okay, I figured it out.  You can't change it in the web.config by editing the config file.  In the config file the minRequiredPasswordLength field shows ="int" if you change it to say "4" and restart IIS it doesn't change.  However if you go into IIS Manager and edit the web.config from the ASP.NET --> Authentication --> Manage Providers - you may edit it there, and restart IIS and it works like a dream.

HTH

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Configuring for Strong Password UsageConfiguring for Strong Password Usage


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