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.

...

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.

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=groupsOn peut par exemple utiliser l'attribut eduPersonOrgUnitDN.

Acteurs du projet

Responsable(s)

...

  • 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

Example of resulting group hierarchy

Image AddedThis 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

...