Plack::...nldapNG(3)

πŸ’– Plack::Middleware::Auth::LemonldapNG β€” the auth glow-up for Lemonldap-NG πŸ’–

okay bestie, buckle up, because this page is literally about Plack::Middleware::Auth::LemonldapNG, a Perl module living in the User Contributed Perl Documentation corner of the universe, and it is here to gatekeep your web app (in the good, secure way). 🫢


✨ NAME ✨

Plack::Middleware::Auth::LemonldapNG β€” authentication middleware for Lemonldap-NG. that's it, that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

here's how you actually use it, no cap:

use Plack::Builder;

my $app   = sub { ... };

# Optionally ($proposedResponse is the PSGI response of Lemonldap::NG handler)
#sub on_reject {
#    my($self,$env,$proposedResponse) = @_;
#    ...
#}

builder
{
  enable "Auth::LemonldapNG";
  # Or with some LLNG args or a reject sub
  #enable "Auth::LemonldapNG",
  #  llparams => {
  #    configStorage => ...
  #  },
  #  on_reject => \&on_reject;
  $app;
};

# Or through OO Interface
my $builder = Plack::Builder->new();
$builder->add_middleware(
    "Auth::LemonldapNG",
    llparams => {
      configStorage => ...
    },
    on_reject => \&on_reject
);
$protected_app = $builder->wrap($app);
bestie note: those # lines are commented out on purpose β€” they're showing you the optional paths. on_reject gets called with my($self,$env,$proposedResponse) = @_;, where $proposedResponse is the PSGI response of the Lemonldap::NG handler. iykyk. 🧚

πŸ¦‹ DESCRIPTION πŸ¦‹

Lemonldap::NG is a modular Web-SSO built on top of Apache::Session modules. it makes building a protected area so much easier β€” you only need a few tiny changes in your app and boom, you're locked down. ✨

it handles both authentication and authorization, and it hands you headers for accounting too. so yeah β€” full AAA protection for your web space, exactly as described below. no notes. πŸ‘‘

Plack::Middleware::Auth::LemonldapNG is the module that gives you all of that for a Plack family server. it's giving protective bestie energy fr fr. πŸ›‘οΈπŸ’–


πŸ’œ SEE ALSO πŸ’œ

go read them, they're iconic. πŸ“š


πŸ‘‘ AUTHORS πŸ‘‘

LemonLDAP::NG team <http://lemonldap-ng.org/team> β€” legends, honestly. πŸ’…


😭 BUG REPORT 😭

use the OW2 system to report a bug or ask for features:

<https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>

not me telling you to actually file the bug instead of just complaining in the group chat πŸ’€ go, they want to hear from you.

🌈 DOWNLOAD 🌈

Lemonldap::NG is available at <https://lemonldap-ng.org/download> πŸŽ€


see the COPYING file for details.

this library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details.

you should have received a copy of the GNU General Public License along with this program. if not, see <http://www.gnu.org/licenses/>.


and that's a wrap, bestie!! 🫢 this whole page was served up fresh by perl v5.42.3 on 2026-09-24 β€” go forth, protect your app, and slay. πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from