selftest: re-enable nss_winbind via nss_wrapper in the test-envs.
authorGünther Deschner <gd@samba.org>
Mon, 2 Feb 2015 13:54:01 +0000 (14:54 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 13 Feb 2015 19:57:11 +0000 (20:57 +0100)
Without exporting these new variables, we can never access or test nss_winbind
from the selftest environments.

This shows that our posixacl test probably needs fixing since now
two subtests fail against plugin_s4_dc:local. This env was just
not complete without winbind in nsswitch. The test failure is
probably due to the strangeness of the AD/DC setup that the
domain administrator uses the same uid as the root user, which
in the selftest case is overridden to be the calling user.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Pair-Programmed-With: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Feb 13 20:57:12 CET 2015 on sn-devel-104

selftest/knownfail
selftest/selftest.pl

index b694d06723a0373ed0ea5237fdb7157a05c45047..fef56a13819530fe36b941e3bd661e3ed855bd13 100644 (file)
 # Differences in our KDC compared to windows
 #
 ^samba4.krb5.kdc .*.as-req-pac-request # We should reply to a request for a PAC over UDP with KRB5KRB_ERR_RESPONSE_TOO_BIG unconditionally
+#
+# Test does not work, apparently because the calling user and
+# the domain admin use the same uid. This was uncovered by
+# enabling libnss_winbindd in the nsswrapper environment.
+# TODO: fix the test.
+#
+^samba.tests.posixacl.samba.tests.posixacl.PosixAclMappingTests.test_setntacl_sysvol_check_getposixacl\(plugin_s4_dc:local\)$
+^samba.tests.posixacl.samba.tests.posixacl.PosixAclMappingTests.test_setntacl_policies_check_getposixacl\(plugin_s4_dc:local\)$
index 2bbb3c8f9453bce10dee2b5f61b6649e25b4a199..72341f01e8f7b5ba3e89f1bd2fadf0c681c714bd 100755 (executable)
@@ -793,6 +793,8 @@ my @exported_envvars = (
        "NSS_WRAPPER_PASSWD",
        "NSS_WRAPPER_GROUP",
        "NSS_WRAPPER_HOSTS",
+       "NSS_WRAPPER_MODULE_SO_PATH",
+       "NSS_WRAPPER_MODULE_FN_PREFIX",
 
        # resolv_wrapper
        "RESOLV_WRAPPER_CONF",