[libnfsidmap/f15] rpc.idmapd fails to load plugings (bz 705952) nss_getpwnam: ignore case when comparing domain names

Steve Dickson steved at fedoraproject.org
Tue Mar 13 19:40:50 UTC 2012


commit c8cf01b2888122b3fde42b76746e42c575140e97
Author: Steve Dickson <steved at redhat.com>
Date:   Tue Mar 13 15:39:51 2012 -0400

    rpc.idmapd fails to load plugings (bz 705952)
    nss_getpwnam: ignore case when comparing domain names
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

 libnfsidmap-0.24-getpwnam-ignore-case.patch |   26 ++++++++++++++++++++++++++
 libnfsidmap-0.24-load-plugins.patch         |   24 ++++++++++++++++++++++++
 libnfsidmap.spec                            |   10 +++++++++-
 3 files changed, 59 insertions(+), 1 deletions(-)
---
diff --git a/libnfsidmap-0.24-getpwnam-ignore-case.patch b/libnfsidmap-0.24-getpwnam-ignore-case.patch
new file mode 100644
index 0000000..969b11d
--- /dev/null
+++ b/libnfsidmap-0.24-getpwnam-ignore-case.patch
@@ -0,0 +1,26 @@
+commit 0c1766af5bf125a56fbf589111aa2f3876a5d709
+Author: Steve Dickson <steved at redhat.com>
+Date:   Sat Nov 12 10:19:52 2011 -0500
+
+    nss_getpwnam: ignore case when comparing domain names
+    
+    nss_getpwnam() fails to find the password entry when the
+    DNS domain name has both upper and lower characters,
+    which is wrong. Case need to be ignored when comparing
+    domain names.
+    
+    Signed-off-by: Steve Dickson <steved at redhat.com>
+
+diff --git a/nss.c b/nss.c
+index 04aff19..b2b1227 100644
+--- a/nss.c
++++ b/nss.c
+@@ -141,7 +141,7 @@ static char *strip_domain(const char *name, const char *domain)
+ 	if (c == NULL && domain == NULL) {
+ 		len = strlen(name) + 1;
+ 	} else {
+-		if (domain && strcmp(c + 1, domain) != 0)
++		if (domain && strcasecmp(c + 1, domain) != 0)
+ 			goto out;
+ 		len = c - name;
+ 	}
diff --git a/libnfsidmap-0.24-load-plugins.patch b/libnfsidmap-0.24-load-plugins.patch
new file mode 100644
index 0000000..fcb5896
--- /dev/null
+++ b/libnfsidmap-0.24-load-plugins.patch
@@ -0,0 +1,24 @@
+commit d9f2fcd93e033b8a5d4a56ddd6c7d316fdd8516d
+Author: Steve Dickson <steved at redhat.com>
+Date:   Mon Mar 7 10:57:44 2011 -0500
+
+    rpc.idmapd fails to load plugings
+    
+    Due to commit 9acc85db,  PATH_PLUGINS becomes redefined when the
+    --with-pluginpath configuration flag is used due to a
+    Makefile.ac rule.
+    
+    Signed-off-by: Steve Dickson <steved at redhat.com>
+
+diff --git a/Makefile.am b/Makefile.am
+index 296e277..0832c1c 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -26,7 +26,6 @@ pkglib_LTLIBRARIES = nsswitch.la static.la $(UMICH_LDAP_LIB) $(GUMS_MAPPING_LIB)
+ #  		by this library.
+ 
+ libnfsidmap_la_SOURCES = libnfsidmap.c cfg.c strlcpy.c cfg.h nfsidmap_internal.h queue.h
+-libnfsidmap_la_CPPFLAGS = -DPATH_PLUGINS=\"$(pkglibdir)\"
+ libnfsidmap_la_LDFLAGS = -version-info 3:0:3
+ libnfsidmap_la_LIBADD = -ldl
+ 
diff --git a/libnfsidmap.spec b/libnfsidmap.spec
index 2fbae8c..81c9978 100644
--- a/libnfsidmap.spec
+++ b/libnfsidmap.spec
@@ -3,7 +3,7 @@
 Summary: NFSv4 User and Group ID Mapping Library
 Name: libnfsidmap
 Version: 0.24
-Release: 5%{?dist}
+Release: 6%{?dist}
 Provides: nfs-utils-lib
 Obsoletes: nfs-utils-lib
 URL: http://www.citi.umich.edu/projects/nfsv4/linux/
@@ -14,6 +14,8 @@ License: BSD
 Source0: http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/%{name}-%{version}.tar.gz
 
 Patch001: libnfsidmap-0-25-rc1.patch
+Patch002: libnfsidmap-0.24-load-plugins.patch
+Patch003: libnfsidmap-0.24-getpwnam-ignore-case.patch
 
 Group: System Environment/Libraries
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -40,6 +42,8 @@ developing programs which use the libnfsidmap library.
 %setup -q 
 
 %patch001 -p1
+%patch002 -p1
+%patch003 -p1
 
 %build
 ./autogen.sh
@@ -85,6 +89,10 @@ rm -rf %{buildroot}
 %{_root_libdir}/*.so
 
 %changelog
+* Tue Mar 13 2012 Steve Dickson <steved at redhat.com>  0.24-6
+- rpc.idmapd fails to load plugings (bz 705952)
+- nss_getpwnam: ignore case when comparing domain names
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.24-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list