/[smeserver]/rpms/e-smith-samba/sme7/e-smith-samba-1.14.0-samba-check-password.patch3
ViewVC logotype

Contents of /rpms/e-smith-samba/sme7/e-smith-samba-1.14.0-samba-check-password.patch3

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


Revision 1.1 - (show annotations) (download)
Tue Jun 12 16:12:59 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-samba-1_14_0-30_el4_sme, e-smith-samba-1_14_0-35_el4_sme, e-smith-samba-1_14_0-36_el4_sme, e-smith-samba-1_14_0-33_el4_sme, e-smith-samba-1_14_0-34_el4_sme, e-smith-samba-1_14_0-31_el4_sme, e-smith-samba-1_14_0-32_el4_sme, e-smith-samba-1_14_0-29_el4_sme
Import on branch sme7 of package e-smith-samba-1.14.0-29.el4.sme.src.rpm

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-samba-1.14.0/root/sbin/e-smith/samba_check_password mezzanine_patched_e-smith-samba-1.14.0/root/sbin/e-smith/samba_check_password
2 --- e-smith-samba-1.14.0/root/sbin/e-smith/samba_check_password 2006-12-12 08:08:26.000000000 -0700
3 +++ mezzanine_patched_e-smith-samba-1.14.0/root/sbin/e-smith/samba_check_password 2006-12-12 08:07:32.000000000 -0700
4 @@ -3,21 +3,16 @@
5 use strict;
6 use warnings;
7 use esmith::ConfigDB;
8 -use Crypt::Cracklib;
9 -use CGI::FormMagick::Validator::Network;
10 +use esmith::util;
11
12 our $db = esmith::ConfigDB->open or
13 die "Couldn't open configuration database (permissions problems?)";
14
15 my $strength = $db->get_prop('passwordstrength', 'Users');
16 -my $pass = <>;
17 -chomp $pass;
18 +my $password = <>;
19 +chomp $password;
20
21 -exit 0 if ($strength eq "none");
22 -
23 -my $reason = ($strength eq 'strong') ?
24 - fascist_check($pass, '/usr/lib/cracklib_dict') :
25 - CGI::FormMagick::Validator::password(undef, $pass);
26 +my $reason = esmith::util::validatePassword($password, $strength);
27
28 exit 0 if (lc($reason) eq "ok");
29 exit 1;

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