s3: auth - tests: Add test for "force user" being a unix-only user, not in passdb.
authorJeremy Allison <jra@samba.org>
Tue, 13 Jan 2015 21:49:58 +0000 (13:49 -0800)
committerVolker Lendecke <vl@samba.org>
Wed, 14 Jan 2015 07:46:07 +0000 (08:46 +0100)
https://bugzilla.samba.org/show_bug.cgi?id=11044

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Jan 14 08:46:08 CET 2015 on sn-devel-104

selftest/target/Samba3.pm
source3/script/tests/test_smbclient_auth.sh

index 289e4643c58e372854a074a8395f42c7709f4b62..8926ae13e97a4088cb98117c9c2e66272a404f70 100755 (executable)
@@ -1182,6 +1182,10 @@ sub provision($$$$$$$$)
        path = $shrdir
         force user = $unix_name
         guest ok = yes
+[forceuser_unixonly]
+       path = $shrdir
+       force user = pdbtest
+       guest ok = yes
 [forcegroup]
        path = $shrdir
         force group = nogroup
index 39880950bb12318de9727f0583909f29ea9bea9e..24e98b1f552669ffedeedb0fb165423f452d4ece 100755 (executable)
@@ -27,5 +27,6 @@ testit "smbclient //$SERVER/tmpguest" $SMBCLIENT //$SERVER/tmpguest $CONFIGURATI
 testit "smbclient //$SERVER/tmpguest as anon" $SMBCLIENT //$SERVER/tmpguest $CONFIGURATION -U% -I $SERVER_IP -p 139 -c quit $ADDARGS
 testit "smbclient //$SERVER/forceuser" $SMBCLIENT //$SERVER/forceuser $CONFIGURATION -U$USERNAME%$PASSWORD -I $SERVER_IP -p 139 -c quit $ADDARGS
 testit "smbclient //$SERVER/forceuser as anon" $SMBCLIENT //$SERVER/forceuser $CONFIGURATION -U% -I $SERVER_IP -p 139 -c quit $ADDARGS
+testit "smbclient //$SERVER/forceuser_unixonly" $SMBCLIENT //$SERVER/forceuser_unixonly $CONFIGURATION -U$USERNAME%$PASSWORD -I $SERVER_IP -p 139 -c quit $ADDARGS
 testit "smbclient //$SERVER/forcegroup" $SMBCLIENT //$SERVER/forcegroup $CONFIGURATION -U$USERNAME%$PASSWORD -I $SERVER_IP -p 139 -c quit $ADDARGS
 testit "smbclient //$SERVER/forcegroup as anon" $SMBCLIENT //$SERVER/forcegroup $CONFIGURATION -U% -I $SERVER_IP -p 139 -c quit $ADDARGS