summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-19 13:46:41 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-10-30 14:59:48 +0100
commit4b6fac4d3334b4cfb263d72c211110eb407081b0 (patch)
tree50b4be4c86da61070034c927996d9d52be04dffc
parentb3075ccc75da882d5e18dc90230082d219696ad8 (diff)
downloadpykolab-4b6fac4d3334b4cfb263d72c211110eb407081b0.tar.gz
Work around fsockopen() taking OpenSSL's default cert validation routines (#3332)
-rw-r--r--pykolab/setup/setup_freebusy.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pykolab/setup/setup_freebusy.py b/pykolab/setup/setup_freebusy.py
index b255bc3..83baf6e 100644
--- a/pykolab/setup/setup_freebusy.py
+++ b/pykolab/setup/setup_freebusy.py
@@ -78,6 +78,10 @@ def execute(*args, **kw):
if scheme == None or scheme == "":
scheme = 'imaps'
+ if scheme == "imaps" and port == 993:
+ scheme = "imap"
+ port = 143
+
resources_imap_uri = '%s://%s:%s@%s:%s/%%kolabtargetfolder?acl=lrs' % (scheme, admin_login, admin_password, hostname, port)
users_imap_uri = '%s://%%s:%s@%s:%s/?proxy_auth=%s' % (scheme, admin_password, hostname, port, admin_login)