diff options
| author | bwarsaw | 2001-07-19 00:05:14 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-07-19 00:05:14 +0000 |
| commit | 350c7035af89ed08673a3d8e167ac8ee4e1033c4 (patch) | |
| tree | c9ab7fbc8edff55bdcd51805fb700d0f5dde7a8a /Mailman/SecurityManager.py | |
| parent | 08ca4b0be278057cf6a499feda5bce35f931023a (diff) | |
| download | mailman-350c7035af89ed08673a3d8e167ac8ee4e1033c4.tar.gz mailman-350c7035af89ed08673a3d8e167ac8ee4e1033c4.tar.zst mailman-350c7035af89ed08673a3d8e167ac8ee4e1033c4.zip | |
Diffstat (limited to 'Mailman/SecurityManager.py')
| -rw-r--r-- | Mailman/SecurityManager.py | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/Mailman/SecurityManager.py b/Mailman/SecurityManager.py index 6a328fd5f..f2fe8f04e 100644 --- a/Mailman/SecurityManager.py +++ b/Mailman/SecurityManager.py @@ -70,10 +70,11 @@ from Mailman.Logging.Syslog import syslog class SecurityManager: - def InitVars(self, crypted_password): - # Configurable, however we don't pass these back in GetConfigInfo - # because it's a special case as it requires confirmation to change. - self.password = crypted_password + def InitVars(self): + # We used to set self.password here, from a crypted_password argument, + # but that's been removed when we generalized the mixin architecture. + # self.password is really a SecurityManager attribute, but it's set in + # MailList.InitVars(). self.mod_password = None # Non configurable self.passwords = {} @@ -95,13 +96,8 @@ class SecurityManager: if user is None: # A bad system error raise TypeError, 'No user supplied for AuthUser context' - addr = self.FindUser(user) - if addr is None: - raise Errors.MMNotAMemberError - secret = self.passwords.get(addr) - if secret is None: - raise Errors.MMBadUserError - key += 'user:%s' % addr + secret = self.getMemberPassword(user) + key += 'user:%s' % user elif authcontext == mm_cfg.AuthListModerator: secret = self.mod_password key += 'moderator' @@ -306,11 +302,3 @@ class SecurityManager: return 0 # Authenticated! return 1 - - def ChangeUserPassword(self, user, newpw, confirm): - addr = self.FindUser(user) - if not addr: - raise Errors.MMNotAMemberError - if newpw <> confirm: - raise Errors.MMPasswordsMustMatch - self.passwords[addr] = newpw |
