Compare commits
11 Commits
release/2.
...
815fca0e82
Author | SHA1 | Date | |
---|---|---|---|
815fca0e82 | |||
8ec486eafc | |||
4af11f3d28 | |||
8af3ee655f | |||
5d4e572967 | |||
15da7394f3 | |||
536da57382 | |||
d08c965ee8 | |||
b9ef7ec41d | |||
f2e6a3afe0 | |||
251a9a3907 |
21
README.md
21
README.md
@ -4,6 +4,27 @@ LemonLDAP::NG EOLE integration
|
|||||||
|
|
||||||
## Howto
|
## Howto
|
||||||
|
|
||||||
|
### Repository configuration
|
||||||
|
|
||||||
|
* Add the lemonldap-ng deb respository we need the last version of LemonLDAP.
|
||||||
|
|
||||||
|
GenConfig -> Mode Expert -> Dépôts tiers -> Libellé du dépôt
|
||||||
|
|
||||||
|
#### LemonLDAP::NG repository (if you use EOLE 2.7.2 this is not needed anymore)
|
||||||
|
|
||||||
|
* deb https://lemonldap-ng.org/deb stable main
|
||||||
|
* deb-src https://lemonldap-ng.org/deb stable main
|
||||||
|
* Key URL : https://lemonldap-ng.org/_media/rpm-gpg-key-ow2
|
||||||
|
|
||||||
|
#### Cadoles Repository
|
||||||
|
* deb [ arch=all ] https://vulcain.cadoles.com 2.7.2-dev main
|
||||||
|
* Key URL : https://vulcain.cadoles.com/cadoles.gpg
|
||||||
|
|
||||||
|
### Install packages
|
||||||
|
|
||||||
|
apt update
|
||||||
|
apt install eole-lemonldap
|
||||||
|
|
||||||
### Configure LemonLDAP in GenConfig
|
### Configure LemonLDAP in GenConfig
|
||||||
|
|
||||||
* Enable lemonldap in "Services" tab
|
* Enable lemonldap in "Services" tab
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
<creole>
|
<creole>
|
||||||
|
|
||||||
<files>
|
<files>
|
||||||
|
|
||||||
<file filelist='lemonldap' name='/etc/lemonldap-ng/lemonldap-ng.ini' mkdir='True' rm='True'/>
|
<file filelist='lemonldap' name='/etc/lemonldap-ng/lemonldap-ng.ini' mkdir='True' rm='True'/>
|
||||||
<file filelist='lemonldap' name='/var/lib/lemonldap-ng/conf/lmConf-1.json' mkdir='True' rm='True'/>
|
<file filelist='lemonldap' name='/var/lib/lemonldap-ng/conf/lmConf-1.json' mkdir='True' rm='True'/>
|
||||||
<file filelist='lemonldap' name='/etc/default/lemonldap-ng-fastcgi-server' mkdir='True' rm='True'/>
|
<file filelist='lemonldap' name='/etc/default/lemonldap-ng-fastcgi-server' mkdir='True' rm='True'/>
|
||||||
@ -15,7 +14,7 @@
|
|||||||
<file filelist='lemonldap-apache' name='/etc/lemonldap-ng/handler-apache2.X.conf' mkdir='True' rm='True'/>
|
<file filelist='lemonldap-apache' name='/etc/lemonldap-ng/handler-apache2.X.conf' mkdir='True' rm='True'/>
|
||||||
<file filelist='lemonldap-apache' name='/etc/lemonldap-ng/portal-apache2.X.conf' mkdir='True' rm='True'/>
|
<file filelist='lemonldap-apache' name='/etc/lemonldap-ng/portal-apache2.X.conf' mkdir='True' rm='True'/>
|
||||||
|
|
||||||
<service>lemonldap-ng-fastcgi-server</service>
|
<service servicelist="sllemon">lemonldap-ng-fastcgi-server</service>
|
||||||
|
|
||||||
<service method='apache' servicelist='lemonldap-apache'>manager-apache2</service>
|
<service method='apache' servicelist='lemonldap-apache'>manager-apache2</service>
|
||||||
<service method='apache' servicelist='lemonldap-apache'>portal-apache2</service>
|
<service method='apache' servicelist='lemonldap-apache'>portal-apache2</service>
|
||||||
@ -34,7 +33,7 @@
|
|||||||
</variable>
|
</variable>
|
||||||
</family>
|
</family>
|
||||||
|
|
||||||
<family name='LemonLDAP'>
|
<family name='LemonLDAP' icon='lemon'>
|
||||||
|
|
||||||
<variable name='managerWebName' type='string' description="Nom DNS du manager LemonLDAP-NG"/>
|
<variable name='managerWebName' type='string' description="Nom DNS du manager LemonLDAP-NG"/>
|
||||||
<variable name='authWebName' type='string' description="Nom DNS du service d'authentification LemonLDAP-NG"/>
|
<variable name='authWebName' type='string' description="Nom DNS du service d'authentification LemonLDAP-NG"/>
|
||||||
@ -52,6 +51,10 @@
|
|||||||
<value>4</value>
|
<value>4</value>
|
||||||
</variable>
|
</variable>
|
||||||
|
|
||||||
|
<variable name="lm_loglevel" type='string' description="Verbosité des journaux" mode='expert'>
|
||||||
|
<value>info</value>
|
||||||
|
</variable>
|
||||||
|
|
||||||
<variable name="lemonAdmin" type='string' description="LemonLDAP Administrator username" mode='expert'>
|
<variable name="lemonAdmin" type='string' description="LemonLDAP Administrator username" mode='expert'>
|
||||||
<value>admin</value>
|
<value>admin</value>
|
||||||
</variable>
|
</variable>
|
||||||
@ -118,10 +121,13 @@
|
|||||||
<param>['ldaps','ldap']</param>
|
<param>['ldaps','ldap']</param>
|
||||||
</check>
|
</check>
|
||||||
|
|
||||||
|
<check name='valid_enum' target="lm_loglevel">
|
||||||
|
<param>['info','notice','warn','error','debug'</param>
|
||||||
|
</check>
|
||||||
|
|
||||||
<check name="valid_enum" target="llRegisterDB">
|
<check name="valid_enum" target="llRegisterDB">
|
||||||
<param>['LDAP','Demo','Custom']</param>
|
<param>['LDAP','Demo','Custom']</param>
|
||||||
</check>
|
</check>
|
||||||
|
|
||||||
<group master="casAttribute">
|
<group master="casAttribute">
|
||||||
<slave>casLDAPAttribute</slave>
|
<slave>casLDAPAttribute</slave>
|
||||||
</group>
|
</group>
|
||||||
@ -131,6 +137,8 @@
|
|||||||
<target type='filelist'>lemonldap</target>
|
<target type='filelist'>lemonldap</target>
|
||||||
<target type='filelist'>lemonldap-nginx</target>
|
<target type='filelist'>lemonldap-nginx</target>
|
||||||
<target type='filelist'>lemonldap-apache</target>
|
<target type='filelist'>lemonldap-apache</target>
|
||||||
|
<target type='servicelist'>lemonldap-apache</target>
|
||||||
|
<target type='servicelist'>sllemon</target>
|
||||||
<target type='family'>LemonLDAP</target>
|
<target type='family'>LemonLDAP</target>
|
||||||
<target type='service_accesslist'>saLemon</target>
|
<target type='service_accesslist'>saLemon</target>
|
||||||
</condition>
|
</condition>
|
||||||
@ -165,10 +173,12 @@
|
|||||||
</constraints>
|
</constraints>
|
||||||
|
|
||||||
<help>
|
<help>
|
||||||
|
<family name='LemonLDAP'>Configuration de la solution d'authentification unique LemonLDAP::NG</family>
|
||||||
<variable name='activerLemon'>Activer le service LemonLDAP::NG sur ce serveur</variable>
|
<variable name='activerLemon'>Activer le service LemonLDAP::NG sur ce serveur</variable>
|
||||||
<variable name='managerWebName'>Nom DNS de l'application de gestion de LemonLDAP::NG ex:manager.example.fr</variable>
|
<variable name='managerWebName'>Nom DNS de l'application de gestion de LemonLDAP::NG ex:manager.example.fr</variable>
|
||||||
<variable name='authWebName'>Nom DNS de service d'authentification de LemonLDAP::NG ex:auth.example.fr</variable>
|
<variable name='authWebName'>Nom DNS de service d'authentification de LemonLDAP::NG ex:auth.example.fr</variable>
|
||||||
<variable name='ldapUserBaseDN'>DN de l'utilisateur de connection en lecture à l'annuaire (ex: cn=reader,o=gouv,c=fr)</variable>
|
<variable name='ldapUserBaseDN'>DN de base de l'emplactement des utilisateurs dans l'annuaire (ex: ou=users,o=gouv,c=fr)</variable>
|
||||||
|
<variable name='ldapBindUserDN'>DN de l'utilisateur de connection en lecture à l'annuaire (ex: cn=reader,o=gouv,c=fr)</variable>
|
||||||
<variable name='llCheckLogins'>Affiche une case à cocher sur la mire SSO qui permet a l'utilisateur de voir l'historique de connection de son compte avant d'être redirigé vers le service demandé</variable>
|
<variable name='llCheckLogins'>Affiche une case à cocher sur la mire SSO qui permet a l'utilisateur de voir l'historique de connection de son compte avant d'être redirigé vers le service demandé</variable>
|
||||||
<variable name='llCSPTargets'>Liste des domaines à ajouter à la directive form-action.</variable>
|
<variable name='llCSPTargets'>Liste des domaines à ajouter à la directive form-action.</variable>
|
||||||
</help>
|
</help>
|
||||||
|
@ -6,7 +6,14 @@
|
|||||||
<variables>
|
<variables>
|
||||||
|
|
||||||
<family name='eole sso'>
|
<family name='eole sso'>
|
||||||
<variable name='eolesso_adresse' description="Nom de domaine du serveur d'authentification SSO" redefine="True" />
|
<variable name='eolesso_adresse' description="Nom de domaine du serveur d'authentification SSO" redefine="True" exists='True' />
|
||||||
|
<variable name='ldap_tls' redefine="True" exists='True' />
|
||||||
|
<variable name='eolesso_cas_folder' redefine="True" exists='True'>
|
||||||
|
<value>cas</value>
|
||||||
|
</variable>
|
||||||
|
<variable name='eolesso_port' redefine="True" exists='True'>
|
||||||
|
<value>443</value>
|
||||||
|
</variable>
|
||||||
</family>
|
</family>
|
||||||
|
|
||||||
</variables>
|
</variables>
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
[ "$(CreoleGet activerLemon non)" = 'oui' ] || exit 0
|
|
||||||
|
[[ $(CreoleGet activerLemon non) == "non" ]] && exit 0
|
||||||
|
|
||||||
|
# Updating Configuration cache
|
||||||
|
|
||||||
|
cmd="/usr/share/lemonldap-ng/bin/lemonldap-ng-cli update-cache"
|
||||||
|
opt="update-cache"
|
||||||
|
|
||||||
# Updating Configuration cache
|
# Updating Configuration cache
|
||||||
/usr/share/lemonldap-ng/bin/lemonldap-ng-cli update-cache 2>&1
|
/usr/share/lemonldap-ng/bin/lemonldap-ng-cli update-cache 2>&1
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Number of process (default: 7)
|
# Number of process (default: 7)
|
||||||
NPROC = %%lemonproc
|
NPROC=%%lemonproc
|
||||||
|
|
||||||
# Unix socket to listen to
|
# Unix socket to listen to
|
||||||
SOCKET=/run/llng-fastcgi-server/llng-fastcgi.sock
|
SOCKET=/run/llng-fastcgi-server/llng-fastcgi.sock
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
;
|
;
|
||||||
; 1 - Defined logging level
|
; 1 - Defined logging level
|
||||||
; Set here one of error, warn, notice, info or debug
|
; Set here one of error, warn, notice, info or debug
|
||||||
logLevel = debug
|
logLevel = %%lm_loglevel
|
||||||
; Note that this has no effect for Apache2 logging: Apache LogLevel is used
|
; Note that this has no effect for Apache2 logging: Apache LogLevel is used
|
||||||
; instead
|
; instead
|
||||||
;
|
;
|
||||||
@ -65,9 +65,9 @@ logLevel = debug
|
|||||||
; 2.1 - Using Syslog
|
; 2.1 - Using Syslog
|
||||||
;
|
;
|
||||||
; For Syslog logging, you can also overwrite facilities. Default values:
|
; For Syslog logging, you can also overwrite facilities. Default values:
|
||||||
;logger = Lemonldap::NG::Common::Logger::Syslog
|
logger = Lemonldap::NG::Common::Logger::Syslog
|
||||||
;syslogFacility = daemon
|
syslogFacility = daemon
|
||||||
;userSyslogFacility = auth
|
userSyslogFacility = auth
|
||||||
;
|
;
|
||||||
; 2.2 - Using Log4perl
|
; 2.2 - Using Log4perl
|
||||||
;
|
;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
log_format lm_combined '$remote_addr - $lmremote_user [$time_local] '
|
log_format lm_app '$remote_addr - $upstream_http_lm_remote_user [$time_local] '
|
||||||
'"$request" $status $body_bytes_sent '
|
'"$request" $status $body_bytes_sent '
|
||||||
'"$http_referer" "$http_user_agent"';
|
'"$http_referer" "$http_user_agent" $upstream_http_lm_remote_custom';
|
||||||
|
Reference in New Issue
Block a user