Projects
Kolab:3.4
php-pear-Net-LDAP3
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 12
View file
php-pear-Net-LDAP3.spec
Changed
@@ -31,6 +31,7 @@ URL: http://kolab.org Source0: pear-Net-LDAP3-%{version}.tar.gz +Patch0: 0001-Correct-variable-used-to-determine-acl-rights.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -46,6 +47,8 @@ %prep %setup -q -n pear-Net-LDAP3-%{version} +%patch0 -p1 + %build %install @@ -68,6 +71,9 @@ %{_datadir}/%{php}/Net/LDAP3/Result.php %changelog +* Wed Oct 1 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0.1-2 +- Correct variable naming in parse_aclrights() + * Wed Sep 10 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0.1-1 - New upstream release w/ Oracle DSEE aclRights support for effectiveRights.
View file
0001-Correct-variable-used-to-determine-acl-rights.patch
Added
@@ -0,0 +1,25 @@ +From 14269316c5a7b1ab1ec34da52bfe3565c4dfaf94 Mon Sep 17 00:00:00 2001 +From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> +Date: Wed, 1 Oct 2014 14:36:18 +0200 +Subject: [PATCH] Correct variable used to determine acl rights + +--- + lib/Net/LDAP3.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php +index b1e0572..82bc055 100644 +--- a/lib/Net/LDAP3.php ++++ b/lib/Net/LDAP3.php +@@ -2291,7 +2291,7 @@ class Net_LDAP3 + } + + private function parse_aclrights(&$attributes, $attribute_value) { +- $components = explode(':', $rights); ++ $components = explode(':', $attribute_value); + $_acl_target = array_shift($components); + $_acl_value = trim(implode(':', $components)); + +-- +1.9.3 +
View file
no-password-logging_fix-fatal-error.patch
Deleted
@@ -1,104 +0,0 @@ -diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php -index 1b3ac73..86c6310 100644 ---- a/lib/Net/LDAP3.php -+++ b/lib/Net/LDAP3.php -@@ -481,7 +481,7 @@ class Net_LDAP3 - return true; - } - -- $this->_debug("C: Bind [dn: $bind_dn] [pass: $bind_pw]"); -+ $this->_debug("C: Bind [dn: $bind_dn]"); - - if (@ldap_bind($this->conn, $bind_dn, $bind_pw)) { - $this->_debug("S: OK"); -@@ -742,9 +742,14 @@ class Net_LDAP3 - '"*"', - ); - -- $command = implode(' ', $command); -+ // remove password from debug log -+ $command_debug = $command; -+ $command_debug[11] = '*'; - -- $this->_debug("LDAP: Executing command: $command"); -+ $command = implode(' ', $command); -+ $command_debug = implode(' ', $command_debug); -+ -+ $this->_debug("LDAP: Executing command: $command_debug"); - - exec($command, $output, $return_code); - -@@ -987,7 +992,9 @@ class Net_LDAP3 - - $result = $ldap->search($root_dn, '(objectclass=nsds5replicationagreement)', 'sub', array('nsds5replicahost')); - if (!$result) { -- $this->_debug("No replicas configured"); -+ $this->_debug("No replicas configured on $replica_host"); -+ $ldap->close(); -+ continue; - } - - foreach ($result->entries(true) as $dn => $attrs) { -@@ -1435,7 +1442,7 @@ class Net_LDAP3 - $method = 'DIGEST-MD5'; - } - -- $this->_debug("C: Bind [mech: $method, authc: $authc, authz: $authz] [pass: $pass]"); -+ $this->_debug("C: Bind [mech: $method, authc: $authc, authz: $authz]"); - - if (ldap_sasl_bind($this->conn, null, $pass, $method, null, $authc, $authz)) { - $this->_debug("S: OK"); -diff --git a/lib/Net/LDAP3/Result.php b/lib/Net/LDAP3/Result.php -index 728b304..0759df0 100644 ---- a/lib/Net/LDAP3/Result.php -+++ b/lib/Net/LDAP3/Result.php -@@ -71,7 +71,7 @@ class Net_LDAP3_Result implements Iterator - } - - /** -- * -+ * Wrapper for ldap_sort() - */ - public function sort($attr) - { -@@ -79,18 +79,23 @@ class Net_LDAP3_Result implements Iterator - } - - /** -- * -+ * Get entries count - */ - public function count() - { -- if (!isset($this->count)) -+ if (!isset($this->count)) { - $this->count = ldap_count_entries($this->conn, $this->result); -+ } - - return $this->count; - } - - /** -+ * Wrapper for ldap_get_entries() - * -+ * @param bool $normalize Optionally normalize the entries to a list of hash arrays -+ * -+ * @return array List of LDAP entries - */ - public function entries($normalize = false) - { -@@ -103,6 +108,14 @@ class Net_LDAP3_Result implements Iterator - return $entries; - } - -+ /** -+ * Wrapper for ldap_get_dn() using the current entry pointer -+ */ -+ public function get_dn() -+ { -+ return $this->current ? ldap_get_dn($this->conn, $this->current) : null; -+ } -+ - - /*** Implement PHP 5 Iterator interface to make foreach work ***/ -
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +php-net-ldap3 (1.0.1-0~kolab2) unstable; urgency=low + + * Fix variable naming in parse_aclrights() + + -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Wed, 01 Oct 2014 15:27:46 +0100 + php-net-ldap3 (1.0.1-0~kolab1) unstable; urgency=low * New upstream release w/ support for Oracle DSEE getEffectiveRights control
View file
debian.series
Changed
@@ -1,1 +1,2 @@ no-password-logging_fix-fatal-error.patch -p1 +0001-Correct-variable-used-to-determine-acl-rights.patch -p1
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
.