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])