diff options
author | bwarsaw <> | 2004-12-30 20:49:31 +0000 |
---|---|---|
committer | bwarsaw <> | 2004-12-30 20:49:31 +0000 |
commit | 292e9a631ebec94138bd4f3b1f5a1a9faea9cb38 (patch) | |
tree | 1a48bcb9e9fbcce81a636e0af2f97ee57cf7f82c /bin/change_pw | |
parent | bef8ca35019a13a4973086e7bf60d52e815763da (diff) | |
download | mailman2-292e9a631ebec94138bd4f3b1f5a1a9faea9cb38.tar.gz mailman2-292e9a631ebec94138bd4f3b1f5a1a9faea9cb38.tar.xz mailman2-292e9a631ebec94138bd4f3b1f5a1a9faea9cb38.zip |
From the NEWS file:
- Added the ability for Mailman generated passwords (both member and list
admin) to be more cryptographically secure. See new configuration
variables USER_FRIENDLY_PASSWORDS, MEMBER_PASSWORD_LENGTH, and
ADMIN_PASSWORD_LENGTH. Also added a new bin/withlist script called
reset_pw which can be used to reset all member passwords. Passwords
generated by Mailman are now 8 characters by default for members, and 10
characters for list administrators.
Diffstat (limited to 'bin/change_pw')
-rw-r--r-- | bin/change_pw | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/bin/change_pw b/bin/change_pw index 0e365e08..20e821ca 100644 --- a/bin/change_pw +++ b/bin/change_pw @@ -1,19 +1,19 @@ #! @PYTHON@ # -# Copyright (C) 2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2004 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software +# along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. """Change a list's password. @@ -123,7 +123,7 @@ def main(): domains = {} password = None quiet = 0 - + for opt, arg in opts: if opt in ('-h', '--help'): usage(0) @@ -142,7 +142,7 @@ def main(): if args: strargs = SPACE.join(args) usage(1, _('Bad arguments: %(strargs)s')) - + if password is not None: if not password: usage(1, _('Empty list passwords are not allowed')) @@ -164,7 +164,8 @@ def main(): mlist.Lock() try: if password is None: - randompw = Utils.MakeRandomPassword(8) + randompw = Utils.MakeRandomPassword( + mm_cfg.ADMIN_PASSWORD_LENGTH) shapassword = sha.new(randompw).hexdigest() notifypassword = randompw else: |