[Kolab-devel] [issue4708] kolabconf template does not handle nested ifs

comotion issues at kolab.org
Mon Feb 21 15:57:31 CET 2011


This is kolab-2.3-community-release-development-5-12.el5.kolab_2.3

kolab.globals:
ldapserver_modulepath : /usr/lib64/openldap
directory_mode : syncrepl
is_master : false

slapd.conf.template generates the wrong slapd.conf. It seems the template engine
does not handle nested ifs properly. The following code in the template:

@@@if directory_replication_mode_is_syncrepl@@@
@@@if ldapserver_modulepath@@@
moduleload syncprov
@@@else@@@
# moduleload syncprov
@@@endif@@@
@@@else@@@
replica-pidfile @@@ldapserverslurpd_pidfile@@@
replogfile      @@@ldapserver_replogfile@@@
replicationinterval 5
@@@endif@@@

rootDSE                @@@sysconfdir@@@/kolab/rootDSE.ldif

generates a slapd.conf thaat terminates at the "moduleload syncprov"

getting rid of the @@@if ldapserver_modulepath@@@...@@@endif@@@ nested if
generates a complete slapd.

My workaround is to hack the templates not to use nested ifs.

----------
keyword: enterprise5
messages: 27550
nosy: comotion
priority: bug
status: unread
title: kolabconf template does not handle nested ifs

______________________________________
Kolab issue tracker <issues at kolab.org>
<https://issues.kolab.org/issue4708>
______________________________________




More information about the devel mailing list