Using mod_ldap from handler scripts

Fish - <[email protected]> Tue, 29 Apr 2025 12:43:32 +0100
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAHsEiUA8-LUccX-wWr4-Mw8Gr8188pDR3ZZX4Utaci=FPFd6ig@mail.gmail.com>
--0000000000000934870633e95004
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Is it possible to make arbitrary ldap requests via mod_ldap from within a
handler script?

I have a number of handler scripts running in an environment which
successfully uses mod_authnz_ldap (and, hence, mod_ldap) for authentication
and authorisation against an external Active Directory server.  I'd like to
query the ldap server from these scripts but don't really want to make a
separate connection and bind for each, if I can avoid it.  Is it possible
to leverage the existing connection maintained by mod_ldap?

(I have spent a long time searching for information on this topic but all
my search results are overwhelmingly dominated by instructions for getting
authentication and authorisation running, which I've already done.)

I am running Apache/2.4.58 (Ubuntu) on Ubuntu 24.04.2.  Let me know if any
other information would be useful.

Yours,

<=C2=B0}}}>=C2=AB<

--0000000000000934870633e95004
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Is it possible to make arbitrary ldap requests via mo=
d_ldap from within a handler script?</div><div><br></div><div>I have a numb=
er of handler scripts running in an environment which successfully uses mod=
_authnz_ldap (and, hence, mod_ldap) for authentication and authorisation ag=
ainst an external Active Directory server.=C2=A0 I&#39;d like to query the =
ldap server from these scripts but don&#39;t really want to make a separate=
 connection and bind for each, if I can avoid it.=C2=A0 Is it possible to l=
everage the existing connection maintained by mod_ldap?</div><div><br></div=
><div>(I have spent a long time searching for information on this topic but=
 all my search results are overwhelmingly dominated by instructions for get=
ting authentication and authorisation running, which I&#39;ve already done.=
)</div><div><br></div><div>I am running Apache/2.4.58 (Ubuntu) on Ubuntu 24=
.04.2.=C2=A0 Let me know if any other information would be useful.<br><br><=
/div><div>Yours,<br><br>&lt;=C2=B0}}}&gt;=C2=AB&lt;</div><br></div>

--0000000000000934870633e95004--