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

Contents of /rpms/e-smith-base/sme8/e-smith-base-4.18.0-adminIsNotRoot.patch

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


Revision 1.2 - (show annotations) (download)
Wed Mar 26 17:01:51 2008 UTC (16 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Wed Mar 26 2008 Shad L. Lords <slords@mail.com> 4.18.1-2
- Fix gettext strings returned by password checks [SME: 4104]

1
2 --- e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/useraccounts.pm 2007-01-19 22:33:22.000000000 +0100
3 +++ e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/useraccounts.pm 2007-07-01 14:56:56.000000000 +0200
4 @@ -1178,7 +1178,7 @@
5 my $self = shift;
6 my $pass = shift;
7
8 - if (esmith::util::authenticateUnixPassword('root', $pass))
9 + if (esmith::util::authenticateUnixPassword( ($configdb->get_value("AdminIsNotRoot") eq 'enabled') ? 'admin' : 'root', $pass))
10 {
11 return "OK";
12 }
13 @@ -1199,7 +1199,7 @@
14 my ($self) = @_;
15 my $pass = $self->{cgi}->param('pass');
16
17 - esmith::util::setUnixSystemPassword($pass);
18 + ($configdb->get_value("AdminIsNotRoot") eq 'enabled') ? esmith::util::setUnixPassword('admin',$pass) : esmith::util::setUnixSystemPassword($pass);
19 esmith::util::setServerSystemPassword($pass);
20
21 my $result = system("/sbin/e-smith/signal-event password-modify admin");

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