Skip to content

Commit 22fd546

Browse files
author
Sebastian Gumprich
committed
add main function
this makes it possible to run python pam_tester/pam_tester.py
1 parent 6d40e3d commit 22fd546

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pam_tester/pam_tester.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ def pam_auth(user, password, stack, expectfail):
3535
if (not expectfail and failed) or (expectfail and not failed):
3636
sys.exit(1)
3737
sys.exit(0)
38+
39+
if __name__ == "__main__":
40+
pam_auth()

0 commit comments

Comments
 (0)