Il faut tre nounou pour dtruire un compte nounou.
darcs-hash:20041003160457-41617-d3c455c88c3bf72e4c8d17bce6fde95ec898f398.gz
This commit is contained in:
parent
53c0e9b381
commit
11590c5f3f
1 changed files with 9 additions and 8 deletions
|
@ -21,9 +21,6 @@ else:
|
|||
rw_uri = 'ldaps://zamok.crans.org:636/'
|
||||
|
||||
smtpserv = "localhost"
|
||||
|
||||
# TODO :
|
||||
# Interdire la modif des comptes nounou
|
||||
|
||||
import smtplib, sre, os, random, string, time, sys
|
||||
import ldap, ldap.modlist
|
||||
|
@ -940,17 +937,21 @@ class base_proprietaire(base_classes_crans) :
|
|||
|
||||
def delete(self,comment='') :
|
||||
"""Destruction du proprietaire"""
|
||||
done = 0
|
||||
|
||||
for m in self.machines() :
|
||||
# Destruction machines
|
||||
m.delete(comment)
|
||||
|
||||
self._delete(self.dn,comment)
|
||||
|
||||
if self.compte() :
|
||||
args = self._data['uid'][0] + ','
|
||||
args+= self._data['homeDirectory'][0]
|
||||
self.services_to_restart('del_user',[ args ] )
|
||||
try :
|
||||
if self.compte() :
|
||||
args = self._data['uid'][0] + ','
|
||||
args+= self._data['homeDirectory'][0]
|
||||
self.services_to_restart('del_user',[ args ] )
|
||||
except :
|
||||
# Si ne peux avoir de compte
|
||||
pass
|
||||
|
||||
def save(self) :
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue