Apache...::LDAP(3pm)

πŸ“¦
version 0.5 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Apache::Session::Store::LDAP β€” bestie, it's literally a store that uses LDAP to keep your persistent objects alive πŸ’ΎπŸ¦‹ (and yes, this is a User Contributed Perl Documentation page, iykyk)


🌸 SYNOPSIS 🌸

use Apache::Session::Store::LDAP;

my $store = new Apache::Session::Store::LDAP;

$store->insert($ref);
$store->update($ref);
$store->materialize($ref);
$store->remove($ref);

πŸ’… DESCRIPTION πŸ’…

Okay so here's the vibe: this module does the storage interface thing for Apache::Session 🫢. The serialized objects get stashed in an LDAP directory file, and it pulls that off using the Net::LDAP Perl module. That's it, that's the whole personality πŸ’œ


πŸŽ€ OPTIONS πŸŽ€

So like, this module needs one argument, in the classic Apache::Session style (you know the one πŸ’…). Here's the breakdown:

Required keys β€” you do NOT get to skip these, bestie, they're mandatory:

  • ldapServer β€” the server, obviously
  • ldapBase β€” the base
  • ldapBindDN β€” the bind DN
  • ldapBindPassword β€” the bind password

Optional keys β€” these ones are the chill ones, add them if you want:

  • ldapPort
  • ldapObjectClass
  • ldapAttributeId
  • ldapAttributeContent

Example, because a girl loves a concrete example ✨:

tie %s, 'Apache::Session::LDAP', undef,
   {
       ldapServer           => 'localhost',
       ldapBase             => 'dc=example,dc=com',
       ldapBindDN           => 'cn=admin,dc=example,dc=com',
       ldapBindPassword     => 'pass',
       ldapObjectClass      => 'applicationProcess',
       ldapAttributeId      => 'cn',
       ldapAttributeContent => 'description',
   };

πŸ‘‘ AUTHOR πŸ‘‘

Xavier Guimard, <guimard@> β€” we stan 🫢


Copyright (C) 2009, 2012 by Xavier Guimard Copyright (C) 2014, 2015 by Clement Oudot

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available. (Yes bestie, free software, no cap πŸ’–)


πŸ¦‹ SEE ALSO πŸ¦‹

  • Apache::Session

And that's the whole page, periodt πŸ’… This one's from perl v5.30.3, dated 2020-09-08, filed under Apache...::LDAP(3pm) β€” mwah, slay, go store some objects πŸŽ€βœ¨

πŸ“¦ where this page comes from