summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Parent <math.parent@gmail.com>2008-11-26 22:25:22 (GMT)
committerMathieu Parent <math.parent@gmail.com>2008-11-26 22:25:22 (GMT)
commit2fd88adc88e36dafb4c08f9df13b74d0f298d2a0 (patch)
tree85466d81d468a03823532585d8ce9239d0f75e31
parent4d9aac03042fa08e05e7da08db254cb4f75538a9 (diff)
downloadperl-Kolab-2fd88adc88e36dafb4c08f9df13b74d0f298d2a0.tar.gz
Check syncrepl_cookie_file while using `syncrepl' directory_mode
-rw-r--r--lib/Kolab.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Kolab.pm b/lib/Kolab.pm
index e286a57..9437491 100644
--- a/lib/Kolab.pm
+++ b/lib/Kolab.pm
@@ -278,6 +278,11 @@ sub reloadConfig
# ad: Microsoft Active Directory
$config{'directory_mode'} = 'slurpd' if (!exists $config{'directory_mode'});
$config{'directory_replication_mode_is_syncrepl'} = 'TRUE' if ($config{'directory_mode'} eq 'syncrepl');
+ if (($config{'directory_mode'} eq 'syncrepl') && !defined $config{'syncrepl_cookie_file'}) {
+ &log('C', "Configuration variable `syncrepl_cookie_file' is missing ".
+ "in `kolab.globals' or `kolab.globals' while using `syncrepl' directory_mode", KOLAB_ERROR);
+ $error = 1;
+ }
# `conn_refresh_period' specifies how many minutes to wait before forceably
# tearing down the change listener connection, re-syncing, and re-connecting.