--- Kolab/Conf.pm.old 2008-12-16 15:20:05.000000000 +0000 +++ Kolab/Conf.pm 2008-12-16 15:19:53.000000000 +0000 @@ -426,6 +426,10 @@ my $templatedir = $Kolab::config{"templatedir"}; my $keytemplate = "$templatedir/slapd.access.template"; + if( ! -f $keytemplate ) { + Kolab::log('T', "No LDAP access file `$keytemplate', skipping", KOLAB_DEBUG); + return; + } my $cfg = $templates{$keytemplate}; my $oldcfg = $cfg . '.old'; @@ -520,6 +524,10 @@ my $templatedir = $Kolab::config{"templatedir"}; my $keytemplate = "$templatedir/slapd.replicas.template"; + if( ! -f $keytemplate ) { + Kolab::log('T', "No LDAP replicas `$keytemplate', skipping", KOLAB_DEBUG); + return; + } my $cfg = $templates{$keytemplate}; my $oldcfg = $cfg . '.old';