2016-02-14 04:32:26 +08:00
|
|
|
EXTRA_DIST = \
|
|
|
|
xrdp-sesman.common \
|
|
|
|
xrdp-sesman.other \
|
|
|
|
xrdp-sesman.password-auth
|
|
|
|
|
|
|
|
CLEANFILES = xrdp-sesman
|
2008-08-17 15:17:58 +08:00
|
|
|
|
|
|
|
if SESMAN_NOPAM
|
|
|
|
PAMFILE =
|
|
|
|
else
|
|
|
|
if SESMAN_PAMUSERPASS
|
|
|
|
PAMFILE =
|
|
|
|
else
|
|
|
|
if SESMAN_KERBEROS
|
|
|
|
PAMFILE =
|
|
|
|
else
|
|
|
|
PAMFILE = xrdp-sesman
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-02-14 04:32:26 +08:00
|
|
|
pamddir = $(sysconfdir)/pam.d
|
2008-08-17 15:17:58 +08:00
|
|
|
|
|
|
|
pamd_DATA = \
|
|
|
|
$(PAMFILE)
|
2016-02-14 04:32:26 +08:00
|
|
|
|
|
|
|
xrdp-sesman:
|
|
|
|
if test -e /etc/pam.d/password-auth; then \
|
|
|
|
pamrules=xrdp-sesman.password-auth; \
|
|
|
|
else \
|
|
|
|
if test -e /etc/pam.d/common-auth; then \
|
|
|
|
pamrules=xrdp-sesman.common; \
|
|
|
|
else \
|
|
|
|
pamrules=xrdp-sesman.other; \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
$(LN_S) $(srcdir)/$$pamrules $@
|