how often to bind and unbind to ldap

Daniel Castro <[email protected]> Tue, 22 Jul 2014 19:27:44 -0400
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <CAP2B858u45YFBu4FonbbOoBJ7Ksq-iduTEj5ArcN8Q0D_aF4Uw@mail.gmail.com>
--089e010d862818dfa004fed09299
Content-Type: text/plain; charset=UTF-8

Hello Guys,

I wrote a script that runs as a system process. If I do constant searches
on the LDAP server how often should I bind and unbind from the server.

Should I do only one and maintain it. But what about if it disconnects due
to inactivity during the night. Can I simply bind again on the same object?

Or should I bind, then search, then unbind each time?

Advice?

Thanks,

-- 
+-=====---------------------------+
| +---------------------------------+ | This space intentionally blank for
notetaking.
| |   | Daniel Castro,                |
| |   | Consultant/Programmer.|
| |   | U Andes                         |
+-------------------------------------+

--089e010d862818dfa004fed09299
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello Guys,<div><br></div><div>I wrote a script that runs =
as a system process. If I do constant searches on the LDAP server how often=
 should I bind and unbind from the server.</div><div><br></div><div>Should =
I do only one and maintain it. But what about if it disconnects due to inac=
tivity during the night. Can I simply bind again on the same object?</div>
<div><br></div><div>Or should I bind, then search, then unbind each time?</=
div><div><br></div><div>Advice?</div><div><br></div><div>Thanks,<br clear=
=3D"all"><div><br></div>-- <br>+-=3D=3D=3D=3D=3D---------------------------=
+<br>| +---------------------------------+ | This space intentionally blank=
 for notetaking.<br>
| |=C2=A0=C2=A0 | Daniel Castro,=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 | <br>| |=C2=A0=C2=A0 | Consultant/Programmer.|<br>| |=C2=A0=
=C2=A0 | U Andes=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 |<br>+-------------------------------------+=
<br>
</div></div>

--089e010d862818dfa004fed09299--