Archive #1263
netlogon selon groupe de machines
Status:
Classée sans suite
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
12/07/2010
Due date:
% Done:
0%
Distribution:
EOLE 2.3
Description
Avoir la possibilité de créer un fichier
ex : /home/netlogon/scripts/machines/groupe_esu/nomdugroupe.txt
History
#1 Updated by Klaas TJEBBES almost 13 years ago
# -*- coding: UTF-8 -*- from xml.etree import ElementTree as ET from lxml import etree from fnmatch import fnmatch def searchComputerGroup(nom_machine): """ Cherche le groupe qui matche le nom de la machine. Caractères spéciaux pour matcher le nom : *, ?, [ et ]. Voir http://docs.python.org/lib/module-fnmatch.html [^] Utilise le fichier XML "ListeGM.xml". """ filename = '/home/esu/Base/ListeGM.xml' xml = etree.parse(filename) xml = ET.parse(filename) for group in xml.getiterator('GM'): for machine in group.find('ListeMachines').findall("Machine"): motif = machine.text if not motif: continue if not fnmatch(nom_machine.lower(), motif.lower()): continue return group.get('nom')
#2 Updated by Klaas TJEBBES almost 13 years ago
- Assigned To set to Gwenael Remond
#3 Updated by marc Ferandin over 12 years ago
Bonjour,
Cette fonctionnalité est également attendue dans notre académie.
Cette demande a t elle evolué depuis ?
merci d'avance
#4 Updated by Redmine Admin over 10 years ago
- Status changed from Nouveau to En attente d'informations
- Distribution set to EOLE 2.3
Quel est le status de cette demande ?
#5 Updated by Bruno Debeve over 9 years ago
- Assigned To deleted (
Gwenael Remond)
Que se passe-t-il (dans le code proposé) si aucun groupe ne matche le nom de la machine, si par exemple il n'y a pas de groupe par défaut avec * comme nom de machine ?
#6 Updated by Klaas TJEBBES over 9 years ago
- Project changed from Scribe to scribe-backend
#7 Updated by Luc Bourdot about 9 years ago
- Tracker changed from Evolution to Archive
#8 Updated by Luc Bourdot about 9 years ago
- Target version deleted (
83)
#9 Updated by Luc Bourdot about 7 years ago
- Status changed from En attente d'informations to Classée sans suite