/[smecontribs]/rpms/smeserver-userpanels/contribs9/smeserver-userpanels-1.0_cracklib_for_32_and_64_arch.patch
ViewVC logotype

Contents of /rpms/smeserver-userpanels/contribs9/smeserver-userpanels-1.0_cracklib_for_32_and_64_arch.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Aug 22 18:31:26 2014 UTC (9 years, 8 months ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-userpanels-1_1-4_el6_sme, smeserver-userpanels-1_1-2_el6_sme, smeserver-userpanels-1_1-5_el6_sme, smeserver-userpanels-1_1-3_el6_sme, HEAD
* Fri Aug 22 2014 stephane de labrusse <stephdl@de-labrusse.fr> 1.1-2.sme
- cracklib depends of rpm architecture, solved that in userpanel-useraccounts
- [SME:8533]

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';

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed