diff --git a/contrib/gosa.conf b/contrib/gosa.conf
index ad943ced9faefa3c828cd646dd9d7287f1b0195f..34e94316a8483c890e29ea8e978962b3c50c632a 100644 (file)
--- a/contrib/gosa.conf
+++ b/contrib/gosa.conf
-<?xml version="1.0"?>
+{literal}<?xml version="1.0"?>{/literal}
<conf>
<menu>
<section name="My account">
<plugin acl="default" class="posixAccount" icon="posix.png"
path="plugins/personal/posix" />
<plugin acl="default" class="environment" icon="env.png"
- kioskpath="/var/spool/kiosk"
+{if $cv.optional.kioskpath_active}
+ kioskpath="{$cv.optional.kioskpath}"
+{/if}
path="plugins/personal/environment" />
<plugin acl="default" class="mailAccount" icon="email.png"
path="plugins/personal/mail" />
<plugin acl="default" class="sambaAccount" icon="samba.png"
path="plugins/personal/samba" />
+{if $cv.use_netatalk}
+ <plugin acl="default" class="netatalk" icon="netatalk.png"
+ path="plugins/personal/netatalk" />
+{else}
+<!--
+ <plugin acl="default" class="netatalk" icon="netatalk.png"
+ path="plugins/personal/netatalk" />
+-->
+{/if}
<plugin acl="default" class="connectivity" icon="proxy.png"
path="plugins/personal/connectivity" />
<plugin acl="default" class="gofaxAccount" icon="fax.png"
path="plugins/gofax/faxaccount" />
<plugin acl="default" class="phoneAccount" icon="phone.png"
path="plugins/gofon/phoneaccount" />
+<!--
+ <plugin acl="default" class="nagiosAccount" icon="monitoring.png"
+ path="plugins/personal/nagios" />
+-->
+<!--
+ <plugin acl="default" class="scalixAccount" icon="scalix.png"
+ path="plugins/personal/scalix/" />
+-->
<plugin acl="default" class="password" icon="password.png"
path="plugins/personal/password" />
-<!-- <plugin acl="default" class="nagiosAccount" icon="monitoring.png"
- path="plugins/personal/nagios" /> -->
</section>
<section name="Administration">
path="plugins/admin/departments" />
<plugin acl="application" class="applicationManagement"
icon="application.png" path="plugins/admin/applications" />
+
+{if $cv.enableMimeType}
+ <plugin acl="mimetype" class="mimetypeManagement"
+ icon="mimetypes.png" path="plugins/admin/mimetypes" />
+{else}
+<!--
+ <plugin acl="mimetype" class="mimetypeManagement"
+ icon="mimetypes.png" path="plugins/admin/mimetypes" />
+-->
+{/if}
<plugin acl="systems" class="systems" icon="system.png"
path="plugins/admin/systems" />
- <plugin acl="FAIclass" class="faiManagement" icon="fai.png"
+ <!-- Use 'lock_dn' for dn
+ 'lock_name' for name
+ 'lock_type' for branch/freeze -->
+
+{if $cv.enableFAI_management}
+ <plugin acl="FAIclass" class="faiManagement" icon="fai.png"
+ path="plugins/admin/fai" />
+{else}
+<!--
+ <plugin acl="FAIclass" class="faiManagement" icon="fai.png"
path="plugins/admin/fai" />
+-->
+{/if}
<plugin acl="blocklists" class="blocklist" icon="blocklists.png"
path="plugins/gofax/blocklists" />
<plugin acl="goFonMacro" class="gofonMacro" icon="macros.png"
path="plugins/gofon/macro" />
- <plugin acl="goFonConference" class="phoneConferenceManagment" icon="conference.png"
+ <plugin acl="conference" class="phoneConferenceManagment" icon="conference.png"
path="plugins/gofon/conference" />
</section>
<section name="Addons">
- <plugin acl="default" class="addressbook" icon="addressbook.png"
+ <plugin acl="addressbook" class="addressbook" icon="addressbook.png"
path="plugins/addons/addressbook" />
- <plugin acl="default" class="faxreport" icon="reports.png"
- path="plugins/gofax/reports" />
- <plugin acl="default" class="fonreport" icon="phonereport.png"
- path="plugins/gofon/reports" />
- <plugin acl="logs" class="logview" icon="logview.png"
- path="plugins/addons/logview" />
- <plugin acl="ldif" class="ldif" icon="ldif.png"
+ <plugin acl="faxreport" class="faxreport" icon="reports.png"
+ path="plugins/gofax/faxreports" />
+ <plugin acl="fonreport" class="fonreport" icon="phonereport.png"
+ path="plugins/gofon/fonreports" />
+ <plugin acl="logview" class="logview" icon="logview.png"
+ path="plugins/addons/logview" />
+ <plugin acl="mailqueue" class="mailqueue" icon="mailqueue.png"
+ path="plugins/addons/mailqueue" />
+ <plugin acl="ldapmanager" class="ldif" icon="ldif.png"
path="plugins/addons/ldapmanager" />
+<!--
+ <plugin acl="notifications" class="msgplug" icon="notifications.png"
+ path="plugins/addons/notifications" />
+-->
+{if $cv.optional.gotomasses_active}
+ <plugin acl="gotomasses" class="gotomasses" icon="system.png"
+ storage_file="{$cv.optional.gotomasses_file}"
+ path="plugins/addons/gotomasses" />
+{else}
+<!--
+ <plugin acl="gotomasses" class="gotomasses" icon="system.png"
+ path="plugins/addons/gotomasses" />
+-->
+{/if}
</section>
</menu>
<tab class="environment" name="Environment" />
<tab class="mailAccount" name="Mail" />
<tab class="sambaAccount" name="Samba" />
+{if $cv.use_netatalk}
+ <tab class="netatalk" name="Netatalk" />
+{else}
+<!--
+ <tab class="netatalk" name="Netatalk" />
+-->
+{/if}
<tab class="connectivity" name="Connectivity" />
<tab class="gofaxAccount" name="Fax" />
<tab class="phoneAccount" name="Phone" />
-<!-- <tab class="nagiosAccount" name="Nagios" /> -->
- <tab class="reference" name="References" />
+<!--
+ <tab class="scalixAccount" name="Scalix" />
+-->
+<!--
+ <tab class="nagiosAccount" name="Nagios" />
+-->
</usertabs>
+ <mimetabs>
+ <tab class="mimetype" name="Generic" />
+ </mimetabs>
+
<grouptabs>
<tab class="group" name="Generic" />
<tab class="environment" name="Environment" />
<tab class="reference" name="References" />
</macrotabs>
+<!--
+ <arpnewdevicetabs>
+ <tab class="ArpNewDevice" name="Generic" />
+ </arpnewdevicetabs>
+-->
+
<termtabs>
<tab class="termgeneric" name="Generic" />
<tab class="termstartup" name="Startup" />
<tab class="termservice" name="Devices" />
- <tab class="printgeneric" name="Printer" />
- <tab class="terminfo" name="Information" />
+ <tab class="terminfo" name="Information"
+ snmpcommunity="{$cv.optional.snmpcommunity}" />
+ <tab class="glpiAccount" name="Inventory" />
<tab class="reference" name="References" />
</termtabs>
<servtabs>
<tab class="servgeneric" name="Generic" />
+ <tab class="workstartup" name="Startup" />
<tab class="servdb" name="Databases" />
<tab class="servservice" name="Services" />
- {servKolab}
- <tab class="terminfo" name="Information" />
+{if $cv.mail == "kolab"}
+ <tab class="servkolab" name="Kolab"/>
+{/if}
+ <tab class="servrepository" name="Repository" />
+{if $cv.enableFAI_management}
+ <tab class="faiSummaryTab" name="FAI summary" />
+{else}
+<!-- <tab class="faiSummaryTab" name="FAI summary" /> -->
+{/if}
+{if $cv.generic_settings.enableDNS}
+ <tab class="servdns" name="DNS" />
+{else}
+<!-- <tab class="servdns" name="DNS" /> -->
+{/if}
+{if $cv.generic_settings.enableDHCP}
+ <tab class="servdhcp" name="DHCP" />
+{else}
+<!-- <tab class="servdhcp" name="DHCP" /> -->
+{/if}
+ <tab class="terminfo" name="Information"
+ snmpcommunity="{$cv.optional.snmpcommunity}" />
+ <tab class="glpiAccount" name="Inventory" />
<tab class="reference" name="References" />
</servtabs>
<tab class="workstartup" name="Startup" />
<tab class="workservice" name="Devices" />
<tab class="printgeneric" name="Printer" />
- <tab class="terminfo" name="Information" />
+ <tab class="terminfo" name="Information"
+ snmpcommunity="{$cv.optional.snmpcommunity}" />
+{if $cv.enableFAI_management}
+ <tab class="faiSummaryTab" name="FAI summary" />
+{else}
+<!-- <tab class="faiSummaryTab" name="FAI summary" /> -->
+{/if}
+ <tab class="glpiAccount" name="Inventory" />
<tab class="reference" name="References" />
</worktabs>
<printtabs>
<tab class="printgeneric" name="Generic" />
+ <tab class="glpiPrinterAccount" name="Inventory" />
<tab class="reference" name="References" />
</printtabs>
- <phonetabs>
- <tab class="phonegeneric" name="Generic" />
- <tab class="reference" name="References" />
- </phonetabs>
+ <phonetabs>
+ <tab class="phonegeneric" name="Generic" />
+ <tab class="glpiAccount" name="Inventory" />
+ <tab class="reference" name="References" />
+ </phonetabs>
- <componenttabs>
- <tab class="componentgeneric" name="Generic" />
- <tab class="reference" name="References" />
- </componenttabs>
+ <serverservice>
+ <tab class="goMailServer" />
+ <tab class="goNtpServer" />
+ <tab class="servrepository" />
+ <tab class="goImapServer" />
+ <tab class="goKrbServer" />
+ <tab class="goFaxServer" />
+ <tab class="goFonServer" />
+ <tab class="goLogDBServer" />
+ <tab class="goGlpiServer" />
+ <tab class="goCupsServer" />
+ <tab class="goSyslogServer" />
+ <tab class="goTerminalServer" />
+ <tab class="goLdapServer" />
+ <tab class="goShareServer" />
+ </serverservice>
+
+ <componenttabs>
+ <tab class="componentgeneric" name="Generic" />
+ <tab class="glpiAccount" name="Inventory" />
+ <tab class="reference" name="References" />
+ </componenttabs>
<wintabs>
<tab class="wingeneric" name="Generic" />
+ <tab class="glpiAccount" name="Inventory" />
<tab class="reference" name="References" />
</wintabs>
<deptabs>
<tab class="department" name="Generic" />
- <tab class="reference" name="References" />
</deptabs>
<ogrouptabs>
<tab class="ogroup" name="Generic" />
- <tab class="reference" name="References" />
</ogrouptabs>
<connectivity>
- {kolabAccount}<tab class="proxyAccount" />
+{if $cv.mail == "kolab"}
+ <tab class='kolabAccount' />
+{/if}
+ <tab class="proxyAccount" />
<tab class="pureftpdAccount" />
<tab class="webdavAccount" />
<tab class="phpgwAccount" />
<tab class="intranetAccount" />
-<!-- <tab class="pptpAccount" /> -->
-<!-- <tab class="phpscheduleitAccount" /> -->
+<!--
+ <tab class="opengwAccount"
+ username="OGo"
+ password=""
+ database="OGo"
+ datahost="localhost" />
+-->
+<!--
+ <tab class="pptpAccount" />
+ <tab class="phpscheduleitAccount" />
+ <tab class="glpiAccount" />
+-->
</connectivity>
<ldiftab>
<tab class="csvimport" name="CSV Import" />
</ldiftab>
+{if $cv.enableFAI_management}
+ <faipartitiontabs>
+ <tab class="faiPartitionTable" name="Partitions" />
+ </faipartitiontabs>
+
+ <faiscripttabs>
+ <tab class="faiScript" name="Script" />
+ </faiscripttabs>
+
+ <faihooktabs>
+ <tab class="faiHook" name="Hooks" />
+ </faihooktabs>
+
+ <faivariabletabs>
+ <tab class="faiVariable" name="Variables" />
+ </faivariabletabs>
+
+ <faitemplatetabs>
+ <tab class="faiTemplate" name="Templates" />
+ </faitemplatetabs>
+
+ <faiprofiletabs>
+ <tab class="faiProfile" name="Profiles" />
+ <tab class="faiSummaryTab" name="Summary" />
+ </faiprofiletabs>
+
+ <faipackagetabs>
+ <tab class="faiPackage" name="Packages" />
+ </faipackagetabs>
+{else}
+<!--
<faipartitiontabs>
- <tab class="faiPartitionTable" name="Partitions" />
+ <tab class="faiPartitionTable" name="Partitions" />
</faipartitiontabs>
<faiscripttabs>
- <tab class="faiScript" name="Script" />
+ <tab class="faiScript" name="Script" />
</faiscripttabs>
<faihooktabs>
- <tab class="faiHook" name="Hooks" />
+ <tab class="faiHook" name="Hooks" />
</faihooktabs>
<faivariabletabs>
- <tab class="faiVariable" name="Variables" />
+ <tab class="faiVariable" name="Variables" />
</faivariabletabs>
<faitemplatetabs>
- <tab class="faiTemplate" name="Templates" />
+ <tab class="faiTemplate" name="Templates" />
</faitemplatetabs>
<faiprofiletabs>
- <tab class="faiProfile" name="Profiles" />
+ <tab class="faiProfile" name="Profiles" />
+ <tab class="faiSummaryTab" name="Summary" />
</faiprofiletabs>
<faipackagetabs>
- <tab class="faiPackage" name="Packages" />
+ <tab class="faiPackage" name="Packages" />
</faipackagetabs>
+-->
+{/if}
- <main default="{LOCATIONNAME}"
- compile="/var/spool/gosa"
- lang=""
- theme="default"
- debuglevel="0"
+ <main default="{$cv.location}"
+{if $cv.optional.list_summary}
+ list_summary="true"
+{else}
+ list_summary="false"
+{/if}
+{if $cv.pwd_rules.pwminlen_active}
+ pwminlen="{$cv.pwd_rules.pwminlen}"
+{/if}
+{if $cv.pwd_rules.pwdiffer_active}
+ pwdiffer="{$cv.pwd_rules.pwdiffer}"
+{/if}
+{if $cv.pwd_rules.externalpwdhook_active}
+ externalpwdhook="{$cv.pwd_rules.externalpwdhook}"
+{/if}
+{if $cv.errorlvl}
+ displayerrors="true"
+{else}
+ displayerrors="false"
+{/if}
+{if $cv.enable_schema_check}
+ schema_check="true"
+{else}
+ schema_check="false"
+{/if}
+{if $cv.generic_settings.enableCopyPaste}
+ enableCopyPaste="true"
+{else}
+ enableCopyPaste="false"
+{/if}
+{if $cv.optional.forceglobals}
+ forceglobals="true"
+{else}
+ forceglobals="false"
+{/if}
+{if $cv.optional.forcessl}
+ forcessl="true"
+{else}
forcessl="false"
+{/if}
+{if $cv.optional.ldapstats}
+ ldapstats="true"
+{else}
+ ldapstats="false"
+{/if}
+{if $cv.optional.warnssl}
+ warnssl="true"
+{else}
warnssl="false"
- iconsize="48x48"
- pwminlen="6"
- forceglobals="false"
- smbhash='{SMBHASH}'
- displayerros="{errorlvl}">
-
- <location name="{LOCATIONNAME}"
- uidbase="1000"
- governmentmode="{GOVERNMENTMODE}"
- sambaversion="{SAMBAVERSION}"
- {SID}
- {RIDBASE}
- mailMethod="{MAILMETHOD}"
- hash="{CRYPT}"
- dnmode="{DNMODE}"
- server="{LDAPHOST}"
- config="ou=gosa,ou=configs,ou=systems,{LDAPBASE}">
-
- <referral url="{LDAPHOST}/{LDAPBASE}"
- admin="{LDAPADMIN}"
- password="{PASSWORD}" />
- </location>
+{/if}
+{if $cv.optional.ppd_path_active}
+ ppd_path="{$cv.optional.ppd_path}"
+{/if}
+{if $cv.optional.max_ldap_query_time_active}
+ max_ldap_query_time="{$cv.optional.max_ldap_query_time}"
+{/if}
+{if $cv.optional.noprimarygroup}
+ noprimarygroup="true"
+{/if}
+{if $cv.optional.mailQueueScriptPath_active}
+ mailQueueScriptPath="{$cv.optional.mailQueueScriptPath}"
+{/if}
+{if $cv.optional.auto_network_hook_active}
+ auto_network_hook="{$cv.optional.auto_network_hook} "
+{/if}
+ lang="{$cv.lang_selected}"
+ theme="{$cv.theme}"
+ session_lifetime="{$cv.optional.session_lifetime}"
+ compile="{$cv.optional.compile}"
+ debuglevel="{$cv.optional.debuglevel}"
+ smbhash='{$cv.samba_settings.smbhash}'
+ >
- <language name="German" tag="de_DE" />
- <language name="Russian" tag="ru_RU" />
- <language name="Spanish" tag="es_ES" />
- <language name="French" tag="fr_FR" />
- <language name="Dutch" tag="nl_NL" />
- <language name="English" tag="en_EN" />
- <language name="Italian" tag="it_IT" />
-
- <faxformat type="pdf" />
- <faxformat type="ps" />
- <faxformat type="png" />
- <faxformat type="mtiff" />
- <faxformat type="tiff" />
+ <location name="{$cv.location}"
+ hash="{$cv.encryption}"
+ dnmode="{$cv.peopledn}"
+ server="{$cv.connection}"
+ people="{$cv.peopleou}"
+ groups="{$cv.groupou}"
+ gidbase="{$cv.uidbase}"
+ uidbase="{$cv.uidbase}"
+{if $cv.optional.auth_mail}
+ auth_mail="true"
+{else}
+ auth_mail="false"
+{/if}
+{if $cv.optional.strict_units}
+ strict_units="true"
+{else}
+ strict_units="false"
+{/if}
+{if $cv.krbsasl}
+ krbsasl="true"
+{else}
+ krbsasl="false"
+{/if}
+{if $cv.rfc2307bis}
+ rfc2307bis="true"
+{else}
+ rfc2307bis="false"
+{/if}
+{if $cv.include_personal_title}
+ include_personal_title="true"
+{else}
+ include_personal_title="false"
+{/if}
+{if $cv.optional.notifydir_active }
+ notifydir="{$cv.optional.notifydir}"
+{/if}
+{if $cv.base_hook_active}
+ base_hook="{$cv.base_hook}"
+{/if}
+{if $cv.generic_settings.wws_ou_active}
+ winstations="{$cv.generic_settings.wws_ou}"
+{/if}
+{if $cv.id_settings.idgen_active}
+ idgen="{$cv.id_settings.idgen}"
+{/if}
+{if $cv.strict}
+ strict="yes"
+{else}
+ strict="no"
+{/if}
+{if $cv.id_settings.minid_active}
+ minid="{$cv.id_settings.minid}"
+{/if}
+{if $cv.mail != "disabled"}
+ mailMethod="{$cv.mail}"
+{if $cv.cyrusunixstyle}
+ cyrusunixstyle="true"
+{else}
+ cyrusunixstyle="false"
+{/if}
+ mail_uattrib="{$cv.mail_attrib}"
+{if $cv.mail_settings.vacationdir_active}
+ vacationdir="{$cv.mail_settings.vacationdir}"
+{/if}
+{/if}
+{if $cv.tls}
+ tls="true"
+{/if}
+{if $cv.governmentmode}
+ governmentmode="true"
+{else}
+ governmentmode="false"
+{/if}
+{if $cv.sambaidmapping}
+ sambaidmapping="true"
+{/if}
+{if $cv.account_expiration}
+ account_expiration="true"
+{/if}
+{if $cv.samba_settings.samba_sid_active}
+ SID="{$cv.samba_settings.samba_sid}"
+{/if}
+{if $cv.samba_settings.samba_rid_active}
+ RIDBASE="{$cv.samba_settings.samba_rid_active}"
+{/if}
+{if $cv.samba_version != 0}
+ sambaversion="{$cv.samba_version}"
+{else}
+ sambaversion="3"
+{/if}
+ config="ou=gosa,ou=configs,ou=systems,{$cv.base}">
+
+ <referral url="{$cv.connection}/{$cv.base}"
+ admin="{$cv.admin}"
+ password="{$cv.password}" />
+ </location>
</main>
</conf>