On our web servers, we currently use a basic authentication mechanism and do authorization using DB lookups. We run mod_perl and Apache::DBI which caches DB handles, so this is all very fast.

We are looking at converting our authentication/authorization to LDAP, and in our tests the performance is about equal *if* the LDAP connection is also persistent. Yet in my searches, I can't find a module like Apache::DBI to provide a persistence mechanism for the LDAP connections. The closest I've found are cache and persistence directives for the mod_auth_ldap module for Apache 2. We're still on Apache 1 so that doesn't help me.

Do any of the wise monks out there know of a perl module that implements persistent LDAP connections? Any suggestions about how to do this? Do we need to write our own? Or is this a reason to upgrade to Apache 2.0?


In reply to Persistent LDAP connections in Apache by cbrandtbuffalo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.