summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08e6e3d)
raw | patch | inline | side by side (parent: 08e6e3d)
author | lhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 8 Feb 2010 13:00:50 +0000 (13:00 +0000) | ||
committer | lhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 8 Feb 2010 13:00:50 +0000 (13:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15601 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-si/client/events/corefunctions.pm | patch | blob | history |
diff --git a/trunk/gosa-si/client/events/corefunctions.pm b/trunk/gosa-si/client/events/corefunctions.pm
index d75c1006bf554ab00cf4a2b9973dc6b7c9ecc4ef..e640c87a756f2d82e082519470f167ea95c4e7b0 100644 (file)
use GOSA::GosaSupportDaemon;
use File::Basename;
-my ($ldap_enabled, $offline_enabled, $ldap_config, $pam_config, $nss_config, $fai_logpath);
+my ($ldap_enabled, $offline_enabled, $ldap_config, $pam_config, $nss_config, $fai_logpath, $ldap_config_exit_hook);
my $chrony_file = "/etc/chrony/chrony.conf";
my $syslog_file = "/etc/syslog.conf";
"pam-config" => [\$pam_config, "/etc/pam_ldap.conf"],
"nss-config" => [\$nss_config, "/etc/libnss-ldap.conf"],
"fai-logpath" => [\$fai_logpath, "/var/log/fai/fai.log"],
+ "ldap-config-exit-hook" => [\$ldap_config_exit_hook, undef],
},
);
chown(0, 0, $cfg_name);
chmod(0644, $cfg_name);
+ # Allow custom scripts to be executed
+ if (defined $ldap_config_exit_hook) {
+ system($ldap_config_exit_hook);
+ daemon_log("executed hook $ldap_config_exit_hook", 5);
+ }
+
return;
}