From f5a0ccc228ce1ef7d9e0e660308b5bfa15d8cf76 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 2 Feb 2015 16:16:45 +0100 Subject: [PATCH] selftest: re-enable nsswrapper integration testing for dc and member environments. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are some failures: - The dc environment fails consistently due to duplicate uid, (for the calling user and the domain administrator). ==> Marked as knownfail. - The s3member environment only fails under very strange circumstances: - one needs to run the unix.whoami test in the member and s3member environment for the local.nss test to fail in the s3member:local env. The failure is then related to builtin administrators sharing a gid with a different group. --> This is really really strange!!! ==> Marked as knownfail. Pair-Programmed-With: Guenther Deschner Signed-off-by: Michael Adam Signed-off-by: Günther Deschner Autobuild-User(master): Günther Deschner Autobuild-Date(master): Mon Mar 2 19:50:55 CET 2015 on sn-devel-104 --- selftest/knownfail | 14 ++++++++++++++ source3/selftest/tests.py | 5 ++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/selftest/knownfail b/selftest/knownfail index fef56a13819..b3cc2d685ff 100644 --- a/selftest/knownfail +++ b/selftest/knownfail @@ -273,6 +273,20 @@ ^samba.wbinfo_simple.\(s4member:local\).--user-groups ^samba.nss.test using winbind\(s4member:local\) # +# These fail since dc assigns the local user's uid to SAMBADOMAIN/Administrator +# hence we have a duplicate UID in nsswitch. +# +^samba3.local.nss.reentrant enumeration crosschecks\(dc:local\) +^samba3.local.nss.reentrant enumeration\(dc:local\) +^samba3.local.nss.enumeration\(dc:local\) +# +# These fail only if we run the unix.whoami test before them +# in the member and s3member environments. ==> Strange!!! +# +^samba3.local.nss.reentrant enumeration crosschecks\(s3member:local\) +^samba3.local.nss.reentrant enumeration\(s3member:local\) +^samba3.local.nss.enumeration\(s3member:local\) +# # These just happen to fail for some reason (probably because they run against the s4 winbind) # ^samba4.winbind.struct.getdcname\(s3member:local\) diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index 0a59903a533..ab34cd54971 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -280,7 +280,7 @@ rpc = ["rpc.authcontext", "rpc.samba3.bind", "rpc.samba3.srvsvc", "rpc.samba3.sh "rpc.netlogon.admin", "rpc.schannel", "rpc.schannel2", "rpc.bench-schannel1", "rpc.schannel_anon_setpw", "rpc.join", "rpc.bind"] -local = ["local.ndr"] +local = ["local.nss", "local.ndr"] idmap = [ "idmap.rfc2307" ] @@ -376,6 +376,9 @@ for t in tests: plansmbtorture4testsuite(t, "s3dc", '//$SERVER_IP/tmp -U$%', description="anonymous password set") plansmbtorture4testsuite(t, "s3dc_schannel", '//$SERVER_IP/tmp -U$%', description="anonymous password set (schannel enforced server-side)") plansmbtorture4testsuite(t, "plugin_s4_dc", '//$SERVER/tmp -U$%', description="anonymous password set") + elif t == "local.nss": + for env in ["s3dc:local", "s3member:local", "member:local", "plugin_s4_dc:local", "dc:local"]: + plansmbtorture4testsuite(t, env, '//$SERVER/tmp -U$USERNAME%$PASSWORD') else: plansmbtorture4testsuite(t, "s3dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD') plansmbtorture4testsuite(t, "plugin_s4_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')