mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
selfest: add test for non-local offlinejoin provision
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15777
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 6d4ad4d682
)
This commit is contained in:
committed by
Jule Anger
parent
33edcf2cad
commit
6e4c35f800
@ -34,6 +34,20 @@ samba_texpect="$BINDIR/texpect"
|
||||
|
||||
netbios=$(grep "netbios name" $BASEDIR/$WORKDIR/client.conf | cut -f2 -d= | awk '{$1=$1};1')
|
||||
|
||||
# 0. Test with machine_name != lp_netbios_name()
|
||||
|
||||
NONLOCALMACHINE=win11
|
||||
|
||||
testit "provision with non local machine name" \
|
||||
${VALGRIND} ${net_tool} offlinejoin provision domain="${REALM}" machine_name="${NONLOCALMACHINE}" savefile="${ODJFILE}" -U"${DC_USERNAME}%${DC_PASSWORD}" || \
|
||||
failed=$((failed + 1))
|
||||
|
||||
testit "net rpc user delete" \
|
||||
${VALGRIND} ${net_tool} rpc user delete "${NONLOCALMACHINE}$" -U"${DC_USERNAME}%${DC_PASSWORD}" -S "${DC_SERVER}" || \
|
||||
failed=$((failed + 1))
|
||||
|
||||
rm -f "${ODJFILE}"
|
||||
|
||||
# 1. Test w/o dcname
|
||||
|
||||
testit "provision without dcname" $VALGRIND $net_tool offlinejoin provision domain=$REALM machine_name=$netbios savefile=$ODJFILE -U$DC_USERNAME%$DC_PASSWORD || failed=$(expr $failed + 1)
|
||||
|
Reference in New Issue
Block a user