From 5e9ca924932a6ee3938ffcdbcf9a0b9c4d0c67f8 Mon Sep 17 00:00:00 2001 From: David Mulder Date: Tue, 15 Oct 2024 07:35:03 -0600 Subject: [PATCH 1/2] Add sshd config to the Makefile Signed-off-by: David Mulder --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index bf9141f2..806a4c32 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,9 @@ install-ubuntu: install -m 0755 ./target/release/aad-tool /usr/bin install -m 0644 ./platform/debian/himmelblaud.service /etc/systemd/system install -m 0644 ./platform/debian/himmelblaud-tasks.service /etc/systemd/system + if [ -d "/etc/ssh/sshd_config.d" ]; then \ + install -m 0644 ./platform/debian/sshd_config /etc/ssh/sshd_config.d/himmelblau.conf; \ + fi install: ifeq ($(PLATFORM), debian) From e71c22d0c6e19547d2c9ccf3f3dee36207a69e38 Mon Sep 17 00:00:00 2001 From: David Mulder Date: Tue, 15 Oct 2024 07:37:09 -0600 Subject: [PATCH 2/2] Install pam module to additional location via make Signed-off-by: David Mulder Co-authored-by: Martin Barker (Keatran) <37368+barkermn01@users.noreply.github.com> --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 806a4c32..0b185324 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,9 @@ install-ubuntu: install -m 0644 ./src/config/himmelblau.conf.example /etc/himmelblau/himmelblau.conf install -m 0755 ./target/release/libnss_himmelblau.so /usr/lib/x86_64-linux-gnu/libnss_himmelblau.so.2 install -m 0755 ./target/release/libpam_himmelblau.so /usr/lib/x86_64-linux-gnu/security/pam_himmelblau.so + if [ -d "/usr/lib/security" ]; then \ + ln -s /usr/lib/x86_64-linux-gnu/security/pam_himmelblau.so /usr/lib/security/pam_himmelblau.so; \ + fi install -m 0644 ./platform/debian/pam-config /usr/share/pam-configs/himmelblau install -m 0755 ./target/release/himmelblaud /usr/sbin install -m 0755 ./target/release/himmelblaud_tasks /usr/sbin