pykolab/auth
Jeroen van Meeuwen
vanmeeuwen at kolabsys.com
Thu Aug 14 14:47:36 CEST 2014
pykolab/auth/ldap/__init__.py | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit b006de19c34ef3678d30fa67c88baf5ce300f733
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date: Thu Aug 14 14:47:05 2014 +0200
Correct the folder path at the earliest opportunity to avoid mis-firing set acl commands (#3315)
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index c276403..23b80e8 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -1214,6 +1214,9 @@ class LDAP(pykolab.base.Base):
else:
folder_path = entry['cn']
+ if not folder_path.startswith('shared/'):
+ folder_path = "shared/%s" % folder_path
+
folderacl_entry_attribute = self.config_get('sharedfolder_acl_entry_attribute')
if folderacl_entry_attribute == None:
folderacl_entry_attribute = 'acl'
@@ -1593,6 +1596,9 @@ class LDAP(pykolab.base.Base):
else:
folder_path = entry['cn']
+ if not folder_path.startswith('shared/'):
+ folder_path = "shared/%s" % folder_path
+
folderacl_entry_attribute = self.config_get('sharedfolder_acl_entry_attribute')
if folderacl_entry_attribute == None:
folderacl_entry_attribute = 'acl'
@@ -1802,6 +1808,9 @@ class LDAP(pykolab.base.Base):
else:
folder_path = entry['cn']
+ if not folder_path.startswith('shared/'):
+ folder_path = "shared/%s" % folder_path
+
if not self.imap.shared_folder_exists(folder_path):
self.imap.shared_folder_create(folder_path, server)
More information about the commits
mailing list