Projects
Kolab:3.4
pykolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 124
View file
pykolab.spec
Changed
@@ -38,6 +38,8 @@ Patch0001: 0001-Configure-the-skin-based-on-the-available-skins.patch Patch0002: 0002-Use-the-correct-scheme-hostname-and-port-if-so-confi.patch +Patch0003: 0003-Fix-typo-Thanks-Timotheus.patch +Patch0004: 0004-Use-the-configured-ldap-domain_filter-setting-in-_ko.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch @@ -205,6 +207,8 @@ %patch0001 -p1 %patch0002 -p1 +%patch0003 -p1 +%patch0004 -p1 %build autoreconf -v @@ -528,6 +532,9 @@ %attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab/wallace %changelog +* Thu Dec 11 2014 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 0.7.4-4 +- Fix #4076 domain filter inconsistency. + * Tue Dec 9 2014 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 0.7.4-3 - Use the correct scheme, hostname and port if so configured - Set the skin to used based on the available skins
View file
0001-Configure-the-skin-based-on-the-available-skins.patch
Changed
@@ -1,7 +1,7 @@ From 5f711b830a66fd1795953193b8bfb82986568193 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> Date: Tue, 9 Dec 2014 13:01:47 +0100 -Subject: [PATCH] Configure the skin based on the available skins +Subject: [PATCH 1/4] Configure the skin based on the available skins --- pykolab/setup/setup_roundcube.py | 6 ++++++
View file
0002-Use-the-correct-scheme-hostname-and-port-if-so-confi.patch
Changed
@@ -1,7 +1,7 @@ From 5db950d92bebf130d09fc7aeb53e3d0241aa84af Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> Date: Tue, 9 Dec 2014 19:18:08 +0100 -Subject: [PATCH 2/2] Use the correct scheme, hostname and port if so +Subject: [PATCH 2/4] Use the correct scheme, hostname and port if so configured ---
View file
0003-Fix-typo-Thanks-Timotheus.patch
Added
@@ -0,0 +1,25 @@ +From a48d1eb0ddfe2bece439344aedaecae2770d3a79 Mon Sep 17 00:00:00 2001 +From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> +Date: Wed, 10 Dec 2014 19:17:28 +0100 +Subject: [PATCH 3/4] Fix typo (Thanks Timotheus) + +--- + pykolab/setup/setup_roundcube.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pykolab/setup/setup_roundcube.py b/pykolab/setup/setup_roundcube.py +index d7442b4..c6a0e33 100644 +--- a/pykolab/setup/setup_roundcube.py ++++ b/pykolab/setup/setup_roundcube.py +@@ -90,7 +90,7 @@ def execute(*args, **kw): + + if os.access('/usr/share/roundcubemail/skins/enterprise/', os.R_OK): + rc_settings['skin'] = 'enterprise' +- elif os.access('/usr/share/roundcubemail/skin/chameleon/', os_R_OK): ++ elif os.access('/usr/share/roundcubemail/skin/chameleon/', os.R_OK): + rc_settings['skin'] = 'chameleon' + else: + rc_settings['skin'] = 'larry' +-- +1.9.3 +
View file
0004-Use-the-configured-ldap-domain_filter-setting-in-_ko.patch
Added
@@ -0,0 +1,58 @@ +From cdfc34e7de1d8174d97d5ba2e1caf828a7f6bae7 Mon Sep 17 00:00:00 2001 +From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> +Date: Thu, 11 Dec 2014 14:33:16 +0100 +Subject: [PATCH 4/4] Use the configured [ldap] domain_filter setting in + _kolab_find_root_dn() (#4076) + +--- + pykolab/auth/ldap/__init__.py | 13 +++++++++---- + 1 file changed, 9 insertions(+), 4 deletions(-) + +diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py +index c5b98c3..e6f43b3 100644 +--- a/pykolab/auth/ldap/__init__.py ++++ b/pykolab/auth/ldap/__init__.py +@@ -2140,19 +2140,22 @@ class LDAP(pykolab.base.Base): + + domain_base_dn = conf.get('ldap', 'domain_base_dn', quiet=True) + +- if not domain_base_dn == "": ++ domain_filter = conf.get('ldap', 'domain_filter') ++ ++ if not domain == None: ++ domain_filter = domain_filter.replace('*', domain) + +- # If we haven't returned already, let's continue searching +- domain_name_attribute = conf.get('ldap', 'domain_name_attribute') ++ if not domain_base_dn == "": + + _results = self._search( + domain_base_dn, + ldap.SCOPE_SUBTREE, +- "(%s=%s)" % (domain_name_attribute,domain), ++ domain_filter, + override_search='_regular_search' + ) + + domains = [] ++ + for _domain in _results: + (domain_dn, _domain_attrs) = _domain + domain_rootdn_attribute = conf.get( +@@ -2163,11 +2166,13 @@ class LDAP(pykolab.base.Base): + if _domain_attrs.has_key(domain_rootdn_attribute): + self.domain_rootdns[domain] = _domain_attrs[domain_rootdn_attribute] + return _domain_attrs[domain_rootdn_attribute] ++ + else: + if isinstance(_domain_attrs[domain_name_attribute], list): + domain = _domain_attrs[domain_name_attribute][0] + else: + domain = _domain_attrs[domain_name_attribute] ++ + else: + if conf.has_option('ldap', 'base_dn'): + return conf.get('ldap', 'base_dn') +-- +1.9.3 +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.