Skip to content

Commit

Permalink
test without debug
Browse files Browse the repository at this point in the history
  • Loading branch information
traylenator committed Jan 23, 2024
1 parent 26b1367 commit 40432df
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/pamtester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ jobs:
- run: journalctl -n 50
- run: ls -l /tmp/destination
- run: sudo -u testuser klist -f /tmp/destination

21 changes: 21 additions & 0 deletions .github/workflows/pamtester_debug.yml
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

2 changes: 1 addition & 1 deletion pamtester/krb5_cc_move
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
2 changes: 2 additions & 0 deletions pamtester/krb5_cc_move_debug
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

0 comments on commit 40432df

Please sign in to comment.