Skip to content

Commit

Permalink
Use PAM password-auth or system-auth if present
Browse files Browse the repository at this point in the history
Enables possibility to use PAM modules password-auth or system-auth if they exist during compilation. password-auth module is for remote authentication and system-auth for local authentication.
  • Loading branch information
zdohnal authored Feb 14, 2024
2 parents 9dbeca7 + b63c4a9 commit 08925d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conf/pam.password
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#%PAM-1.0
# Use password-auth common PAM configuration for the daemon
auth include password-auth
account include password-auth
3 changes: 3 additions & 0 deletions conf/pam.system
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#%PAM-1.0
auth include system-auth
account include system-auth
4 changes: 4 additions & 0 deletions config-scripts/cups-pam.m4
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ AS_IF([test x$enable_pam != xno], [
PAMMOD="pam_${with_pam_module}.so"
], [test -f /etc/pam.d/common-auth], [
PAMFILE="pam.common"
], [test -f /etc/pam.d/password-auth], [
PAMFILE="pam.password"
], [test -f /etc/pam.d/system-auth], [
PAMFILE="pam.system"
], [
moddir=""
for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
Expand Down

0 comments on commit 08925d7

Please sign in to comment.