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

Annotation of /rpms/e-smith-base/sme7/e-smith-base-4.18.0-adminIsNotRoot.patch

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


Revision 1.1 - (hide annotations) (download)
Wed Jan 9 22:23:26 2008 UTC (16 years, 9 months ago) by bytegw
Branch: MAIN
CVS Tags: e-smith-base-4_18_0-101_el4_sme, e-smith-base-4_18_0-102_el4_sme, e-smith-base-4_18_0-98_el4_sme, e-smith-base-4_18_0-100_el4_sme, e-smith-base-4_18_0-90_el4_sme, e-smith-base-4_18_0-92_el4_sme, e-smith-base-4_18_0-99_el4_sme, e-smith-base-4_18_0-103_el4_sme, e-smith-base-4_18_0-89_el4_sme, e-smith-base-4_18_0-87_el4_sme, e-smith-base-4_18_0-104_el4_sme, e-smith-base-4_18_0-94_el4_sme, e-smith-base-4_18_0-88_el4_sme
Updates

1 bytegw 1.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