
Problem: - Centos 7.5 upgraded nss-pam-ldapds. - Porting of nss-pam-ldapds patches did not resolve and 'fuzz' in the line numbers of the patches. - If nss-pam-ldapd is built by rpm 4.11, or default version of rpm until 4.14 is compiled, a fuzzy patch results in the creating of an .orig file. - Packaging of nss-pam-ldapds failes due to the unexpected, and unpackaged .orig file Solution: Safest solution is to de-fuzz our nss-pam-ldapds patches. Story: 2003389 Task: 26755 Change-Id: I82092c3ff4d7cf711d0e1542e61bccb491bd8388 Signed-off-by: Sun Austin <austin.sun@intel.com>
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From 93fb9c5632063cb636d870c1b50c4a99a008e76c Mon Sep 17 00:00:00 2001
|
|
From: Kam Nasim <kam.nasim@windriver.com>
|
|
Date: Thu, 13 Apr 2017 11:43:59 -0400
|
|
Subject: specify rootDN as bindDN in nslcd to prevent writes over anonymous
|
|
binds.
|
|
|
|
---
|
|
SPECS/nss-pam-ldapd.spec | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/SPECS/nss-pam-ldapd.spec b/SPECS/nss-pam-ldapd.spec
|
|
index ae547f1..18e6482 100644
|
|
--- a/SPECS/nss-pam-ldapd.spec
|
|
+++ b/SPECS/nss-pam-ldapd.spec
|
|
@@ -273,7 +273,8 @@ if test "$1" -eq "1" && ! grep -q -F "# $comment" $target 2> /dev/null ; then
|
|
# grep -E '^base[[:blank:]]' $source >> $target
|
|
# fi
|
|
# Pull in these settings, if they're set, directly.
|
|
- grep -E '^(binddn|bindpw|port|scope|ssl|pagesize)[[:blank:]]' $source 2> /dev/null >> $target
|
|
+ # WRS: we don't want change our custom binddn and bindpw in nslcd.conf
|
|
+ grep -E '^(port|scope|ssl|pagesize)[[:blank:]]' $source 2> /dev/null >> $target
|
|
grep -E '^(tls_)' $source 2> /dev/null >> $target
|
|
grep -E '^(timelimit|bind_timelimit|idle_timelimit)[[:blank:]]' $source 2> /dev/null >> $target
|
|
fi
|
|
--
|
|
2.7.4
|
|
|