tests: add a test for guest authentication
authorRalph Boehme <slow@samba.org>
Thu, 16 May 2019 10:47:34 +0000 (12:47 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 21 Jun 2019 07:56:17 +0000 (07:56 +0000)
commit15fa6919b8a52942d3f71620657aefe33cebc216
treec7e72a2ca5af274eb7b8b28f5fa50c1e764824d8
parent36641f70d05b4b05495053941e8fcd5c9a470954
tests: add a test for guest authentication

This verifies that smbd always adds BUILTIN\Guests to the guest token which is
required for guest authentication.

Currently the guest token depends on the on-disk configured group mappings. If
there's an existing group mapping for BUILTIN\Guests, but LOCALSAM\Guest is not
a member, the final guest token won't contain BUILTIN\Guests.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 0e88f98855e24cfddb55bef65c5910b8e662c630)
selftest/knownfail.d/samba3.blackbox.guest [new file with mode: 0644]
source3/script/tests/test_guest_auth.sh [new file with mode: 0755]
source3/selftest/tests.py