-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TACACS+]: Add support for TACACS+ Authentication #1019
Changes from 1 commit
d04f34f
5130c8a
241171f
3db34d5
86a4391
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=Host config enforcer daemon | ||
Requires=database.service | ||
After=database.service | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/local/bin/hostcfgd | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# libpam-tacplus packages | ||
|
||
PAM_TACPLUS_VERSION = 1.4.1-1 | ||
|
||
export PAM_TACPLUS_VERSION | ||
|
||
LIBPAM_TACPLUS = libpam-tacplus_$(PAM_TACPLUS_VERSION)_amd64.deb | ||
$(LIBPAM_TACPLUS)_SRC_PATH = $(SRC_PATH)/tacacs | ||
SONIC_MAKE_DEBS += $(LIBPAM_TACPLUS) | ||
|
||
LIBTAC2 = libtac2_$(PAM_TACPLUS_VERSION)_amd64.deb | ||
$(eval $(call add_derived_package,$(LIBPAM_TACPLUS),$(LIBTAC2))) | ||
|
||
LIBTAC_DEV = libtac-dev_$(PAM_TACPLUS_VERSION)_amd64.deb | ||
$(eval $(call add_derived_package,$(LIBPAM_TACPLUS),$(LIBTAC_DEV))) | ||
|
||
LIBNSS_TACPLUS = libnss-tacplus_$(PAM_TACPLUS_VERSION)_amd64.deb | ||
$(LIBNSS_TACPLUS)_RDEPENDS += $(LIBTAC2) | ||
$(eval $(call add_derived_package,$(LIBPAM_TACPLUS),$(LIBNSS_TACPLUS))) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
From 80c1d3c1810bf283bbe12fc927de24e48afc2991 Mon Sep 17 00:00:00 2001 | ||
From: Liuqu <chenchen.qcc@alibaba-inc.com> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest not to change the way the patch libpam-tacplus, instead, we can disable the pam-tacplus by default in our image. the idea to minimize the change to the original package as little as possible. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add some scripts to disable the pam-tacplus after install libpam-tacplus? |
||
Date: Sat, 30 Sep 2017 02:24:36 -0700 | ||
Subject: [PATCH 1/2] Don't enable pam-tacplus by default | ||
|
||
--- | ||
debian/libpam-tacplus.postinst | 2 +- | ||
debian/libtac2-bin.install | 2 +- | ||
debian/tacplus | 4 ---- | ||
3 files changed, 2 insertions(+), 6 deletions(-) | ||
|
||
diff --git a/debian/libpam-tacplus.postinst b/debian/libpam-tacplus.postinst | ||
index 7e37590..b008b7a 100644 | ||
--- a/debian/libpam-tacplus.postinst | ||
+++ b/debian/libpam-tacplus.postinst | ||
@@ -2,6 +2,6 @@ | ||
|
||
set -e | ||
|
||
-pam-auth-update --package | ||
+#pam-auth-update --package | ||
|
||
#DEBHELPER# | ||
diff --git a/debian/libtac2-bin.install b/debian/libtac2-bin.install | ||
index 236670a..1df36c6 100644 | ||
--- a/debian/libtac2-bin.install | ||
+++ b/debian/libtac2-bin.install | ||
@@ -1 +1 @@ | ||
-usr/sbin | ||
+usr/bin/* | ||
diff --git a/debian/tacplus b/debian/tacplus | ||
index 5296cf6..985395e 100644 | ||
--- a/debian/tacplus | ||
+++ b/debian/tacplus | ||
@@ -3,13 +3,9 @@ Default: yes | ||
Priority: 257 | ||
Auth-Type: Primary | ||
Auth: | ||
- sufficient pam_tacplus.so | ||
Account-Type: Primary | ||
Account: | ||
- sufficient pam_tacplus.so | ||
Password-Type: Primary | ||
Password: | ||
- sufficient pam_tacplus.so | ||
Session-Type: Additional | ||
Session: | ||
- optional pam_tacplus.so | ||
-- | ||
2.7.4 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this hostcfgd, what is the usage of this hostcfgd? I cannot find this file in the PR. I suggest to have a separate PR for hostcfgd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hostcfgd has been created as another PR in sonic-utilities sonic-net/sonic-utilities#125