summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-02-17 01:01:43 +0100
committermkanat%kerio.com <>2005-02-17 01:01:43 +0100
commit7b1ba221b42fbb27540207a8af253daba75d25f8 (patch)
tree1540ff2af51e771a52aad57cc35603e5336d90fe /checksetup.pl
parent8c3f0e1aeaddedd8a9b377ed4ff9a8a31b917600 (diff)
downloadbugzilla-7b1ba221b42fbb27540207a8af253daba75d25f8.tar.gz
bugzilla-7b1ba221b42fbb27540207a8af253daba75d25f8.tar.xz
Bug 225973: Fix logins on systems that use Blorfish for crypt(). r=wurblzap, a=myk
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl12
1 files changed, 8 insertions, 4 deletions
diff --git a/checksetup.pl b/checksetup.pl
index c2a111b63..19b9e4fd5 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -1919,7 +1919,7 @@ $table{products} =
$table{profiles} =
'userid mediumint not null auto_increment primary key,
login_name varchar(255) not null,
- cryptpassword varchar(34),
+ cryptpassword varchar(128),
realname varchar(255),
disabledtext mediumtext not null,
mybugslink tinyint not null default 1,
@@ -3196,6 +3196,12 @@ if (-d 'shadow') {
DropField("profiles", "emailnotification");
DropField("profiles", "newemailtech");
+
+# 2003-11-19; chicks@chicks.net; bug 225973: fix field size to accomodate
+# wider algorithms such as Blowfish. Note that this needs to be run
+# before recrypting passwords in the following block.
+ChangeFieldType('profiles', 'cryptpassword', 'varchar(128)');
+
# 2001-06-12; myk@mozilla.org; bugs 74032, 77473:
# Recrypt passwords using Perl &crypt instead of the mysql equivalent
# and delete plaintext passwords from the database.
@@ -3226,10 +3232,8 @@ ENDTEXT
}
print "$i... Done.\n";
- # Drop the plaintext password field and resize the cryptpassword field.
+ # Drop the plaintext password field.
DropField('profiles', 'password');
- ChangeFieldType('profiles', 'cryptpassword', 'varchar(34)');
-
}
#