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