Lemonld...on::Util(3)

πŸ’– Lemonldap::NG::Common::Util πŸ’–

okay bestie, welcome to the little helper drawer of LemonLDAP::NG β€” this is a utility class for LemonLDAP::NG, and it's basically the shared junk-drawer of functions that all the other modules keep borrowing from. ✨

It lives in the User Contributed Perl Documentation manual, and yes, the header up top is doing that cute little truncation thing where it shows up as Lemonld...on::Util(3). We don't gatekeep names here, we just vibe. πŸŽ€


🌸 NAME 🌸

Lemonldap::NG::Common::Util β€” Utility class for LemonLDAP::NG πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

This package is literally just a grab-bag of various functions that need to be shared between modules. That's the whole point of it β€” one place for the common stuff so nobody's copy-pasting the same helper into twelve different files like it's 2009. iconic behaviour, honestly. πŸ‘‘


✨ METHODS ✨

🫢 getPSessionID($uid)

This method computes the psession ID from the user login. You hand it a user id, it hands you back the psession ID. slay. πŸ’«

πŸ“ genId2F($device)

This method computes the unique ID of each 2F device, for use with the API and CLI. So if you're poking at 2FA devices through the API or the command line, this is the one generating those IDs. πŸ”₯

🧚 display2F($device)

This method formats the device name for logging purpose. Not for the user-facing glow-up β€” just so your logs look cute and readable when a 2F device shows up in them. 🌸

πŸ’œ isHiddenAttr( $conf, $attr, @extra_hidden_attributes )

This method tests if the attribute is hidden. πŸ•΅οΈβ™€οΈ

@extra_hidden_attributes is an array of additional attributes to hide β€” so you can pass in your own extras on top of whatever's already hidden. no cap, that's the whole thing.

🌈 getSameSite($conf)

Try to find a sensible value for the SameSite cookie attribute. πŸͺ

And if the user has overridden it, it returns the forced value instead. Respect the user's settings, periodt. πŸ’…


πŸ‘‘ AUTHORS πŸ‘‘

LemonLDAP::NG team <http://lemonldap-ng.org/team> 🫢


😭 BUG REPORT 😭

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

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

fr fr, if something's broken, that's where you go. don't just suffer in silence bestie. πŸ’€


🌟 DOWNLOAD 🌟

Lemonldap::NG is available at <https://lemonldap-ng.org/download> β€” go get it, it's giving main character energy. ✨


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 the whole page, bestie!! πŸŽ€ this one's running on perl v5.42.3, dated 2026-09-24, and it's part of the User Contributed Perl Documentation. ty for reading, ily, go hide some attributes πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from