From 96bed2d50758a73d754adf62f70bf59e322e6953 Mon Sep 17 00:00:00 2001
From: "Jens-U. Mozdzen" <jmozdzen@nde.ag>
Date: Tue, 27 Nov 2012 18:35:12 +0100
Subject: [PATCH 1/2] bug #11737: include LDAP configuration options when
 selecting Kolab driver


Signed-off-by: Jens-U. Mozdzen <jmozdzen@nde.ag>
---
 horde/config/conf.xml |   35 ++++++++++++++++++++++++++++++++++-
 1 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/horde/config/conf.xml b/horde/config/conf.xml
index 968066b..29baba2 100644
--- a/horde/config/conf.xml
+++ b/horde/config/conf.xml
@@ -880,7 +880,40 @@
    <configheader>Groups Settings</configheader>
    <configswitch name="driver" desc="What backend should we use for Horde
    Groups?">Sql
-    <case name="Kolab" desc="Kolab"/>
+    <case name="Kolab" desc="Kolab">
+     <configsection name="params">
+      <configldap switchname="driverconfig">
+       <configstring name="gid" desc="The group search key">cn</configstring>
+       <configstring name="memberuid" desc="Group membership field">
+       memberUid</configstring>
+       <configboolean name="attrisdn" required="false"
+        desc="If checked, the user member attributes returned from LDAP are
+       expected to be fully qualified DNs"/>
+       <configlist name="newgroup_objectclass" desc="What objectclasses should
+       a new group be member of? These objectclasses should cover the mail and
+       gidnumber attributes as well as the group search key">
+       posixGroup,hordeGroup</configlist>
+       <configstring name="writedn" desc="DN used to bind for creating and
+       editing LDAP groups." required="false"/>
+       <configstring name="writepw" desc="Password for bind DN."
+       required="false"/>
+       <configsection name="search">
+        <configswitch name="filter_type" desc="How to specify a filter for the
+        group lists">objectclass
+         <case name="objectclass" desc="One or more objectclass filters">
+          <configlist name="objectclass" desc="The objectclass filter used to
+          search for groups. Can be a single objectclass or a list.">
+          posixGroup</configlist>
+         </case>
+         <case name="filter" desc="A complete LDAP filter expression">
+          <configstring name="filter" desc="The LDAP RFC formatted filter used
+          to search for groups."/>
+         </case>
+        </configswitch>
+       </configsection>
+      </configldap>
+     </configsection>
+    </case>
     <case name="Ldap" desc="LDAP">
      <configsection name="params">
       <configldap switchname="driverconfig">
-- 
1.7.7