diff -Nur -x '*.orig' -x '*.rej' e-smith-radiusd-2.6.0/createlinks mezzanine_patched_e-smith-radiusd-2.6.0/createlinks --- e-smith-radiusd-2.6.0/createlinks 2021-10-31 23:06:13.095844765 -0500 +++ mezzanine_patched_e-smith-radiusd-2.6.0/createlinks 2021-10-31 22:39:23.105308462 -0500 @@ -5,7 +5,7 @@ #-------------------------------------------------- # general radiusd configuration #-------------------------------------------------- -foreach (qw(raddb/radiusd.conf raddb/users)) +foreach (qw(raddb/radiusd.conf raddb/mods-config/files/authorize)) { templates2events("/etc/$_", qw( bootstrap-console-save @@ -34,7 +34,8 @@ raddb/sites-available/default raddb/sites-available/inner-tunnel raddb/proxy.conf - radiusclient-ng/servers)) + radiusclient-ng/servers + raddb/mods-config/files/authorize)) { templates2events("/etc/$_", qw( bootstrap-console-save diff -Nur -x '*.orig' -x '*.rej' e-smith-radiusd-2.6.0/root/etc/e-smith/templates/etc/raddb/mods-config/files/authorize/10noroot mezzanine_patched_e-smith-radiusd-2.6.0/root/etc/e-smith/templates/etc/raddb/mods-config/files/authorize/10noroot --- e-smith-radiusd-2.6.0/root/etc/e-smith/templates/etc/raddb/mods-config/files/authorize/10noroot 1969-12-31 18:00:00.000000000 -0600 +++ mezzanine_patched_e-smith-radiusd-2.6.0/root/etc/e-smith/templates/etc/raddb/mods-config/files/authorize/10noroot 2005-06-11 12:29:56.000000000 -0500 @@ -0,0 +1,2 @@ +root Auth-Type := Reject + diff -Nur -x '*.orig' -x '*.rej' e-smith-radiusd-2.6.0/root/etc/e-smith/templates/etc/raddb/mods-config/files/authorize/20vpnusers mezzanine_patched_e-smith-radiusd-2.6.0/root/etc/e-smith/templates/etc/raddb/mods-config/files/authorize/20vpnusers --- e-smith-radiusd-2.6.0/root/etc/e-smith/templates/etc/raddb/mods-config/files/authorize/20vpnusers 1969-12-31 18:00:00.000000000 -0600 +++ mezzanine_patched_e-smith-radiusd-2.6.0/root/etc/e-smith/templates/etc/raddb/mods-config/files/authorize/20vpnusers 2008-10-07 12:37:19.000000000 -0500 @@ -0,0 +1,29 @@ +{ + use esmith::AccountsDB; + + my $adb = esmith::AccountsDB->open_ro() + or die "Couldnt' open AccountsDB\n"; + + my @accounts = $adb->get('admin'); + push @accounts, $adb->users; + + foreach my $account (@accounts) + { + next unless (($account->prop('VPNClientAccess') || 'no') eq 'yes'); + + next unless (($account->prop('PasswordSet') || 'no') eq 'yes'); + + my $name = $account->key; + + $OUT .= <prop('PPTPIP'); + next unless ($pptpip); + + $OUT .= <open_ro() - or die "Couldnt' open AccountsDB\n"; - - my @accounts = $adb->get('admin'); - push @accounts, $adb->users; - - foreach my $account (@accounts) - { - next unless (($account->prop('VPNClientAccess') || 'no') eq 'yes'); - - next unless (($account->prop('PasswordSet') || 'no') eq 'yes'); - - my $name = $account->key; - - $OUT .= <prop('PPTPIP'); - next unless ($pptpip); - - $OUT .= <