Summary | avoiding lots of empty ldap connections |
Queue | Turba |
Queue Version | Git master |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | dom.lalot (at) gmail (dot) com |
Created | 03/17/2012 (4894 days ago) |
Due | |
Updated | 03/21/2012 (4890 days ago) |
Assigned | |
Resolved | 03/21/2012 (4890 days ago) |
Milestone | 3.0.13 |
Patch | Yes |
commit 1b1672cfb7ed2a380c2256f15a10e940b66662e4
Author: Jan Schneider <jan@horde.org>
Date: Wed Mar 21 16:44:27 2012 +0100
[jan] Only connect to LDAP driver for read/write requests
(Dominique Lalot <dom.lalot@gmail.com>,
Request #11082).turba/docs/CHANGES | 2 ++
turba/lib/Driver/Ldap.php | 26 +++++++++++++++++++++++++-
turba/package.xml | 2 ++
3 files changed, 29 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/1b1672cfb7ed2a380c2256f15a10e940b66662e4
Assigned to Jan Schneider
State ⇒ Resolved
Milestone ⇒ 3.0.13
commit 1b1672cfb7ed2a380c2256f15a10e940b66662e4
Author: Jan Schneider <jan@horde.org>
Date: Wed Mar 21 16:44:27 2012 +0100
[jan] Only connect to LDAP driver for read/write requests
(Dominique Lalot <dom.lalot@gmail.com>,
Request #11082).turba/docs/CHANGES | 2 ++
turba/lib/Driver/Ldap.php | 26 +++++++++++++++++++++++++-
turba/package.xml | 2 ++
3 files changed, 29 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/1b1672cfb7ed2a380c2256f15a10e940b66662e4
New Attachment: PatchTurba[1].txt
git. Can I do that with an http access?
git. Can I do that with an http access?
I should have work directly on Ldap.php at first and may be modified
the original..
- Your patch removes a line that doesn't exist in the original file,
please make sure to make the patch against the last release or Git
version
- The $this->_ds==null check should be *inside* _connect() to avoid
redundency, and you need spaces before and after the operator
- Your patch removes a line that doesn't exist in the original file,
please make sure to make the patch against the last release or Git
version
- The $this->_ds==null check should be *inside* _connect() to avoid
redundency, and you need spaces before and after the operator
New Attachment: PatchTurba.txt
- follow coding standards (indention, whitespace, curly braces)
- make the method protected and call it _connect()
- check if $this->_ds is set *inside* _connect()
OK, I'm not a specialist of PHP, PERL is my language, so I apologize
for my poor PHP coding.
So my second patch is following
State ⇒ Feedback
- follow coding standards (indention, whitespace, curly braces)
- make the method protected and call it _connect()
- check if $this->_ds is set *inside* _connect()
New Attachment: patchTurba.txt
State ⇒ New
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ avoiding lots of empty ldap connections
Type ⇒ Enhancement
Priority ⇒ 1. Low
The construct method of the ldap driver is doing a connect/bind. Most
of the time there is no search and there is an unbind after.
I propose to add an init method which is called if _ds==null in order
to use just connects when searching or writing information.
Dom