-#%PAM-1.0
+# This is a generic pam config file for open-vm-tools
+# See https://kb.vmware.com/s/article/78251 for advice to use
+# common authentication mechanisms.
auth required pam_shells.so
auth sufficient pam_unix.so shadow
auth required pam_unix_auth.so shadow
--- /dev/null
+auth required pam_shells.so
+auth substack password-auth
+auth include postlogin
+account required pam_nologin.so
+account include password-auth
+
--- /dev/null
+auth required pam_shells.so
+auth requisite pam_nologin.so
+auth [user_unknown=ignore success=ok ignore=ignore auth_err=die default=bad] pam_securetty.so
+auth include common-auth
+account include common-account
+
################################################################################
-### Copyright (C) 2009-2019 VMware, Inc. All rights reserved.
+### Copyright (C) 2009-2020 VMware, Inc. All rights reserved.
###
### This program is free software; you can redistribute it and/or modify
### it under the terms of version 2 of the GNU General Public License as
################################################################################
bin_PROGRAMS = vmtoolsd
-pamdir = $(PAM_PREFIX)/pam.d
-
vmtoolsd_CPPFLAGS =
vmtoolsd_CPPFLAGS += @VMTOOLS_CPPFLAGS@
vmtoolsd_LINK = $(LINK)
endif
-# PAM support is currently only available for Linux, so HAVE_PAM is only
-# defined for that OS.
-if HAVE_PAM
-pam_SCRIPTS = $(top_srcdir)/scripts/linux/pam.d/vmtoolsd
-endif HAVE_PAM
-
# Message catalogs.
install-data-hook:
@INSTVMSG@ vmtoolsd $(srcdir)/l10n $(DESTDIR)$(datadir)
install-exec-hook:
$(INSTALL) -d $(DESTDIR)/etc/vmware-tools
+ $(INSTALL) -d $(DESTDIR)/$(PAM_PREFIX)/pam.d/
+ $(INSTALL) $(top_srcdir)/pam/generic $(DESTDIR)/$(PAM_PREFIX)/pam.d/vmtoolsd
uninstall-hook:
+ rm -f $(DESTDIR)/$(PAM_PREFIX)/pam.d/vmtoolsd
rm -rf $(DESTDIR)/etc/vmware-tools