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 ...Lock all passwords for users?Lock all passwords for users?
Previous
 
Next
New Post
3/11/2009 9:05 AM
 

I would like to prevent users from changing their passwords. Is there a way to lock all passwords so only administrators can change them?

We have many users who we will setup in DotNetNuke who also have accounts for another system so we want those passwords to be the same.  In the other system they cannot change their password either.  I looked and didn't find a place to lock the password.

I'm running:


04.09.02

Thanks!

 
New Post
3/12/2009 4:41 PM
 

Hi Keith,

The underlying ASP.NET membership provider does not allow for permanent locking of passwords in this manner.  Your best recourse is to write a custom provider that overrides and swallows password-changing functionality (this is a moderately difficult development task).  A quicker, but dirtier solution would be to add a trigger to the relevant aspnet_* membership table that aborts any change to the password field (or alter the ascx UI itself).  This wouldn't be very upgrade friendly, however, and I am always loathe to suggest such a solution.

It is possible that there exists a third-party solution that effectuates this sort of behavior, as well.

Hope this helps!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
3/14/2009 4:51 PM
Accepted Answer 

Then

</CODE>

Keith Bolstein wrote
 

I would like to prevent users from changing their passwords. Is there a way to lock all passwords so only administrators can change them?

We have many users who we will setup in DotNetNuke who also have accounts for another system so we want those passwords to be the same.  In the other system they cannot change their password either.  I looked and didn't find a place to lock the password.

I'm running:


04.09.02

Thanks!

You could make a small change to the DNN CORE Password.ascx.vb to hide the password panel.  You find the passwordascx.vb file under [DNN Web Root]/admin/Users.  This change will be overwritten when you upgrade DNN.

Below is example code:


        Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
            If IsAdmin Then
                pnlChange.Visible = True
            Else
                pnlChange.Visible = False
            End If
        End Sub

 

 


Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
New Post
3/16/2009 10:30 AM
 

Thank you, that did exactly what I needed.  Also, thanks for the reminding me that it will get overwritten with updates so I can put it back in after these.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Lock all passwords for users?Lock all passwords for users?


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