mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
dbmmanage doesn't recognize the $1$ md5 prefix used by FreeBSD when
checking a password using "dbmmanage passwdfile check". This patch fixes this. (no need to bump PORTVERSION) Submitted by: Palle Girgensohn
This commit is contained in:
parent
2c2442a1b9
commit
39d475d92f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126490
11
www/apache13-modssl/files/patch-dbmmanage
Normal file
11
www/apache13-modssl/files/patch-dbmmanage
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/support/dbmmanage~ Tue Oct 10 06:23:58 2000
|
||||
+++ src/support/dbmmanage Sun Dec 3 00:45:08 2000
|
||||
@@ -338,7 +338,7 @@
|
||||
} elsif (substr($chkpass, 0, 5) eq '{SHA}') {
|
||||
need_sha1_crypt;
|
||||
$crypt_method = "sha1";
|
||||
- } elsif (length($chkpass) == 13 && $chkpass ne $testpass) {
|
||||
+ } elsif ((length($chkpass) == 13 && $chkpass ne $testpass) || ($chkpass =~ m/^\$[0-9]\$/)) {
|
||||
$crypt_method = "crypt";
|
||||
} else {
|
||||
$crypt_method = "plain";
|
Loading…
Reference in New Issue
Block a user