aboutsummaryrefslogtreecommitdiffstats
path: root/main/phpldapadmin/phpldapadmin-1.2.3-force-ssha512.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/phpldapadmin/phpldapadmin-1.2.3-force-ssha512.patch')
-rw-r--r--main/phpldapadmin/phpldapadmin-1.2.3-force-ssha512.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/phpldapadmin/phpldapadmin-1.2.3-force-ssha512.patch b/main/phpldapadmin/phpldapadmin-1.2.3-force-ssha512.patch
new file mode 100644
index 0000000000..c69096e7fc
--- /dev/null
+++ b/main/phpldapadmin/phpldapadmin-1.2.3-force-ssha512.patch
@@ -0,0 +1,11 @@
+--- a/lib/functions.php
++++ b/lib/functions.php
+@@ -2147,7 +2147,7 @@
+ if ($_SESSION[APPCONFIG]->getValue('password', 'no_random_crypt_salt'))
+ $new_value = sprintf('{CRYPT}%s',crypt($password_clear,substr($password_clear,0,2)));
+ else
+- $new_value = sprintf('{CRYPT}%s',crypt($password_clear,random_salt(2)));
++ $new_value = sprintf('{CRYPT}%s',crypt($password_clear,'$6$'.random_salt(2)));
+
+ break;
+