plugins/kolab_delegation
Daniel Hoffend
hoffend at kolabsys.com
Sat Apr 11 11:30:32 CEST 2015
plugins/kolab_delegation/config.inc.php.dist | 2 +-
plugins/kolab_delegation/kolab_delegation_engine.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 620985d0f1482bc11e5a592ee82531332544877f
Author: Daniel Hoffend <dh at dotlan.net>
Date: Sat Apr 11 11:29:44 2015 +0200
set default delegation filter to include mail addresses of shared mailboxes
diff --git a/plugins/kolab_delegation/config.inc.php.dist b/plugins/kolab_delegation/config.inc.php.dist
index efa47e6..12e04d5 100644
--- a/plugins/kolab_delegation/config.inc.php.dist
+++ b/plugins/kolab_delegation/config.inc.php.dist
@@ -2,7 +2,7 @@
// This will overwrite defined LDAP filter
// Note: LDAP addressbook defined for kolab_auth plugin is used
-$config['kolab_delegation_filter'] = '(objectClass=kolabInetOrgPerson)';
+$config['kolab_delegation_filter'] = '(|(objectClass=kolabInetOrgPerson)(&(objectclass=kolabsharedfolder)(kolabFolderType=mail)))';
// Delegates field (from fieldmap configuration) to get delegates list
// Note: This is a field name, not LDAP attribute name
diff --git a/plugins/kolab_delegation/kolab_delegation_engine.php b/plugins/kolab_delegation/kolab_delegation_engine.php
index be16cf6..88e4563 100644
--- a/plugins/kolab_delegation/kolab_delegation_engine.php
+++ b/plugins/kolab_delegation/kolab_delegation_engine.php
@@ -223,7 +223,7 @@ class kolab_delegation_engine
}
// Default filter of LDAP queries
- $this->ldap_filter = $this->rc->config->get('kolab_delegation_filter', '(objectClass=kolabInetOrgPerson)');
+ $this->ldap_filter = $this->rc->config->get('kolab_delegation_filter', '(|(objectClass=kolabInetOrgPerson)(&(objectclass=kolabsharedfolder)(kolabFolderType=mail)))');
// Name of the LDAP field for delegates list
$this->ldap_delegate_field = $this->rc->config->get('kolab_delegation_delegate_field', 'kolabDelegate');
// Encoded LDAP DN of current user, set on login by kolab_auth plugin
More information about the commits
mailing list