selftest: use shared/libnss_wrapper_winbind.so.2
authorStefan Metzmacher <metze@samba.org>
Thu, 18 Dec 2014 19:13:44 +0000 (20:13 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 19 Dec 2014 12:15:12 +0000 (13:15 +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>
selftest/target/Samba.pm
source4/selftest/tests.py

index 2bd90ae6f992fd988ebbddaf83c51da7e21ee2a3..ccc63f3713de7a52d6dfcaaf887ec9efee370b6d 100644 (file)
@@ -69,7 +69,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");
            $ret = abs_path($ret);
        }
        return $ret;
index 7362b64c23e22492d45a8ad213f0fe26cee2b4b4..7c4f88820a7aed4f20586d879dd02942d6b66147 100755 (executable)
@@ -421,7 +421,7 @@ for env in ["s3dc", "member", "plugin_s4_dc", "dc", "s3member", "s4member"]:
 nsstest4 = binpath("nsstest")
 for env in ["plugin_s4_dc", "dc", "s4member", "s3dc", "s3member", "member"]:
     if os.path.exists(nsstest4):
-        plantestsuite("samba.nss.test using winbind(%s)" % env, env, [os.path.join(bbdir, "nsstest.sh"), nsstest4, os.path.join(samba4bindir, "default/nsswitch/libnss-winbind.so")])
+        plantestsuite("samba.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("samba.nss.test using winbind(%s)" % env, "nsstest not available")