Projects
Kolab:16
iRony
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 19
View file
iRony.spec
Changed
@@ -38,7 +38,7 @@ Name: iRony Version: 0.4.2 -Release: 2%{?dist} +Release: 4%{?dist} Summary: DAV for Kolab Groupware Group: Applications/Internet @@ -51,6 +51,7 @@ Source2: iRony.logrotate Patch0001: 0001-Avoid-refering-to-kolab_auth-if-it-isn-t-actually-th.patch +Patch0002: 0001-Support-shortlogins-via-the-username_domain-configur.patch BuildArch: noarch @@ -104,6 +105,7 @@ %setup -q %patch0001 -p1 +%patch0002 -p1 %build rm -rvf vendor/sabre @@ -189,6 +191,9 @@ %attr(0770,%{httpd_user},%{httpd_group}) %{_localstatedir}/log/%{name} %changelog +* Tue Apr 23 2019 Christian Mollekopf (Kolab Systems) <mollekopf@kolabsys.com> - 0.4.2-4 +- Support shortlogins via the username_domain configuration option + * Thu Apr 11 2019 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 0.4.2-2 - Avoid referring to kolab_auth if it isn't actually installed
View file
0001-Support-shortlogins-via-the-username_domain-configur.patch
Added
@@ -0,0 +1,53 @@ +From 51ba8a44fbe920b901b1cdd07777dfe3a45b80db Mon Sep 17 00:00:00 2001 +From: Christian Mollekopf <mollekopf@kolabsys.com> +Date: Wed, 17 Apr 2019 11:48:36 +0200 +Subject: [PATCH] Support shortlogins via the username_domain configuration + option. + +Summary: Same logic as roundcubemail/program/lib/Roundcube/rcube_imap.php + +Differential Revision: https://git.kolab.org/D755 +--- + lib/Kolab/DAV/Auth/HTTPBasic.php | 19 +++++++++++++++++++ + 1 file changed, 19 insertions(+) + +diff --git a/lib/Kolab/DAV/Auth/HTTPBasic.php b/lib/Kolab/DAV/Auth/HTTPBasic.php +index 616c752..687c4a5 100644 +--- a/lib/Kolab/DAV/Auth/HTTPBasic.php ++++ b/lib/Kolab/DAV/Auth/HTTPBasic.php +@@ -175,6 +175,7 @@ class HTTPBasic extends DAV\Auth\Backend\AbstractBasic + $storage = $rcube->get_storage(); + $login_lc = $rcube->config->get('login_lc'); + $default_port = $rcube->config->get('default_port', 143); ++ $username_domain = $rcube->config->get('username_domain'); + + // parse $host + $a_host = parse_url($host); +@@ -193,6 +194,24 @@ class HTTPBasic extends DAV\Auth\Backend\AbstractBasic + $port = $default_port; + } + ++ // Check if we need to add/force domain to username ++ if (!empty($username_domain)) { ++ $domain = is_array($username_domain) ? $username_domain[$host] : $username_domain; ++ ++ if ($domain = rcube_utils::parse_host((string)$domain, $host)) { ++ $pos = strpos($username, '@'); ++ ++ // force configured domains ++ if ($pos !== false && $rcube->config->get('username_domain_forced')) { ++ $username = substr($username, 0, $pos) . '@' . $domain; ++ } ++ // just add domain if not specified ++ else if ($pos === false) { ++ $username .= '@' . $domain; ++ } ++ } ++ } ++ + // Convert username to lowercase. If storage backend + // is case-insensitive we need to store always the same username + if ($login_lc) { +-- +2.20.1 +
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +irony (0.4.2-1~kolab4) unstable; urgency=low + + * Support shortlogins via the username_domain configuration option. + + -- Christian Mollekopf (Kolab Systems) <mollekopf@kolabys.com> Tue, 23 Apr 2019 12:12:12 +0100 + irony (0.4.2-1~kolab3) unstable; urgency=low * Adjusted iRony.logrotate according to new filenames
View file
debian.series
Changed
@@ -1,2 +1,3 @@ add-sabre21-path-for-debian.patch -p1 0001-Avoid-refering-to-kolab_auth-if-it-isn-t-actually-th.patch -p1 +0001-Support-shortlogins-via-the-username_domain-configur.patch -p1
View file
iRony.dsc
Changed
@@ -2,7 +2,7 @@ Source: irony Binary: irony Architecture: all -Version: 0.4.2-1~kolab3 +Version: 0.4.2-1~kolab4 Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Paul Klos <kolab@klos2day.nl> Homepage: http://www.kolab.org/
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
.