mkpamrules: Support openSUSE's usage of /usr/etc/pam.d
to contain the pam configuration files: https://lists.opensuse.org/opensuse-factory/2019-08/msg00113.html
This commit is contained in:
parent
8e10f0820c
commit
732d663c70
@ -8,6 +8,7 @@ outfile="$3"
|
|||||||
|
|
||||||
service="xrdp-sesman"
|
service="xrdp-sesman"
|
||||||
pamdir="/etc/pam.d"
|
pamdir="/etc/pam.d"
|
||||||
|
pamdir_suse="/usr/etc/pam.d"
|
||||||
|
|
||||||
guess_rules ()
|
guess_rules ()
|
||||||
{
|
{
|
||||||
@ -16,6 +17,11 @@ guess_rules ()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -s "$pamdir_suse/common-account"; then
|
||||||
|
rules="suse"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
if test -s "$pamdir/common-account"; then
|
if test -s "$pamdir/common-account"; then
|
||||||
if grep "^@include" "$pamdir/passwd" >/dev/null 2>&1; then
|
if grep "^@include" "$pamdir/passwd" >/dev/null 2>&1; then
|
||||||
rules="debian"
|
rules="debian"
|
||||||
|
Loading…
Reference in New Issue
Block a user