-
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.
- Loading branch information
1 parent
26b1367
commit 40432df
Showing
4 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ jobs: | |
- run: journalctl -n 50 | ||
- run: ls -l /tmp/destination | ||
- run: sudo -u testuser klist -f /tmp/destination | ||
|
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,21 @@ | ||
--- | ||
name: pamtester run of pam_krb5_cc_move | ||
on: [push] | ||
jobs: | ||
pamtester: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: sudo apt install pamtester gcc make libpam-dev libkrb5-dev krb5-user krb5-k5tls | ||
- uses: actions/checkout@v4 | ||
- run: make | ||
- run: sudo make install INSTALLDIR=/usr/lib/x86_64-linux-gnu/security | ||
- run: sudo cp pamtester/krb5_cc_move_debug /etc/pam.d/krb5_cc_move | ||
- run: cp pamtester/expired_kerberos_token /tmp/source | ||
- run: klist -f /tmp/source | ||
- run: sudo adduser testuser | ||
- run: sudo chown testuser /tmp/source | ||
- run: sudo pamtester -v krb5_cc_move testuser open_session | ||
- run: journalctl -n 50 | ||
- run: ls -l /tmp/destination | ||
- run: sudo -u testuser klist -f /tmp/destination | ||
|
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Just use for testing | ||
session optional pam_krb5_cc_move.so debug source=FILE:/tmp/source destination=FILE:/tmp/destination | ||
session optional pam_krb5_cc_move.so source=FILE:/tmp/source destination=FILE:/tmp/destination |
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,2 @@ | ||
# Just use for testing | ||
session optional pam_krb5_cc_move.so debug source=FILE:/tmp/source destination=FILE:/tmp/destination |