1 |
diff -Nur smeserver-userpanels-1.0.old/root/etc/e-smith/web/functions/userpanel-useraccounts smeserver-userpanels-1.0/root/etc/e-smith/web/functions/userpanel-useraccounts |
2 |
--- smeserver-userpanels-1.0.old/root/etc/e-smith/web/functions/userpanel-useraccounts 2014-08-22 18:36:30.559430605 +0200 |
3 |
+++ smeserver-userpanels-1.0/root/etc/e-smith/web/functions/userpanel-useraccounts 2014-08-22 18:37:58.397574687 +0200 |
4 |
@@ -1878,9 +1878,11 @@ |
5 |
my $reason = "Software error: password check failed"; |
6 |
|
7 |
if ($strength eq 'strong') |
8 |
- { |
9 |
- $reason = fascist_check($pass, '/usr/lib/cracklib_dict'); |
10 |
- } |
11 |
+ { |
12 |
+ $reason = fascist_check($pass, '/usr/lib/cracklib_dict') if ( -e '/usr/lib/cracklib_dict.pwd'); |
13 |
+ $reason = fascist_check($pass, '/usr/lib64/cracklib_dict') if ( -e '/usr/lib64/cracklib_dict.pwd'); |
14 |
+ } |
15 |
+ |
16 |
elsif (($strength eq "none") || ($strength eq "normal")) |
17 |
{ |
18 |
$reason = 'OK'; |