2023-07-12 10:08:31 +02:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
|
|
|
|
use esmith::Build::CreateLinks qw(:all);
|
|
|
|
|
|
|
|
#--------------------------------------------------
|
|
|
|
# general radiusd configuration
|
|
|
|
#--------------------------------------------------
|
|
|
|
foreach (qw(raddb/radiusd.conf raddb/mods-config/files/authorize))
|
|
|
|
{
|
|
|
|
templates2events("/etc/$_", qw(
|
|
|
|
bootstrap-console-save
|
|
|
|
console-save
|
|
|
|
password-modify
|
|
|
|
remoteaccess-update
|
|
|
|
user-create
|
|
|
|
user-delete
|
|
|
|
user-lock
|
|
|
|
user-modify
|
|
|
|
user-modify-admin
|
2024-04-04 16:12:40 +02:00
|
|
|
smeserver-radiusd-update
|
2023-07-12 10:08:31 +02:00
|
|
|
));
|
|
|
|
}
|
|
|
|
templates2events("/etc/raddb/radiusd.conf", "bootstrap-ldap-save");
|
2024-04-13 10:55:21 +02:00
|
|
|
templates2events("/etc/radiusclient/radiusclient.conf", "bootstrap-console-save");
|
2023-07-12 10:08:31 +02:00
|
|
|
|
2024-04-04 16:12:40 +02:00
|
|
|
templates2events("/etc/raddb/radiusd.conf", "smeserver-radiusd-update");
|
2024-04-13 10:55:21 +02:00
|
|
|
templates2events("/etc/radiusclient/radiusclient.conf", "smeserver-radiusd-update");
|
2023-07-12 10:08:31 +02:00
|
|
|
|
|
|
|
foreach (qw(
|
|
|
|
raddb/clients.conf
|
|
|
|
raddb/mods-available/eap
|
|
|
|
raddb/mods-available/ldap
|
|
|
|
raddb/mods-available/smbpasswd
|
|
|
|
raddb/sites-available/default
|
|
|
|
raddb/sites-available/inner-tunnel
|
|
|
|
raddb/proxy.conf
|
2024-04-13 10:55:21 +02:00
|
|
|
radiusclient/servers
|
2023-07-12 10:08:31 +02:00
|
|
|
raddb/mods-config/files/authorize))
|
|
|
|
{
|
|
|
|
templates2events("/etc/$_", qw(
|
|
|
|
bootstrap-console-save
|
|
|
|
console-save
|
|
|
|
domain-modify
|
|
|
|
remoteaccess-update
|
|
|
|
ldap-update
|
2024-04-04 16:12:40 +02:00
|
|
|
smeserver-radiusd-update
|
2023-07-12 10:08:31 +02:00
|
|
|
));
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach (qw(
|
2024-04-13 10:55:21 +02:00
|
|
|
radiusclient/dictionary
|
|
|
|
radiusclient/dictionary.microsoft))
|
2023-07-12 10:08:31 +02:00
|
|
|
{
|
|
|
|
templates2events("/usr/share/$_", qw(
|
|
|
|
bootstrap-console-save
|
|
|
|
console-save
|
|
|
|
domain-modify
|
|
|
|
remoteaccess-update
|
|
|
|
ldap-update
|
2024-04-04 16:12:40 +02:00
|
|
|
smeserver-radiusd-update
|
2023-07-12 10:08:31 +02:00
|
|
|
));
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach $event ( qw(
|
|
|
|
console-save
|
|
|
|
domain-modify
|
|
|
|
ldap-update
|
|
|
|
password-modify
|
|
|
|
remoteaccess-update
|
|
|
|
user-create
|
|
|
|
user-delete
|
|
|
|
user-lock
|
|
|
|
user-modify
|
|
|
|
user-modify-admin
|
|
|
|
|
|
|
|
) )
|
|
|
|
{
|
|
|
|
safe_symlink("sigterm", "root/etc/e-smith/events/$event/services2adjust/radiusd");
|
|
|
|
}
|
|
|
|
|
2024-04-04 16:12:40 +02:00
|
|
|
$event="smeserver-radiusd-update";
|
2023-07-12 10:08:31 +02:00
|
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/radiusd");
|
|
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
|
|
|
|
templates2events("/etc/rsyslog.conf",$event);
|
|
|
|
# systemd-specific action mandatory for this package-update event
|
|
|
|
event_link("systemd-reload", $event, "89");
|
|
|
|
event_link("systemd-default", $event, "88");
|
|
|
|
|
2024-04-04 16:12:40 +02:00
|
|
|
templates2events("/etc/raddb/certs/radiusd.pem", qw( bootstrap-console-save ssl-update smeserver-radiusd-update) );
|
2023-07-12 10:08:31 +02:00
|
|
|
safe_symlink("restart", "root/etc/e-smith/events/ssl-update/services2adjust/radiusd");
|
|
|
|
|
|
|
|
# activate modules
|
|
|
|
#safe_symlink("../mods-available/realm", "root/etc/raddb/mods-enabled/realm");
|
|
|
|
safe_symlink("../mods-available/ldap", "root/etc/raddb/mods-enabled/ldap");
|
|
|
|
safe_symlink("../mods-available/smbpasswd", "root/etc/raddb/mods-enabled/smbpasswd");
|
|
|
|
|