Pages enfant
  • Création des groupes PAGS à partir d'un annuaire LDAP

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.
Commentaire: Migrated to Confluence 5.3

Description

Script en python permettant de créer des groupes PAGS à partir d'un annuaire LDAP conforme SUPANN.

Il crée notamment des groupes pour chaque service, laboratoire de recherche ... à partir de la branche ou=structures,dc=xxx,dc=fr et des attributs utilisateur LDAP supannEntiteAffectation/eduPersonAffiliation.

Il crée aussi des groupes pour chaque étape (à Paris1, utilise ou=2010,ou=diploma,o=Paris1,dc=univ-paris1,dc=fr, non SUPANN), et pour chaque groupe dans ou=groups.

Acteurs du projet

Responsable(s)

  • A. Anli

Développeur(s)

  • Pascal Rigaux
  • Abdouroihamane Anli

Ancien(s) membre(s)

  • Fabrice Jammes, auteur

Vie du projet

Statut

 incubé

Versions

  • Version stable : 2.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)
  • resulting PAGSGroupStoreConfig.xml can work in esup 2.6 or 3.2 (but need "PAGS Root" as can be seen in PAGS.in.xml.3.2.sample)

Example of resulting group hierarchy

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.

Bloc de code
# 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"

Téléchargement

Sources