diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index ef352cde..eff20c30 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1711,6 +1711,9 @@ class adherent(base_proprietaire): home = '/home/' + login if os.path.exists(home): raise ValueError(u'Création du compte impossible : home existant',1) + + if os.path.exists("/var/mail/"+login): + raise ValueError(u'Création du compte impossible : /var/mail/%s existant'%login,1) # Lock du mail self.lock('mail',login)