aboutsummaryrefslogtreecommitdiffstats
path: root/main/phpldapadmin/phpldapadmin-1.2.3-force-ssha512.patch
blob: c69096e7fcb8ea109884fd9f3a4886d8c72b249f (plain)
1
2
3
4
5
6
7
8
9
10
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;