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.
incubé
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.
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" |