From: opensides Date: Sat, 27 Mar 2010 09:36:05 +0000 (+0000) Subject: - Added patch from LHM commit r15601 Closes: #849 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bafea1f535c3f2aa0e8e4bb8fe39aefb29dcb0d0;p=gosa.git - Added patch from LHM commit r15601 Closes: #849 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17303 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/client/events/corefunctions.pm b/gosa-si/client/events/corefunctions.pm index 1b387e5fe..f1a8935cc 100644 --- a/gosa-si/client/events/corefunctions.pm +++ b/gosa-si/client/events/corefunctions.pm @@ -22,7 +22,7 @@ use Fcntl; 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"; @@ -35,6 +35,7 @@ my %cfg_defaults = ( "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], }, ); @@ -447,6 +448,12 @@ sub new_ldap_config { 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; }