s3: test: Fix standalone valid users fileserver test.
authorJeremy Allison <jra@samba.org>
Wed, 14 Oct 2015 18:20:08 +0000 (11:20 -0700)
committerUri Simchoni <uri@samba.org>
Thu, 15 Oct 2015 20:58:54 +0000 (22:58 +0200)
commit8bcbb6fb16c13d20556fc50ea2744020cb895be3
tree6002aeb13d842a05ea62fe72bbdddc196299b381
parent2f6dc260ada6cd178a650ca003c2ad22e12697c1
s3: test: Fix standalone valid users fileserver test.

Test was originally added for bug #11320. At the time
I remarked the only way I could get this to reproduce
the issue was to use "+WORKGROUP\userdup" instead of
just "+userdup" (which was the actual problem reported),
but I didn't investigage enough to discover the underlying
problem which is actually bug:

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11555

(lookup_names() logic for unqualified (no DOMAIN\
component) names is incorrect). On a standalone
fileserver "WORKGROUP\name" should not resolve,
but "NETBIOS-NAME\name" and just "name" should.

This corrects the test now that lookups for unqualified
names are now being done correctly.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Thu Oct 15 22:58:54 CEST 2015 on sn-devel-104
selftest/target/Samba3.pm