From 29b5544dcd3da5c6ad49e62189b7685a27fbcb6e Mon Sep 17 00:00:00 2001 From: bernat Date: Thu, 21 Apr 2005 21:41:27 +0200 Subject: [PATCH] Pas de 0 ou de o. darcs-hash:20050421194127-d1718-a60f121f502fe947a213f2c2abe34c7d9870ba72.gz --- gestion/ldap_crans.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index cbdc1676..64efb046 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2086,9 +2086,9 @@ class machine(base_classes_crans) : if clef == 1 : # Génération clef = '' - for i in range(20) : - clef += random.choice(filter(lambda x: x != 'l', string.lowercase) + - filter(lambda x: x != '1', string.digits)) + for i in range(22) : + clef += random.choice(filter(lambda x: x != 'l' and x != 'o', string.lowercase) + + filter(lambda x: x != '1' and x != '0', string.digits)) self._set('ipsec',[clef])