summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/setup/setup_roundcube.py1
-rw-r--r--share/templates/roundcubemail/kolab_delegation.inc.php.tpl26
2 files changed, 27 insertions, 0 deletions
diff --git a/pykolab/setup/setup_roundcube.py b/pykolab/setup/setup_roundcube.py
index 215da69..e375f9b 100644
--- a/pykolab/setup/setup_roundcube.py
+++ b/pykolab/setup/setup_roundcube.py
@@ -92,6 +92,7 @@ def execute(*args, **kw):
'calendar.inc.php',
'config.inc.php',
'kolab_auth.inc.php',
+ 'kolab_delegation.inc.php',
'kolab_files.inc.php',
'kolab_folders.inc.php',
'libkolab.inc.php',
diff --git a/share/templates/roundcubemail/kolab_delegation.inc.php.tpl b/share/templates/roundcubemail/kolab_delegation.inc.php.tpl
new file mode 100644
index 0000000..563534d
--- /dev/null
+++ b/share/templates/roundcubemail/kolab_delegation.inc.php.tpl
@@ -0,0 +1,26 @@
+<?php
+ // This will overwrite defined LDAP filter
+ // Note: LDAP addressbook defined for kolab_auth plugin is used
+ \$config['kolab_delegation_filter'] = '(|(objectClass=kolabInetOrgPerson)(objectclass=kolabsharedfolder))';
+
+ // Delegates field (from fieldmap configuration) to get delegates list
+ // Note: This is a field name, not LDAP attribute name
+ // Note: LDAP addressbook defined for kolab_auth plugin is used
+ \$config['kolab_delegation_delegate_field'] = 'kolabDelegate';
+
+ // User authentication ID field (from fieldmap configuration)
+ // See kolab_auth plugin config
+ \$config['kolab_delegation_login_field'] = 'email';
+
+ // Use this fields (from fieldmap configuration) for identities
+ // If the value array contains more than one field, first non-empty will be used
+ // Note: These are not LDAP attributes, but field names in config
+ // Note: If there are more than one email address, as many identities will be created
+ // See kolab_auth plugin config
+ \$config['kolab_delegation_name_field'] = array('name', 'cn');
+ \$config['kolab_delegation_email_field'] = array('email');
+
+ // Remove all user identities which do not match the users primary or alias
+ // addresses and delegators addresses
+ \$config['kolab_delegation_purge_identities'] = false;
+?>