76 lines
2.5 KiB
Plaintext
76 lines
2.5 KiB
Plaintext
|
#!/usr/bin/perl -w
|
||
|
|
||
|
use esmith::Build::CreateLinks qw(:all);
|
||
|
|
||
|
panel_link("directory", "manager");
|
||
|
|
||
|
foreach (qw(ldap.conf slapd.conf))
|
||
|
{
|
||
|
templates2events("/etc/openldap/$_",
|
||
|
qw(
|
||
|
bootstrap-console-save
|
||
|
console-save
|
||
|
ldap-update
|
||
|
e-smith-ldap-update
|
||
|
));
|
||
|
}
|
||
|
|
||
|
templates2events("/etc/sysconfig/slapd",
|
||
|
qw(
|
||
|
bootstrap-console-save
|
||
|
console-save
|
||
|
ldap-update
|
||
|
e-smith-ldap-update
|
||
|
));
|
||
|
|
||
|
|
||
|
event_link("ldap-update-simple", "group-create", "95");
|
||
|
event_link("ldap-update-simple", "group-modify", "95");
|
||
|
event_link("ldap-delete", "group-delete", "55");
|
||
|
|
||
|
event_link("ldap-update-simple", "user-create", "95");
|
||
|
event_link("ldap-update-simple", "user-modify", "95");
|
||
|
event_link("ldap-update-simple", "user-modify-admin", "95");
|
||
|
event_link("ldap-delete", "user-delete", "55");
|
||
|
|
||
|
event_link("ldap-update-simple", "password-modify", "95");
|
||
|
event_link("ldap-update-simple", "user-lock", "55");
|
||
|
|
||
|
event_link("ldap-update-simple", "ibay-create", "95");
|
||
|
event_link("ldap-update-simple", "ibay-modify", "95");
|
||
|
event_link("ldap-delete", "ibay-delete", "55");
|
||
|
|
||
|
event_link("ldap-update-simple", "machine-account-create", "95");
|
||
|
|
||
|
event_link("ldap-update", "bootstrap-ldap-save", "80");
|
||
|
event_link("cleanup-unix-user-group", "bootstrap-ldap-save", "98");
|
||
|
|
||
|
event_link("ldap-dump", "pre-backup", "30");
|
||
|
|
||
|
event_link("ldap-update", "ldap-update", "80");
|
||
|
templates2events("/etc/rc.d/init.d/masq", "ldap-update");
|
||
|
templates2events("/etc/hosts.allow", "ldap-update");
|
||
|
templates2events("/etc/openldap/ssl/slapd.pem", qw(ssl-update e-smith-ldap-update bootstrap-console-save) );
|
||
|
safe_symlink("restart", "root/etc/e-smith/events/ldap-update/services2adjust/ldap");
|
||
|
safe_symlink("restart", "root/etc/e-smith/events/ssl-update/services2adjust/ldap");
|
||
|
safe_symlink("reload", "root/etc/e-smith/events/ldap-update/services2adjust/masq");
|
||
|
safe_symlink("reload", "root/etc/e-smith/events/ldap-update/services2adjust/httpd-e-smith");
|
||
|
|
||
|
event_link("ldap-delete-dumps", "pre-restore", "25");
|
||
|
|
||
|
event_link("set-ldap-bootstrap", "bootstrap-console-save", "95");
|
||
|
event_link("reset-ldap-bootstrap", "bootstrap-ldap-save", "95");
|
||
|
|
||
|
|
||
|
my $event="e-smith-ldap-update";
|
||
|
|
||
|
# systemd-specific action mandatory for this package-update event
|
||
|
event_link("systemd-reload", $event, "89");
|
||
|
event_link("systemd-default", $event, "88");
|
||
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ldap");
|
||
|
event_link("ldap-update", $event , "80");
|
||
|
templates2events("/etc/rsyslog.conf", $event);
|
||
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
|
||
|
|
||
|
exit 0;
|