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)
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

index de4346e2e7a382038e62b26af35decaf0a9f848c..15423fef3d5e90fac22068ec53564196ace06a1b 100755 (executable)
@@ -608,7 +608,7 @@ sub setup_fileserver($$)
        dfree command = $srcdir_abs/testprogs/blackbox/dfree.sh
 [valid-users-access]
        path = $valid_users_sharedir
-       valid users = +SAMBA-TEST/userdup
+       valid users = +userdup
        ";
 
        my $vars = $self->provision($path,