From 4246ae74dd8cec6e010e1a12f4bfc1ead12fab55 Mon Sep 17 00:00:00 2001 From: chove Date: Fri, 2 Dec 2005 15:26:11 +0100 Subject: [PATCH] cette bestiole m'a laiss creer un compte alors que le /var/mail existait encore darcs-hash:20051202142611-4ec08-488ac8fa9a2e9fe9f17b2dda1e7b3c60210d26de.gz --- gestion/ldap_crans.py | 3 +++ 1 file changed, 3 insertions(+) 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)