13 lines
357 B
Python
Executable file
13 lines
357 B
Python
Executable file
#! /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')
|