forked from duosecurity/duo_unix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added logging that tells who has bypassed Duo because of their user g… (
duosecurity#151) * Added logging that tells who has bypassed Duo because of their user group * Fixed groups-1.t tests
- Loading branch information
Showing
6 changed files
with
43 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
mockduo with valid cert | ||
|
||
$ cd ${TESTDIR} | ||
$ python mockduo.py certs/mockduo.pem >/dev/null 2>&1 & | ||
$ MOCKPID=$! | ||
$ trap 'exec kill $MOCKPID >/dev/null 2>&1' EXIT | ||
$ sleep 1 | ||
|
||
match groups with spaces | ||
$ env UID=1001 ./groups.py -d -c confs/mockduo_space_users.conf -f preauth-allow true | ||
[4] Skipped Duo login for 'preauth-allow': you rock | ||
|
||
match groups with backslash | ||
$ env UID=1004 ./groups.py -d -c confs/mockduo_space_users.conf -f preauth-allow true | ||
[4] Skipped Duo login for 'preauth-allow': you rock | ||
|
||
match groups without spaces | ||
$ env UID=1002 ./groups.py -d -c confs/mockduo_space_users.conf -f preauth-allow true | ||
[4] Skipped Duo login for 'preauth-allow': you rock |