Documentation for LemonLDAP::NG 2.0

Configuration

Portal

image6

Authentication, users and password databases

image7

Official Backends Authentication Users Password
Active Directory
Apache (Basic, NTLM, OTP, …)    
CAS new  
SQL Databases
Demonstration
Facebook  
GitHub new [1]    
GPG new [2]    
Kerberos new    
LDAP
LinkedIn    
Null
OpenID Connect  
PAM new    
Proxy LL::NG  
Radius    
REST new
SAML 2.0 / Shibboleth  
Slave  
SSL    
Twitter    
WebID  
Yubikey deprecated Replaced by Yubikey Second Factor    
Custom modules new
Combo Backends Authentication Users Password
Choice by users
Combination of auth schemes new  
Multiple backends stack deprecated Replaced by Combination    
Obsolete Backends Authentication Users Password
OpenID  
Remote LL::NG  
Second factor (documentation) Authentication
TOTP-or-U2F new
U2F new
TOTP (Google Authenticator,…) new
E-mail Second Factor new
External Second Factor (OTP, SMS,…) new
Radius Second Factor new [3]
REST Second Factor new
Yubikey new
Additional second factors new [4]
Auth addons Authentication
Auto Signin new

Identity provider

Tip

image26

Protocol Service Provider Identity Provider
CAS 1.0 / 2.0 / 3.0
SAML 2.0 / Shibboleth
OpenID 2.0 (obsolete)
OpenID Connect
Get parameters provider (for poor applications)  

Tip

  • Issuers timeout : Delay for issuers to submit their authentication requests
  • To avoid a bad/expired token and lose redirection to the SP protected application after authentication if IdP URLs are served by different load balancers, you can force Issuer tokens to be stored into Global Storage by editing lemonldap-ng.ini in section [portal]:
[portal]
forceGlobalStorageIssuerOTT = 1

Attacks and Protection

Tip

To learn or find out more about security, go to Security documentation

image27

Attack LLNG protection System Integrator protection
Brute Force
Page Content  
CSRF  
Deny of Service  
Invisible iFrame
Man-in-the-Middle  
Software Exploit  
SSO by-passing  
XSS  

Plugins

image28

Name Description
Auto Signin new Auto Signin Addon
Brute Force protection new User must wait to log in after some failed login attempts
CDA Cross Domain Authentication
Check state new Check state plugin (test page)
Check user [5] new Check access rights, transmitted headers and session attibutes for a specific user and URL
Configuration viewer new Edit WebSSO configuration in Read Only mode
Context switching [6]new Switch context other users
Custom Write a custom plugin
Decrypt value [7]image35 Decrypt ciphered values
Display login history  
Force Authentication Force authentication to access to Portal
Global Logout [8] Suggest to close all opened sessions at logout
Grant Sessions Rules to apply before allowing a user to open a session
Impersonation [9]new Allow users to use another identity
Notifications system  
Portal Status Experimental portal status page
Public pages Enable public pages system
Refresh session API [10] Plugin that provides an API to refresh a user session
Reset password by mail  
Reset certificate by mail [11]image37 Allow users to reset their certificate
REST services new REST server for Proxy
SOAP services deprecated SOAP server for Proxy
Stay connected new Enable persistent connection on same browser
Upgrade session new This plugin explains to an already authenticated user that a higher authentication level is required to access the URL instead of reject him

Handlers

image41

Handlers are software control agents to be installed on your web servers (Nginx, Apache, PSGI like Plack based servers or Node.js).

Handler type Apache LLNG FastCGI/uWSGI server (Nginx, or SSOaaS) Plack servers Node.js ( express apps or SSOaaS) Self protected apps Comment
Main (default handler) Partial ** [12] **  
AuthBasic   Designed for some server-to-server applications
CDA   For Cross Domain Authentication
DevOps (SSOaaS) new   Allows application developers to define their own rules and headers inside their applications
DevOpsST (SSOaaS) new   Enables both DevOps and Service Token
OAuth2 [13]new   Uses OpenID Connect/OAuth2 access token to check authentication and authorization, can be used to protect Web Services
Secure Token     Designed to secure exchanges between a LLNG reverse-proxy and a remote app
Service Token new (Server-to-Server) Designed to permit underlying requests (API-Based Infrastructure)
Zimbra PreAuth      

LLNG databases

Configuration database

image46

LL::NG needs a storage system to store its own configuration (managed by the manager). Choose one in the following list:

Backend Shareable Comment
File (JSON)   Not shareable between servers except if used in conjunction with REST or with a shared file system (NFS,…). Selected by default during installation.
YAML new   Same as File but in YAML format instead of JSON
SQL (RDBI/CDBI) Recommended for large-scale systems. Prefer CDBI.
LDAP  
MongoDB  
SOAP deprecated Proxy backend to be used in conjunction with another configuration backend. Can be used to secure another backend for remote servers.
REST new Proxy backend to be used in conjunction with another configuration backend. Can be used to secure another backend for remote servers.
Local new   Use only lemonldap-ng.ini parameters.

Tip

You can not start with an empty configuration, so read how to change configuration backend to convert your existing configuration into another one.

Sessions database

image50

Sessions are stored using Apache::Session modules family. All Apache::Session style modules are usable except for some features.

Attention

If you plan to use LLNG in a large-scale system, take a look at Performance Test to choose the right backend. A Browseable SQL backend is generally a good choice.

Backend Shareable Session explorer Session restrictions Session expiration Comment
File   Not shareable between servers except if used in conjunction with REST session backend or with a shared file system (NFS,…). Selected by default during installation.
SQL Unoptimized for session explorer and single session features.
LDAP  
Redis The fastest. Must be secured by network access control.
MongoDB Must be secured by network access control.
Browseable (SQL, Redis or LDAP) Optimized for session explorer and single session features.
REST new Proxy backend to be used in conjunction with another session backend.
SOAP deprecated Proxy backend to be used in conjunction with another session backend.

Tip

You can migrate from one session backend to another using the session conversion script. (new since 2.0.7)

Applications protection

image53

Well known compatible applications

Note

Here is a list of well known applications that are compatible with LL::NG. A full list is available on vendor applications page.

adfs alfresco awx bugzilla dokuwiki drupal fusiondirectory gitlab glpi liferay mediawiki nextcloud simplesamlphp wordpress xwiki zimbra

Bug report

See How to report a bug.

Developer corner

To contribute, see :

To develop an handler, see:

To develop a portal plugin, see manpages:

  • Lemonldap::NG::Portal
  • Lemonldap::NG::Portal::Auth
  • Lemonldap::NG::Portal::UserDB
  • Lemonldap::NG::Portal::Main::SecondFactor
  • Lemonldap::NG::Portal::Main::Issuer
  • Lemonldap::NG::Portal::Main::Plugin
  • Lemonldap::NG::Portal::Main::Request (the request object)

To add a new language:

If you don’t want to publish your translation (XX must be replaced by your language code):

  • Manager: translate lemonldap-ng-manager/site/htdocs/static/languages/en.json in lemonldap-ng-manager/site/htdocs/static/languages/XX.json and enable it in “lemonldap-ng.ini” file
  • Portal: translate lemonldap-ng-portal/site/htdocs/static/languages/en.json in lemonldap-ng-portal/site/htdocs/static/languages/XX.json and enable it in “lemonldap-ng.ini” file
  • Portal Mails: translate lemonldap-ng-portal/site/templates/common/mail/en.json in lemonldap-ng-portal/site/templates/common/mail/XX.json
[1]GitHub authentication is available with LLNG ≥ 2.0.8
[2]GPG authentication is available with LLNG ≥ 2.0.2
[3]Radius second factor is available with LLNG ≥ 2.0.6
[4]Additional second factors are available with LLNG ≥ 2.0.6
[5]Check user plugin is available with LLNG ≥ 2.0.3
[6]Context switching plugin is available with LLNG ≥ 2.0.6
[7]Decrypt value plugin is available with LLNG ≥ 2.0.7
[8]Global Logout plugin is available with LLNG ≥ 2.0.7
[9]Impersonation plugin is available with LLNG ≥ 2.0.3
[10]Refresh session API plugin is available with LLNG ≥ 2.0.7
[11]Reset certificate by mail plugin is available with LLNG ≥ 2.0.7
[12]Node.js handler has not yet reached the same level of functionalities
[13]OAuth2 Handler is available with LLNG ≥ 2.0.4