Merge branch 'master' into feat/initgroups

This commit is contained in:
Mark Dietzer 2024-12-31 17:23:49 -08:00 committed by GitHub
commit 2e3f4f30ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 additions and 3 deletions

View file

@ -35,6 +35,7 @@ maintainer = "James Hodgkinson <james@terminaloutcomes.com>"
depends = ["libc6", "libpam0g"]
section = "network"
priority = "optional"
maintainer-scripts = "debian/"
assets = [
# Empty on purpose
]

View file

@ -4,7 +4,7 @@ Priority: 128
Auth-Type: Primary
Auth:
[success=end new_authtok_reqd=done default=ignore] pam_kanidm.so ignore_unknown_user
[success=end new_authtok_reqd=done default=ignore] pam_kanidm.so ignore_unknown_user use_first_pass
Account-Type: Primary
Account:

View file

@ -0,0 +1,29 @@
#!/bin/sh
# postinst script for libpam-kanidm
#
# see: dh_installdeb(1)
set -e
case "$1" in
configure)
echo "Updating PAM configuration"
pam-auth-update --package
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

View file

@ -8,13 +8,12 @@ set -e
case "$1" in
configure)
pam-auth-update --package
echo "============================="
echo "Thanks for installing Kanidm!"
echo "============================="
echo "Please ensure you modify the configuration files at /etc/kanidm/unixd and /etc/kanidm/config"
echo "Full examples are in /usr/share/kanidm-unixd/"
echo "To configure nsswitch, please follow instructions in https://kanidm.github.io/kanidm/master/integrations/pam_and_nsswitch.html"
echo "PAM has already been autoconfigured by the libpam-kanidm package. To configure nsswitch, please follow instructions in https://kanidm.github.io/kanidm/master/integrations/pam_and_nsswitch.html"
;;
abort-upgrade|abort-remove|abort-deconfigure)