pour dtruire toutes les machines invites de l'ens, sera cronn tous les
matins darcs-hash:20050311010842-4ec08-49b8b04076efd71523bf54203a0abd2e2680b280.gz
This commit is contained in:
parent
bba7d3937b
commit
773b41ce86
1 changed files with 13 additions and 0 deletions
13
gestion/destroy-invite-ens.py
Executable file
13
gestion/destroy-invite-ens.py
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#! /usr/bin/env python
|
||||||
|
# -*- coding: iso-8859-15 -*-
|
||||||
|
|
||||||
|
import sys
|
||||||
|
sys.path.append('/usr/scripts/gestion')
|
||||||
|
|
||||||
|
from ldap_crans import invite, crans_ldap
|
||||||
|
|
||||||
|
machines = crans_ldap().search('host=invite-ens-*.wifi.crans.org','w')['machine']
|
||||||
|
|
||||||
|
for m in machines :
|
||||||
|
if m.proprietaire().__class__ == invite :
|
||||||
|
m.delete('Machine invitée de l\'ens - détruite par cron')
|
Loading…
Add table
Add a link
Reference in a new issue