From 7962e653b37dc3d3156f16e420e3fd791f5e379f Mon Sep 17 00:00:00 2001 From: Andy Ning Date: Mon, 22 Aug 2022 16:10:47 -0400 Subject: [PATCH] Remove nslcd and related packages on Debian This is part of the change to replace nslcd with sssd to support multiple secure ldap backends. This change removed nss-pam-ldapd (nslcd, libpam-slapd, libnss-slapd) on Debian based stx system. nscd is removed in https://review.opendev.org/c/starlingx/tools/+/854217 Test Plan on Debian: PASS: Package build, image build PASS: System deployment PASS: Verify nslcd, libpam-slapd, libnss-slapd are not installed. PASS: ldap functions work properly (ldap user creation, user login on console and by ssh etc). Story: 2009834 Task: 46069 Depends-On: https://review.opendev.org/c/starlingx/metal/+/854203 Signed-off-by: Andy Ning Change-Id: I87de211876a00c0b0a0d629dde70e13c0feb3df0 --- debian_pkg_dirs | 1 - ...gnore-lo-interfaces-for-nslcd-script.patch | 25 ------------------- ldap/nss-pam-ldapd/debian/deb_patches/series | 2 -- ldap/nss-pam-ldapd/debian/meta_data.yaml | 10 -------- 4 files changed, 38 deletions(-) delete mode 100644 ldap/nss-pam-ldapd/debian/deb_patches/0001-Ignore-lo-interfaces-for-nslcd-script.patch delete mode 100644 ldap/nss-pam-ldapd/debian/deb_patches/series delete mode 100644 ldap/nss-pam-ldapd/debian/meta_data.yaml diff --git a/debian_pkg_dirs b/debian_pkg_dirs index 0e0a697ca..de44351d9 100644 --- a/debian_pkg_dirs +++ b/debian_pkg_dirs @@ -66,7 +66,6 @@ kubernetes/kubernetes-unversioned kubernetes/plugins/isolcpus-device-plugin kubernetes/runc ldap/ldapscripts -ldap/nss-pam-ldapd ldap/openldap livepatch/kpatch networking/ifupdown-extra diff --git a/ldap/nss-pam-ldapd/debian/deb_patches/0001-Ignore-lo-interfaces-for-nslcd-script.patch b/ldap/nss-pam-ldapd/debian/deb_patches/0001-Ignore-lo-interfaces-for-nslcd-script.patch deleted file mode 100644 index d97499ddd..000000000 --- a/ldap/nss-pam-ldapd/debian/deb_patches/0001-Ignore-lo-interfaces-for-nslcd-script.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 8c348fc679099f928002d185aaabe0b2d5142cc3 Mon Sep 17 00:00:00 2001 -From: Fabiano Mercer -Date: Wed, 3 Aug 2022 14:53:38 -0300 -Subject: [PATCH] Ignore lo interfaces for nslcd script - ---- - debian/nslcd.if-up | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/debian/nslcd.if-up b/debian/nslcd.if-up -index 11befba..fb9aaff 100644 ---- a/debian/nslcd.if-up -+++ b/debian/nslcd.if-up -@@ -27,7 +27,7 @@ NSLCD_STATEDIR=/var/run/nslcd - NSLCD_PIDFILE=$NSLCD_STATEDIR/nslcd.pid - - # ignore lo interface --[ "$IFACE" = "lo" ] && exit 0 -+[[ "$IFACE" = lo* ]] && exit 0 - - # only do things when starting the interface - [ "$MODE" != "start" ] && exit 0 --- -2.17.1 - diff --git a/ldap/nss-pam-ldapd/debian/deb_patches/series b/ldap/nss-pam-ldapd/debian/deb_patches/series deleted file mode 100644 index f5c7d7f2a..000000000 --- a/ldap/nss-pam-ldapd/debian/deb_patches/series +++ /dev/null @@ -1,2 +0,0 @@ -0001-Ignore-lo-interfaces-for-nslcd-script.patch - diff --git a/ldap/nss-pam-ldapd/debian/meta_data.yaml b/ldap/nss-pam-ldapd/debian/meta_data.yaml deleted file mode 100644 index 5f88e1d9e..000000000 --- a/ldap/nss-pam-ldapd/debian/meta_data.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -debver: 0.9.11-1 -dl_path: - name: nss-pam-ldapd-0.9.11-1.tar.gz - url: https://salsa.debian.org/debian/nss-pam-ldapd/-/archive/debian/0.9.11-1/nss-pam-ldapd-debian-0.9.11-1.tar.gz - md5sum: ca281003d23e3258dcd56e7be3ecb7f2 - sha256sum: 4f90fc01666524d8607381ed8eef2fb7444a8298cfe76ae9c5009a9e7743be6e -revision: - dist: $STX_DIST - PKG_GITREVCOUNT: