mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
nsswitch: Add a test looking up the user using the upn
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13369 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
9bc2b922bb
commit
0d2f743d82
@ -8,8 +8,9 @@ exit 1;
|
||||
fi
|
||||
|
||||
DOMAIN=$1
|
||||
DC_USERNAME=$2
|
||||
shift 2
|
||||
REALM=$2
|
||||
DC_USERNAME=$3
|
||||
shift 3
|
||||
|
||||
failed=0
|
||||
sambabindir="$BINDIR"
|
||||
@ -22,6 +23,10 @@ testit "name-to-sid.single-separator" \
|
||||
$wbinfo -n $DOMAIN/$DC_USERNAME || \
|
||||
failed=$(expr $failed + 1)
|
||||
|
||||
testit "name-to-sid.upn" \
|
||||
$wbinfo -n $DC_USERNAME@$REALM || \
|
||||
failed=$(expr $failed + 1)
|
||||
|
||||
# Two separator characters should fail
|
||||
testit_expect_failure "name-to-sid.double-separator" \
|
||||
$wbinfo -n $DOMAIN//$DC_USERNAME || \
|
||||
|
@ -214,7 +214,7 @@ plantestsuite("samba3.wbinfo_simple.(%s:local).%s" % (env, t), "%s:local" % env,
|
||||
plantestsuite("samba3.wbinfo_name_lookup", env,
|
||||
[ os.path.join(srcdir(),
|
||||
"nsswitch/tests/test_wbinfo_name_lookup.sh"),
|
||||
'$DOMAIN', '$DC_USERNAME' ])
|
||||
'$DOMAIN', '$REALM', '$DC_USERNAME' ])
|
||||
t = "WBCLIENT-MULTI-PING"
|
||||
plantestsuite("samba3.smbtorture_s3.%s" % t, env, [os.path.join(samba3srcdir, "script/tests/test_smbtorture_s3.sh"), t, '//foo/bar', '""', '""', smbtorture3, ""])
|
||||
plantestsuite("samba3.substitutions", env, [os.path.join(samba3srcdir, "script/tests/test_substitutions.sh"), "$SERVER", "alice", "Secret007", "$PREFIX"])
|
||||
|
Loading…
Reference in New Issue
Block a user