Skip to content

Commit

Permalink
Addition of a pamtester test
Browse files Browse the repository at this point in the history
  • Loading branch information
traylenator committed Jan 12, 2024
1 parent 150bf30 commit b9127e5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pamtester.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
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 krb-user
- 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 /etc/pam.d/krb5_cc_move
- run: cp pamtester/expired_kerberos_token /tmp/source
- run: sudo adduser testuser
- run: sudo chown testuser /tmp/source
- run: sudo pamtester -v krb5_cc_move testuser open_session
- run: KRB5CCNAME=/tmp/destination klist
2 changes: 2 additions & 0 deletions pamtester/expired_kerberos_token
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 b9127e5

Please sign in to comment.