Lemonldap::NG::Common::Util - Utility class for LemonLDAP::NG
Contents
Bug Report
Use OW2 system to report bug or ask for features:
<https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>
Copyright And License
See 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/>.
perl v5.40.1 2025-05-01 Lemonldap::NG::Common::Util(3pm)
Description
This package contains various functions that need to be shared between modules.
Download
Lemonldap::NG is available at <https://lemonldap-ng.org/download>
Methods
getPSessionID($uid)
This method computes the psession ID from the user login
genId2F($device)
This method computes the unique ID of each 2F device, for use with the API and CLI
display2F($device)
This method formats device name for logging purpose
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.
getSameSite($conf)
Try to find a sensible value for the SameSite cookie attribute. If the user has overridden it, return
the forced value
Name
Lemonldap::NG::Common::Util - Utility class for LemonLDAP::NG
