From 6b08464bfcf074126326938dafe71a8ba129e0af Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Wed, 11 Feb 2015 22:21:18 +0100 Subject: [PATCH] dump_creds: ajout du dump de mdp compte crans --- dump_creds.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dump_creds.py b/dump_creds.py index 5446e99..baa6217 100755 --- a/dump_creds.py +++ b/dump_creds.py @@ -1,4 +1,5 @@ #!/bin/bash /usr/scripts/python.sh +# -*- coding: utf-8 -*- from __future__ import print_function @@ -44,7 +45,13 @@ elif not res: exit(2) else: item = res[0] + if 'uid' not in item: + conf_reset_password = False + item.display() + if conf_reset_password: + print("Le mot de passe (compte Crans) sera également réinitialisé") + while True: c = prompt("[O/N]").lower() if c == 'n':