/[smeserver]/rpms/e-smith-nutUPS/sme9/e-smith-nutUPS-2.4.0.UPS_administrative_privileges.patch
ViewVC logotype

Diff of /rpms/e-smith-nutUPS/sme9/e-smith-nutUPS-2.4.0.UPS_administrative_privileges.patch

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

Revision 1.3 by stephdl, Sat Feb 7 09:24:32 2015 UTC Revision 1.4 by stephdl, Sat Feb 7 10:18:12 2015 UTC
# Line 14  diff -Nur e-smith-nutUPS-2.4.0.old8826/r Line 14  diff -Nur e-smith-nutUPS-2.4.0.old8826/r
14   }   }
15  diff -Nur e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges e-smith-nutUPS-2.4.0.bz8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges  diff -Nur e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges e-smith-nutUPS-2.4.0.bz8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges
16  --- e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges       1970-01-01 01:00:00.000000000 +0100  --- e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges       1970-01-01 01:00:00.000000000 +0100
17  +++ e-smith-nutUPS-2.4.0.bz8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges        2015-02-07 10:14:19.521499798 +0100  +++ e-smith-nutUPS-2.4.0.bz8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges        2015-02-07 10:41:37.038033536 +0100
18  @@ -0,0 +1,10 @@  @@ -0,0 +1,11 @@
19  +{  +{
20  +return "# The upsd admin is not allowed when nut access is set to public" if $nut{access} eq 'public';  +return "# The upsd admin is not allowed" if ($nut{AdminUser} ne 'enabled');
21  +return "# The upsd admin has no password" if (($nut{AdminPass} || '') eq '');  +return "# The upsd admin has no password" if (($nut{AdminPass} || '') eq '');
22    +return "# The upsd admin is not allowed when nut access is set to public" if $nut{access} eq 'public';
23  +  +
24  +my $upsd = $DB->hosts_allow_spec('nut','upsd');  +my $upsd = $DB->hosts_allow_spec('nut','upsd');
25  +$upsd =~ s|upsd:|upsd: admin op |;  +$upsd =~ s|upsd:|upsd: admin op |;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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