Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: querying LDAP from mod-perl handlers

by Corion (Patriarch)
on Apr 22, 2025 at 11:49 UTC ( [id://11164795]=note: print w/replies, xml ) Need Help??


in reply to querying LDAP from mod-perl handlers

I think this is mostly an issue of Apache configuration and not so much about Perl:

mod_authnz_ldap completely relies on mod_ldap.

The mod_ldap example configuration shows how to set up a cache for LDAP results.

The next paragraph there discusses the (automatic...) connection pool.

I think in your mod_perl handler, you will find the user already authenticated if you set up the appropriate mod_authnz_ldap rules for the path to your mod_perl handler(s).

I now realize that you want to use the caching implemeneted in mod_ldap from your mod_perl handler. I think there should be documentation in mod_perl2 about how to call functionality exposed by other Apache modules, but I don't see anything there that would help you there...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11164795]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2026-04-20 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.