/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-4.18.0-consoleValidatePassword.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme8/e-smith-base-4.18.0-consoleValidatePassword.patch

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


Revision 1.1 - (hide annotations) (download)
Sun Jan 6 15:44:48 2008 UTC (16 years, 10 months ago) by bytegw
Branch: MAIN
CVS Tags: e-smith-base-4_18_0-83_el5_sme, e-smith-base-4_18_0-89_el5_sme, e-smith-base-4_18_0-90_el5_sme, e-smith-base-4_18_0-82_el5_sme, e-smith-base-4_18_0-100_el5_sme, e-smith-base-4_18_0-104_el5_sme, e-smith-base-4_18_0-87_el5_sme, e-smith-base-4_18_0-92_el5_sme, e-smith-base-4_18_0-103_el5_sme, e-smith-base-4_18_0-99_el5_sme, e-smith-base-4_18_0-88_el5_sme, e-smith-base-4_18_0-94_el5_sme, e-smith-base-4_18_0-101_el5_sme, e-smith-base-4_18_0-98_el5_sme, e-smith-base-4_18_0-102_el5_sme
Updates

1 bytegw 1.1 diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/system_password.pm mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/system_password.pm
2     --- e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/system_password.pm 2008-01-06 05:03:30.000000000 -0700
3     +++ mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/system_password.pm 2008-01-06 05:00:59.000000000 -0700
4     @@ -105,23 +105,15 @@
5     gettext(" it is too simplistic/systematic");
6     gettext(" it is based on a dictionary word");
7     gettext(" it is based on a (reversed) dictionary word");
8     + gettext(" it does not contain numbers");
9     + gettext(" it does not contain uppercase characters");
10     + gettext(" it does not contain lowercase characters");
11     + gettext(" it does not contain special characters");
12     #--------------------------------------------------------
13    
14     - my $reason;
15     - $_ = $choice1;
16     - if (length($_) < 7)
17     - {
18     - $reason = "it is too short";
19     - }
20     - elsif (!(/\d/ and /[A-Z]/ and /[a-z]/ and /\W/))
21     - {
22     - $reason = "it is too simplistic/systematic";
23     - }
24     - if ( -f '/usr/lib64/cracklib_dict.hwm' ) {
25     - $reason ||= fascist_check($choice1, '/usr/lib64/cracklib_dict');
26     - } else {
27     - $reason ||= fascist_check($choice1, '/usr/lib/cracklib_dict');
28     - }
29     + my $strength = $db->get_prop("passwordstrength", "Admin");
30     + my $reason = esmith::util::validatePassword($choice1,$strength);
31     +
32     # Untaint return data from cracklib, so we can use it later. We
33     # trust the library, so we accept anything.
34     $reason =~ /(.+)/; $reason = $1;

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