Add a pam file for FreeBSD
as existing xrdp-sesman.unix doesn't suit FreeBSD.
This commit is contained in:
@@ -2,6 +2,7 @@ PAM_FILES = \
|
||||
xrdp-sesman.debian \
|
||||
xrdp-sesman.redhat \
|
||||
xrdp-sesman.suse \
|
||||
xrdp-sesman.freebsd \
|
||||
xrdp-sesman.unix
|
||||
|
||||
EXTRA_DIST = $(PAM_FILES) mkpamrules
|
||||
|
||||
@@ -25,6 +25,11 @@ guess_rules ()
|
||||
return
|
||||
fi
|
||||
|
||||
if test ! -f "$pamdir/system-auth" -a -s "$pamdir/system"; then
|
||||
rules="freebsd"
|
||||
return
|
||||
fi
|
||||
|
||||
rules="unix"
|
||||
return
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#%PAM-1.0
|
||||
auth include system
|
||||
account include system
|
||||
password include system
|
||||
session include system
|
||||
Reference in New Issue
Block a user