97 lines
2.6 KiB
Perl
97 lines
2.6 KiB
Perl
#!/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
|
|
e-smith-radiusd-update
|
|
));
|
|
}
|
|
templates2events("/etc/raddb/radiusd.conf", "bootstrap-ldap-save");
|
|
templates2events("/etc/radiusclient-ng/radiusclient.conf", "bootstrap-console-save");
|
|
|
|
templates2events("/etc/raddb/radiusd.conf", "e-smith-radiusd-update");
|
|
templates2events("/etc/radiusclient-ng/radiusclient.conf", "e-smith-radiusd-update");
|
|
|
|
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
|
|
radiusclient-ng/servers
|
|
raddb/mods-config/files/authorize))
|
|
{
|
|
templates2events("/etc/$_", qw(
|
|
bootstrap-console-save
|
|
console-save
|
|
domain-modify
|
|
remoteaccess-update
|
|
ldap-update
|
|
e-smith-radiusd-update
|
|
));
|
|
}
|
|
|
|
foreach (qw(
|
|
radiusclient-ng/dictionary
|
|
radiusclient-ng/dictionary.microsoft))
|
|
{
|
|
templates2events("/usr/share/$_", qw(
|
|
bootstrap-console-save
|
|
console-save
|
|
domain-modify
|
|
remoteaccess-update
|
|
ldap-update
|
|
e-smith-radiusd-update
|
|
));
|
|
}
|
|
|
|
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");
|
|
}
|
|
|
|
$event="e-smith-radiusd-update";
|
|
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");
|
|
|
|
templates2events("/etc/raddb/certs/radiusd.pem", qw( bootstrap-console-save ssl-update e-smith-radiusd-update) );
|
|
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");
|
|
|