ports/190090: nsswitch ignores sss option
Lukas Slebodnik
lukas.slebodnik at intrak.sk
Wed May 21 21:10:00 UTC 2014
>Number: 190090
>Category: ports
>Synopsis: nsswitch ignores sss option
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed May 21 21:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Lukas Slebodnik
>Release: 9.2-RELEASE-p3
>Organization:
>Environment:
FreeBSD freebsd 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan 11 03:25:02 UTC 2014 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Recently, the Makefile in security/sssd port was adapted to use libtoolize. In the same commit (svn revision 353313) clean up was done. The problem is that some changes should not be done.
post-install:
${INSTALL_DATA} ${WRKSRC}/src/examples/sssd-example.conf ${STAGEDIR}${ET
- (cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s nss_sss.so.2 nss_sss.so.1)
- (cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s pam_sss.so pam_sss.so.5)
- @${RM} -f ${STAGEDIR}${PREFIX}/lib/ldb/memberof.la
nsswitch try to find file nss_sss.so.1, but it does not exist.
root at freebsd:~ # grep sss /etc/nsswitch.conf
group: files sss
passwd: files sss
root at freebsd:~ # truss getent passwd usersssd01 | & grep sss
access("/lib/nss_sss.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/nss_sss.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_sss.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/nss_sss.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/nss/nss_sss.so.1",0) ERR#2 'No such file or directory'
access("/lib/nss_sss.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/nss_sss.so.1",0) ERR#2 'No such file or directory'
root at freebsd:~ # find /usr/local/lib -name "nss_sss*"
/usr/local/lib/nss_sss.so
/usr/local/lib/nss_sss.so.2
/usr/local/lib/nss_sss.so.2.0.0
Attached patch should fix this problem.
>How-To-Repeat:
>Fix:
Attached patch should fix this problem.
Patch attached with submission follows:
>From 9bf6aabeeeb9e26810221e541203888bbffffe45 Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lukas.slebodnik at intrak.sk>
Date: Wed, 21 May 2014 23:04:27 +0200
Subject: [PATCH] create symlink for nss_sss.so with suffix .1
---
Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index 48f0166a767021c5b6c84e68f1adb8bea367b700..1f4fb158f314975f11be70b6211bf4a33aed76d6 100644
--- a/Makefile
+++ b/Makefile
@@ -105,6 +105,7 @@ post-patch:
post-install:
${INSTALL_DATA} ${WRKSRC}/src/examples/sssd-example.conf ${STAGEDIR}${ETCDIR}/sssd.conf.sample
+ (cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s nss_sss.so nss_sss.so.1)
# clean these up from the install; we create them in rc script start_precmd
.for VARDIRS in db/sss db/sss_mc log/sssd run/sss/krb5.include.d run/sss/private run/sss
--
1.9.0
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list