Description
Script en python permettant de créer des groupes PAGS à partir d'un annuaire LDAP conforme SUPANN.
Les groupes doivent être présent sous forme d'organizationalUnit dans une ou plusieurs branches du LDAP et un attribut utilisateur LDAP doit contenir le DN de ces groupes.
On peut par exemple utiliser l'attribut eduPersonOrgUnitDN.
Acteurs du projet
Responsable(s)
- A. Anli
Développeur(s)
- Pascal Rigaux
- Abdouroihamane Anli
Ancien(s) membre(s)
- Fabrice Jammes, créateur
Vie du projet
Statut
incubé
Versions
- Version stable : 1.0
Liens
Documentation
Main features
PAGScreator builds diploma and structures PAGS groups for Esup-Portail using LDAP directory group information.
It can't be used directly and must be adapted to your university.
Pre-requisites
- python (validated with v2.4.4)
- python-ldap
- A LDAP directory
- xmllint (used to indent the output, available in libxml2-utils on debian/ubuntu)
How it works
This script is made to work with an LDAP directory satisfying SUPANN requirements.
Your LDAP directory must have two branches, one containing structures groups and the other diploma groups, as LDAP organizationalUnits.
Each organizationalUnit must have an id and a description and will be translated to a PAGS group.
Configuration
- provide a PAGS.in.xml file in order to add initial groups to your PAGS file
- simple configuration is done in a .ini file
- further adaptations may be needed in PAGScreator.py
User guide
PAGScreator can be used as an automated task using cron.
# Generation of the PAGS group file 0 1 * * * su - esup -c "cd /usr/local/esup/src/PAGS ; ./PAGScreator" # Move on the PAGS groups file from ESUP Custom directory to web server 30 2 * * * su - esup -c "cp /usr/local/esup/custom/uPortal/properties/groups/PAGSGroupStoreConfig.xml /usr/local/esup/webapps/uPortal/WEB-INF/classes/properties/groups/PAGSGroupStoreConfig.xml"