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-03 22:00:31.228971082 +0100 |
+++ 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 |
18 |
@@ -0,0 +1,7 @@ |
@@ -0,0 +1,10 @@ |
19 |
+{ |
+{ |
20 |
|
+return "# The upsd admin is not allowed when nut access is set to public" if $nut{access} eq 'public'; |
21 |
|
+return "# The upsd admin has no password" if (($nut{AdminPass} || '') eq ''); |
22 |
|
+ |
23 |
+my $upsd = $DB->hosts_allow_spec('nut','upsd'); |
+my $upsd = $DB->hosts_allow_spec('nut','upsd'); |
24 |
+$upsd =~ s|upsd:|upsd: admin op localhost :|; |
+$upsd =~ s|upsd:|upsd: admin op |; |
25 |
+ |
+ |
26 |
+$OUT .= qq(#Allow the Admin User of upsd |
+$OUT .= qq(#Allow the Admin User of upsd |
27 |
+$upsd\n) if ($nut{AdminUser} eq 'enabled'); |
+$upsd : ALLOW) if ($nut{status} eq 'enabled'); |
28 |
+} |
+} |
29 |
diff -Nur e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/ups/upsd.users/upsd_administrative_privileges e-smith-nutUPS-2.4.0.bz8826/root/etc/e-smith/templates/etc/ups/upsd.users/upsd_administrative_privileges |
diff -Nur e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/ups/upsd.users/upsd_administrative_privileges e-smith-nutUPS-2.4.0.bz8826/root/etc/e-smith/templates/etc/ups/upsd.users/upsd_administrative_privileges |
30 |
--- e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/ups/upsd.users/upsd_administrative_privileges 1970-01-01 01:00:00.000000000 +0100 |
--- e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/ups/upsd.users/upsd_administrative_privileges 1970-01-01 01:00:00.000000000 +0100 |