aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2001-02-26 17:13:49 +0800
committerdemon <demon@FreeBSD.org>2001-02-26 17:13:49 +0800
commitd60ef3dbcecd1250fa574825d4a044cc01aee707 (patch)
tree4533c62c8d139a52173f7225eea7d72568f2db0b /mail
parent277f36665a60df89ed9ead02109cd066cdd5c34c (diff)
downloadfreebsd-ports-gnome-d60ef3dbcecd1250fa574825d4a044cc01aee707.tar.gz
freebsd-ports-gnome-d60ef3dbcecd1250fa574825d4a044cc01aee707.tar.zst
freebsd-ports-gnome-d60ef3dbcecd1250fa574825d4a044cc01aee707.zip
Teach mailman how to work both with MD5 and DES passwords.
This problem is already fixed in mailman CVS. Bump PORTREVISION. Submitted by: Kresimir Kumericki <kkumer@phy.hr>
Diffstat (limited to 'mail')
-rw-r--r--mail/mailman/Makefile1
-rw-r--r--mail/mailman/files/patch-aa26
2 files changed, 27 insertions, 0 deletions
diff --git a/mail/mailman/Makefile b/mail/mailman/Makefile
index afa7bcdcda70..2fafb7c3f46e 100644
--- a/mail/mailman/Makefile
+++ b/mail/mailman/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mailman
PORTVERSION= 2.0.1
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mailman
diff --git a/mail/mailman/files/patch-aa b/mail/mailman/files/patch-aa
new file mode 100644
index 000000000000..ec6b5df8cca3
--- /dev/null
+++ b/mail/mailman/files/patch-aa
@@ -0,0 +1,26 @@
+*** Mailman/Utils.py.orig Thu Nov 16 22:43:11 2000
+--- Mailman/Utils.py Thu Feb 15 19:42:10 2001
+***************
+*** 407,413 ****
+ f = open(mm_cfg.SITE_PW_FILE)
+ pw2 = f.read()
+ f.close()
+! return Crypt.crypt(pw1, pw2[:2]) == pw2
+ # There probably is no site admin password if there was an exception
+ except IOError:
+ return 0
+--- 407,420 ----
+ f = open(mm_cfg.SITE_PW_FILE)
+ pw2 = f.read()
+ f.close()
+! # First we check for the Modular Crypt Format
+! mcf = re.match(r'\$\d\$(\w+)\$', pw2)
+! if mcf: # Is it MCF?
+! salt=mcf.group(1)
+! else: # No, it's traditional DES.
+! salt=pw2[:2]
+!
+! return Crypt.crypt(pw1, salt) == pw2
+ # There probably is no site admin password if there was an exception
+ except IOError:
+ return 0 \ No newline at end of file