Agent AuthBasic

Présentation

L'agent AuthBasic est un agent spécial qui utilise l'authentification web basique pour authentifier dans un hôte virtuel et qui utilise ensuite les règles d'autorisation pour valider les accès à l'hôte virtuel.

The Handler will send a WWW-Authenticate header to the client, to request user and password, and then check the credentials using SOAP getCookies web service. Lorsque la session est validée, l'agent examine les autorisations comme un agent standard.

Ce peut être pratique pour autoriser une application cliente à accéder à un hôte virtuel avec un authentifiant en envoyant un en-tête basique.

Configuration

Hôte virtuel

Apache

Configure the virtual host like other protected virtual host but use AuthBasic Handler instead of default Handler.

PerlModule Lemonldap::NG::Handler::Specific::AuthBasic
<VirtualHost *:80>
       ServerName basic.example.com
 
       # Load AuthBasic Handler
       PerlHeaderParserHandler Lemonldap::NG::Handler::Specific::AuthBasic
 
       ...
 
</VirtualHost>

If LemonLDAP::NG portal is protected by SSL with a self-signed certificate, you can add this line to accept it:

PerlSetEnv PERL_LWP_SSL_VERIFY_HOSTNAME 0

Nginx

AuthBasic Handler cannot be used in Nginx for the moment.

Paramètres de l'agent

Aucun paramètres n'est requis. Il faut en revanche autoriser le service web des sessions, voir le backend de sessions SOAP.