diff -uNr smeserver-denyhosts-2.6/createlinks smeserverbis/createlinks --- smeserver-denyhosts-2.6/createlinks 1970-01-01 01:00:00.000000000 +0100 +++ smeserverbis/createlinks 2008-04-22 03:42:06.000000000 +0200 @@ -0,0 +1,16 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); + +service_link_enhanced("denyhosts", "K01", "0"); +service_link_enhanced("denyhosts", "K01", "1"); +service_link_enhanced("denyhosts", "K01", "2"); +service_link_enhanced("denyhosts", "K01", "3"); +service_link_enhanced("denyhosts", "K01", "4"); +service_link_enhanced("denyhosts", "K01", "5"); +service_link_enhanced("denyhosts", "K01", "6"); +service_link_enhanced("denyhosts", "S01", "7"); + + +exit 0; + diff -uNr smeserver-denyhosts-2.6/root/etc/e-smith/templates/usr/share/denyhosts/data/allowed-hosts smeserverbis/root/etc/e-smith/templates/usr/share/denyhosts/data/allowed-hosts --- smeserver-denyhosts-2.6/root/etc/e-smith/templates/usr/share/denyhosts/data/allowed-hosts 1970-01-01 01:00:00.000000000 +0100 +++ smeserverbis/root/etc/e-smith/templates/usr/share/denyhosts/data/allowed-hosts 2008-04-02 19:29:37.000000000 +0200 @@ -0,0 +1,26 @@ +# DO NOT MODIFY THIS FILE, IT IS TEMPLATISED +#we mustn't block localhost +127.0.0.1 +#others not to be blocked from SME database +{ + use esmith::ConfigDB; + my $ddb = esmith::ConfigDB->open_ro(); + my $denyhosts = $ddb->denyhosts; + my $validfrom = $denyhosts{'ValidFrom'} || ''; + + if ($validfrom ne "") + + { + # split + my @vals = split /,/, $validfrom; + + foreach $var_name ( @vals ) + { + $OUT.="$var_name\n"; + + } + } +} +# you may add in template /etc/e-smith/tempaltes/var/lib/denyhosts +# other hosts you do not want to be editable from server-manager +# under this line, one per line diff -uNr smeserver-denyhosts-2.6/root/etc/e-smith/templates/var/lib/denyhosts/allowed-hosts smeserverbis/root/etc/e-smith/templates/var/lib/denyhosts/allowed-hosts --- smeserver-denyhosts-2.6/root/etc/e-smith/templates/var/lib/denyhosts/allowed-hosts 2008-04-02 19:29:37.000000000 +0200 +++ smeserverbis/root/etc/e-smith/templates/var/lib/denyhosts/allowed-hosts 1970-01-01 01:00:00.000000000 +0100 @@ -1,26 +0,0 @@ -# DO NOT MODIFY THIS FILE, IT IS TEMPLATISED -#we mustn't block localhost -127.0.0.1 -#others not to be blocked from SME database -{ - use esmith::ConfigDB; - my $ddb = esmith::ConfigDB->open_ro(); - my $denyhosts = $ddb->denyhosts; - my $validfrom = $denyhosts{'ValidFrom'} || ''; - - if ($validfrom ne "") - - { - # split - my @vals = split /,/, $validfrom; - - foreach $var_name ( @vals ) - { - $OUT.="$var_name\n"; - - } - } -} -# you may add in template /etc/e-smith/tempaltes/var/lib/denyhosts -# other hosts you do not want to be editable from server-manager -# under this line, one per line diff -uNr smeserver-denyhosts-2.6/root/usr/share/denyhosts/data/allowed-hosts smeserverbis/root/usr/share/denyhosts/data/allowed-hosts --- smeserver-denyhosts-2.6/root/usr/share/denyhosts/data/allowed-hosts 1970-01-01 01:00:00.000000000 +0100 +++ smeserverbis/root/usr/share/denyhosts/data/allowed-hosts 2005-05-20 06:57:02.000000000 +0200 @@ -0,0 +1,2 @@ +# We mustn't block localhost +127.0.0.1 diff -uNr smeserver-denyhosts-2.6/root/var/lib/denyhosts/allowed-hosts smeserverbis/root/var/lib/denyhosts/allowed-hosts --- smeserver-denyhosts-2.6/root/var/lib/denyhosts/allowed-hosts 2005-05-20 06:57:02.000000000 +0200 +++ smeserverbis/root/var/lib/denyhosts/allowed-hosts 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -# We mustn't block localhost -127.0.0.1