Projects
Kolab:Winterfell
kolab-autoconf
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 15
View file
kolab-autoconf.spec
Changed
@@ -30,7 +30,7 @@ Name: kolab-autoconf Version: 1.3.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Autodiscovery for clients of Kolab Groupware Group: Applications/Internet @@ -39,6 +39,8 @@ Source0: http://mirror.kolabsys.com/pub/releases/%{name}-%{version}.tar.gz +Patch0002: 0002-fix-return-value-of-init_ldap.patch + %if 0%{?plesk} < 1 Requires: php-kolab-net-ldap3 %endif @@ -53,6 +55,8 @@ %prep %setup -q +%patch0002 -p1 + %build %install @@ -83,6 +87,9 @@ %attr(0750,%{httpd_user},%{httpd_group}) %{_var}/log/%{name} %changelog +* Wed Apr 10 2019 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 1.3.1-2 +- Fix init_ldap() + * Mon Mar 18 2019 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 1.3.1-1 - Release 1.3.1
View file
0002-fix-return-value-of-init_ldap.patch
Added
@@ -0,0 +1,44 @@ +From bbd4949ef5309598d8e439cf61a43760b7ddb616 Mon Sep 17 00:00:00 2001 +From: Daniel Hoffend <dh@dotlan.net> +Date: Wed, 10 Apr 2019 12:15:31 +0200 +Subject: [PATCH 2/2] fix return value of init_ldap() + +Summary: +init_ldap doesn't return true on success + +autoconf doesn't lookup the username in ldap because init_ldap() always returns +null, but get_user() expects a non-false response. + +Reviewers: machniak, vanmeeuwen + +Reviewed By: machniak + +Differential Revision: https://git.kolab.org/D737 +--- + lib/Autodiscover.php | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/lib/Autodiscover.php b/lib/Autodiscover.php +index 9031fa9..33cda73 100644 +--- a/lib/Autodiscover.php ++++ b/lib/Autodiscover.php +@@ -236,12 +236,16 @@ class Autodiscover + // connect to LDAP + if (!$this->ldap->connect()) { + $this->error("Storage connection failed"); ++ return false; + } + + // bind as the service user + if (!$this->ldap->bind($this->_ldap_bind_dn, $this->_ldap_bind_pw)) { + $this->error("Storage connection failed"); ++ return false; + } ++ ++ return true; + } + + /** +-- +2.20.1 +
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +kolab-autoconf (1.3.1-2) unstable; urgency=medium + + * Fix init_ldap() + + -- Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Wed, 10 Apr 2019 16:24:02 +0100 + kolab-autoconf (1.3.1-1) unstable; urgency=medium * Release of version 1.3.1.
View file
debian.series
Added
@@ -0,0 +1,1 @@ +0002-fix-return-value-of-init_ldap.patch -p1
View file
kolab-autoconf.dsc
Changed
@@ -2,7 +2,7 @@ Source: kolab-autoconf Binary: kolab-autoconf Architecture: all -Version: 1.3.1-1 +Version: 1.3.1-2 Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Tobias Brunner <tobias.brunner@vshn.ch> 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
.