aboutsummaryrefslogtreecommitdiffstats
path: root/community/ltb-project-ssp/ssp-0.8-add-crypt-algorithm-option.patch
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2018-12-25 16:58:15 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-12-27 12:40:27 +0000
commita506031ab536154f83c0162f9c30cdee32282800 (patch)
treeb4ffd1eec1c8615a9171ef14cf365d730e8c1464 /community/ltb-project-ssp/ssp-0.8-add-crypt-algorithm-option.patch
parent6e9db44cd32467d9ea613fe6d4df21aa009f6388 (diff)
downloadaports-a506031ab536154f83c0162f9c30cdee32282800.tar.bz2
aports-a506031ab536154f83c0162f9c30cdee32282800.tar.xz
community/ltb-project-ssp: upgrade to 1.3 and modernize
Diffstat (limited to 'community/ltb-project-ssp/ssp-0.8-add-crypt-algorithm-option.patch')
-rw-r--r--community/ltb-project-ssp/ssp-0.8-add-crypt-algorithm-option.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/community/ltb-project-ssp/ssp-0.8-add-crypt-algorithm-option.patch b/community/ltb-project-ssp/ssp-0.8-add-crypt-algorithm-option.patch
deleted file mode 100644
index 8abb818f51..0000000000
--- a/community/ltb-project-ssp/ssp-0.8-add-crypt-algorithm-option.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff --git a/conf/config.inc.php b/conf/config.inc.php
-index 1aae0f6..f78da93 100644
---- a/conf/config.inc.php
-+++ b/conf/config.inc.php
-@@ -59,6 +59,9 @@ $shadow_options['update_shadowLastChange'] = false;
- # This option is not used with ad_mode = true
- $hash = "SSHA";
-
-+# prefix to use for salt with CRYPT
-+$crypt_salt_prefix = "$6$";
-+
- # Local password policy
- # This is applied before directory password policy
- # Minimal length
-diff --git a/lib/functions.inc.php b/lib/functions.inc.php
-index 03e7258..1870692 100644
---- a/lib/functions.inc.php
-+++ b/lib/functions.inc.php
-@@ -62,7 +62,7 @@ function make_crypt_password($password) {
- while( strlen( $salt ) < 2 )
- $salt .= substr( $possible, ( rand() % strlen( $possible ) ), 1 );
-
-- $hash = '{CRYPT}' . crypt( $password, $salt);
-+ $hash = '{CRYPT}' . crypt( $password, $GLOBALS['crypt_salt_prefix'].$salt);
- return $hash;
- }
-