From: Martin Zobel-Helas Date: Wed, 13 Jun 2012 20:45:51 +0000 (+0200) Subject: Merge branch 'master' of git+ssh://db.debian.org/git/userdir-ldap-cgi X-Git-Tag: release-0.3.40~66 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap-cgi.git;a=commitdiff_plain;h=8f5508b9c16b83dd323f0bf8eabdfd67b979eb0e;hp=8572ceaaa11c6282001d267684ed2fdbb653a198 Merge branch 'master' of git+ssh://db.debian.org/git/userdir-ldap-cgi * 'master' of git+ssh://db.debian.org/git/userdir-ldap-cgi: And a changelog entry for Nick's change Use the changes@ address consistently in preference to change@ Try a different CreateCryptSalt approach Conflicts: debian/changelog --- diff --git a/Util.pm b/Util.pm index 2b230ab..27060d7 100644 --- a/Util.pm +++ b/Util.pm @@ -33,27 +33,26 @@ sub CreateKey { } sub CreateCryptSalt { + # CreateCryptSalt(type = 0, skip_header = 0) # this can create either a DES type salt or a MD5 salt - # 0 for DES, 1 for MD5 salt and 2 for apache MD5 salt - my $type = shift; + # 0 for DES, 1 for MD5 salt + # if skip_header is 0, does not add $1$ for md5 salts. + my $md5 = shift; # do we want a MD5 salt? + my $no_crypttype_header = shift; my $validstr = './0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; my @valid = split(//,$validstr); my ($in, $out); - - my $cryptsaltlen = 2; - if (($type == 1)||($type == 2)) { - $cryptsaltlen = 8; - } - + + my $cryptsaltlen = ($md5 ? 8 : 2); + open (F, " Fri, 09 Mar 2012 10:03:46 +0100 + [ Nick Mathewson ] + * Use the changes@ address consistently in preference to change@. + + -- Peter Palfrader Sun, 10 Jun 2012 22:03:14 +0200 userdir-ldap-cgi (0.3.36) unstable; urgency=low diff --git a/html/forward.wml b/html/forward.wml index b0bc436..a2b6375 100644 --- a/html/forward.wml +++ b/html/forward.wml @@ -29,7 +29,7 @@ not create a forward file then that machine will spool the mail to

The email forwarding can be easily reconfigured using GnuPG:

-echo "emailforward: foo@bar.com" | gpg --clearsign | mail change@db.debian.org
+echo "emailforward: foo@bar.com" | gpg --clearsign | mail changes@db.debian.org
 
or by visiting db.debian.org diff --git a/update.cgi b/update.cgi index 02d3a5b..f1f82f9 100755 --- a/update.cgi +++ b/update.cgi @@ -249,7 +249,7 @@ if (!($query->param('doupdate'))) { } # create a md5 crypted password - $newwebpassword = apache_md5_crypt($query->param('newwebpass'), &Util::CreateCryptSalt(2)); + $newwebpassword = apache_md5_crypt($query->param('newwebpass'), &Util::CreateCryptSalt(1, 1)); &Util::LDAPUpdate($ldap, $editdn, 'webPassword', $newwebpassword); }