From 2cc487a48b0eca638fcd5342510c022c67d73e7f Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Thu, 11 Sep 2014 17:32:06 +0200 Subject: [PATCH] personne => exit() --- dump_creds.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dump_creds.py b/dump_creds.py index 4627ade..7554ec1 100755 --- a/dump_creds.py +++ b/dump_creds.py @@ -18,9 +18,10 @@ f = filter.human_to_ldap(sys.argv[1].decode('utf-8')) res = ldap.search(f) if len(res) > 1: print("More than one result") - exit() + exit(1) elif not res: print("Nobody found") + exit(2) else: item = res[0] item.display()