diff options
author | Stefan Metzmacher <metze@samba.org> | 2022-03-07 20:57:52 +0100 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-03-16 13:41:14 +0000 |
commit | cd29a661e0f552b0d29c87fae7a9be8703c3a9db (patch) | |
tree | 768e8dfe2c6312fd91103847755abf9e7244a04e | |
parent | c46c341016d82566d97829d67b40a0e7bed25f36 (diff) | |
download | samba-cd29a661e0f552b0d29c87fae7a9be8703c3a9db.tar.gz |
nsswitch: let test_wbinfo.sh also test wbinfo -a $USERNAME@$DOMAIN
When winbindd forwards wbinfo -a via netrLogonSamLogon* to a remote
DC work fine for upn names, e.g. administrator@DOMAIN.
But it currently fails locally on a DC against the local sam.
For the RODC only work because it forwards the request to
an RWDC.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13879
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15003
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit e1d2c59d360fb4e72dafe788b5d9dbb0572bf811)
-rwxr-xr-x | nsswitch/tests/test_wbinfo.sh | 2 | ||||
-rw-r--r-- | selftest/knownfail.d/samba.blackbox.wbinfo | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/nsswitch/tests/test_wbinfo.sh b/nsswitch/tests/test_wbinfo.sh index 2ac83828a0e..198918494cf 100755 --- a/nsswitch/tests/test_wbinfo.sh +++ b/nsswitch/tests/test_wbinfo.sh @@ -294,6 +294,8 @@ testit "wbinfo --user-sids against $TARGET" $wbinfo --user-sids $admin_sid || fa testit "wbinfo -a against $TARGET with domain creds" $wbinfo -a "$DOMAIN/$USERNAME"%"$PASSWORD" || failed=`expr $failed + 1` +testit "wbinfo -a against $TARGET with domain upn creds" $wbinfo -a "$USERNAME@$DOMAIN"%"$PASSWORD" || failed=$(expr $failed + 1) + testit "wbinfo --getdcname against $TARGET" $wbinfo --getdcname=$DOMAIN testit "wbinfo -p against $TARGET" $wbinfo -p || failed=`expr $failed + 1` diff --git a/selftest/knownfail.d/samba.blackbox.wbinfo b/selftest/knownfail.d/samba.blackbox.wbinfo new file mode 100644 index 00000000000..fa71377ffde --- /dev/null +++ b/selftest/knownfail.d/samba.blackbox.wbinfo @@ -0,0 +1,2 @@ +^samba.blackbox.wbinfo.ad_dc.*.wbinfo.-a.against.*.with.domain.upn.creds +^samba.blackbox.wbinfo.promoted_dc.*.wbinfo.-a.against.*.with.domain.upn.creds |