diff --git a/gestion/chgpass.py b/gestion/chgpass.py index 5c4cfde6..f34e4b57 100755 --- a/gestion/chgpass.py +++ b/gestion/chgpass.py @@ -4,7 +4,12 @@ import getpass, commands, os, sys from affich_tools import cprint -from secrets import ldap_password, ldap_auth_dn +try : + from secrets import ldap_password, ldap_auth_dn +except : + sys.stdout.write('Erreur : impossible de lire le fichier de secret !') + ldap_password = '' + ldap_auth_dn = '' def chgpass(dn) : cprint("""Le nouveau mot de passe doit comporter au minimum 6 caractères.