<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>avoiding lots of empty ldap connections</title> 
  <pubDate>Fri, 10 Apr 2026 16:31:16 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11082</link> 
  <atom:link rel="self" type="application/rss+xml" title="avoiding lots of empty ldap connections" href="https://bugs.horde.org/ticket/11082/rss" /> 
  <description>avoiding lots of empty ldap connections</description> 
 
   
   
  <item> 
   <title>Hello,

The construct method of the ldap driver is doing a</title> 
   <description>Hello,

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</description> 
   <pubDate>Sat, 17 Mar 2012 11:52:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11082#t70736</link> 
  </item> 
   
  <item> 
   <title>Looks good, but please update your patch to:
- follow codin</title> 
   <description>Looks good, but please update your patch to:
- follow coding standards (indention, whitespace, curly braces)
- make the method protected and call it _connect()
- check if $this-&gt;_ds is set *inside* _connect()</description> 
   <pubDate>Mon, 19 Mar 2012 21:46:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11082#t70776</link> 
  </item> 
   
  <item> 
   <title>&gt; Looks good, but please update your patch to:
&gt; - follow c</title> 
   <description>&gt; Looks good, but please update your patch to:
&gt; - follow coding standards (indention, whitespace, curly braces)
&gt; - make the method protected and call it _connect()
&gt; - check if $this-&gt;_ds is set *inside* _connect()

Sure, it make sense
OK, I&#039;m not a specialist of PHP, PERL is my language, so I apologize for my poor PHP coding.
So my second patch is following</description> 
   <pubDate>Tue, 20 Mar 2012 07:55:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11082#t70779</link> 
  </item> 
   
  <item> 
   <title>Almost there. :)
- Your patch removes a line that doesn&#039;t e</title> 
   <description>Almost there. :)
- Your patch removes a line that doesn&#039;t exist in the original file, please make sure to make the patch against the last release or Git version
- The $this-&gt;_ds==null check should be *inside* _connect() to avoid redundency, and you need spaces before and after the operator</description> 
   <pubDate>Tue, 20 Mar 2012 08:06:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11082#t70780</link> 
  </item> 
   
  <item> 
   <title>OK. I have no idea to get the very last version of Ldap.php </title> 
   <description>OK. I have no idea to get the very last version of Ldap.php throught 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..


&gt; Almost there. :)
&gt; - Your patch removes a line that doesn&#039;t exist in the original file, 
&gt; please make sure to make the patch against the last release or Git 
&gt; version
&gt; - The $this-&gt;_ds==null check should be *inside* _connect() to avoid 
&gt; redundency, and you need spaces before and after the operator

OK 
</description> 
   <pubDate>Tue, 20 Mar 2012 10:49:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11082#t70789</link> 
  </item> 
   
  <item> 
   <title>&gt; OK. I have no idea to get the very last version of Ldap.ph</title> 
   <description>&gt; OK. I have no idea to get the very last version of Ldap.php throught 
&gt; git. Can I do that with an http access?

https://raw.github.com/horde/horde/master/turba/lib/Driver/Ldap.php

&gt; I should have work directly on Ldap.php at first and may be modified 
&gt; the original..
&gt;
&gt;
&gt;&gt; Almost there. :)
&gt;&gt; - Your patch removes a line that doesn&#039;t exist in the original file,
&gt;&gt; please make sure to make the patch against the last release or Git
&gt;&gt; version
&gt;&gt; - The $this-&gt;_ds==null check should be *inside* _connect() to avoid
&gt;&gt; redundency, and you need spaces before and after the operator
&gt;
&gt; OK
&gt;
</description> 
   <pubDate>Tue, 20 Mar 2012 10:56:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11082#t70791</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; OK. I have no idea to get the very last version of Ldap.p</title> 
   <description>&gt;&gt; OK. I have no idea to get the very last version of Ldap.php throught
&gt;&gt; git. Can I do that with an http access?
&gt;
&gt; https://raw.github.com/horde/horde/master/turba/lib/Driver/Ldap.php
&gt;
&gt;&gt; I should have work directly on Ldap.php at first and may be modified
&gt;&gt; the original..
&gt;&gt;
&gt;&gt;
&gt;&gt;&gt; Almost there. :)
&gt;&gt;&gt; - Your patch removes a line that doesn&#039;t exist in the original file,
&gt;&gt;&gt; please make sure to make the patch against the last release or Git
&gt;&gt;&gt; version
&gt;&gt;&gt; - The $this-&gt;_ds==null check should be *inside* _connect() to avoid
&gt;&gt;&gt; redundency, and you need spaces before and after the operator
&gt;&gt;
&gt;&gt; OK
&gt;&gt;
&gt;

Hope this is OK now!
</description> 
   <pubDate>Wed, 21 Mar 2012 10:32:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11082#t70801</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 1b1672cfb7ed</title> 
   <description>Changes have been made in Git (master):

commit 1b1672cfb7ed2a380c2256f15a10e940b66662e4
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Wed Mar 21 16:44:27 2012 +0100

    [jan] Only connect to LDAP driver for read/write requests (Dominique Lalot &lt;dom.lalot@gmail.com&gt;, 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</description> 
   <pubDate>Wed, 21 Mar 2012 15:44:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11082#t70807</link> 
  </item> 
   
  <item> 
   <title>Perfect, thanks for your patience!</title> 
   <description>Perfect, thanks for your patience!</description> 
   <pubDate>Wed, 21 Mar 2012 15:45:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11082#t70810</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit 1b1672cfb7e</title> 
   <description>Changes have been made in Git (develop):

commit 1b1672cfb7ed2a380c2256f15a10e940b66662e4
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Wed Mar 21 16:44:27 2012 +0100

    [jan] Only connect to LDAP driver for read/write requests (Dominique Lalot &lt;dom.lalot@gmail.com&gt;, 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</description> 
   <pubDate>Wed, 21 Mar 2012 19:19:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11082#t70819</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
