From 9164480cf8ed5b83697214244bf17b04974116402c8ff0e8117b3f2272e5f254 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 10 Oct 2014 07:25:27 +0000 Subject: [PATCH] wbclient plugin handling OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=129 --- sssd.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sssd.spec b/sssd.spec index 473564f..7818d03 100644 --- a/sssd.spec +++ b/sssd.spec @@ -175,9 +175,11 @@ the "local" id provider of the System Security Services Daemon (sssd). Summary: SSSD's implementation of the Winbind pipe protocol License: LGPL-3.0+ Group: System/Libraries -AutoReqProv: off %description wbclient +libwbclient is a plugin for the Samba client, though it has been +implemented as a regular shared library requested via DT_NEEDED. + sssd-wbclient implements the libwbclient API for Samba daemons and utilities. The main purpose is to map Active Directory users and groups identified by their SID to POSIX users and groups identified @@ -375,6 +377,10 @@ install src/sysv/SUSE/sssd "$b/%_sysconfdir/init.d/sssd"; ln -sf ../../etc/init.d/sssd "$b/usr/sbin/rcsssd" %endif +mkdir -p "$b/%_sysconfdir/ld.so.conf.d" +cat >"$b/%_sysconfdir/ld.so.conf.d/sssd-wbclient.conf" <<-EOF + %_libdir/%name/modules +EOF find "$b" -type f -name "*.la" -delete; %if %suse_version <= 1110 @@ -594,6 +600,7 @@ rm -f /var/lib/sss/db/*.ldb %files wbclient %defattr(-,root,root) +%_sysconfdir/ld.so.conf.d/sssd-wbclient.conf %dir %_libdir/sssd/ %dir %_libdir/sssd/modules/ %_libdir/sssd/modules/libwbclient.so.*