selftest: use shared/libnss_wrapper_winbind.so.2
authorStefan Metzmacher <metze@samba.org>
Thu, 18 Dec 2014 19:13:44 +0000 (20:13 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sun, 11 Jan 2015 13:04:10 +0000 (14:04 +0100)
This library is always available in make test.
nss-wrapper strictly requires the linux nss api.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=9299

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(similar to commit 4eb24fa545234be506eb1330ccbbfd5c2b9e0d82)

selftest/target/Samba.pm
source4/selftest/tests.py

index 5f18a47dd4d8d66d540bd98b43d1752bd13c3879..0b9c09685d5be61937ab39243df789146a17251f 100644 (file)
@@ -68,7 +68,7 @@ sub nss_wrapper_winbind_so_path($) {
         my ($object) = @_;
        my $ret = $ENV{NSS_WRAPPER_WINBIND_SO_PATH};
         if (not defined($ret)) {
-           $ret = bindir_path($object, "default/nsswitch/libnss-winbind.so");
+           $ret = bindir_path($object, "shared/libnss_wrapper_winbind.so.2");
        }
        return $ret;
 }
index 6552b352a1dc3e86ad5c9a2e0b9a5ea3bfdfabc1..004118b0c8528dc1674e3c79dffab150f195cdd4 100755 (executable)
@@ -382,7 +382,7 @@ for env in ["plugin_s4_dc", "dc", "s4member"]:
 nsstest4 = binpath("nsstest")
 for env in ["plugin_s4_dc", "dc", "s4member", "s3dc", "s3member", "member"]:
     if os.path.exists(nsstest4):
-        plantestsuite("samba4.nss.test using winbind(%s)" % env, env, [os.path.join(bbdir, "nsstest.sh"), nsstest4, os.path.join(samba4bindir, "default/nsswitch/libnss-winbind.so")])
+        plantestsuite("samba4.nss.test using winbind(%s)" % env, env, [os.path.join(bbdir, "nsstest.sh"), nsstest4, os.path.join(samba4bindir, "shared/libnss_wrapper_winbind.so.2")])
     else:
         skiptestsuite("samba4.nss.test using winbind(%s)" % env, "nsstest not available")