Skip to content

Commit 6d4ad4d

Browse files
gdcryptomilk
authored andcommitted
selfest: add test for non-local offlinejoin provision
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15777 Guenther Signed-off-by: Guenther Deschner <[email protected]> Reviewed-by: Andreas Schneider <[email protected]>
1 parent f02a400 commit 6d4ad4d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

testprogs/blackbox/test_net_offline.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ samba_texpect="$BINDIR/texpect"
3434

3535
netbios=$(grep "netbios name" $BASEDIR/$WORKDIR/client.conf | cut -f2 -d= | awk '{$1=$1};1')
3636

37+
# 0. Test with machine_name != lp_netbios_name()
38+
39+
NONLOCALMACHINE=win11
40+
41+
testit "provision with non local machine name" \
42+
${VALGRIND} ${net_tool} offlinejoin provision domain="${REALM}" machine_name="${NONLOCALMACHINE}" savefile="${ODJFILE}" -U"${DC_USERNAME}%${DC_PASSWORD}" || \
43+
failed=$((failed + 1))
44+
45+
testit "net rpc user delete" \
46+
${VALGRIND} ${net_tool} rpc user delete "${NONLOCALMACHINE}$" -U"${DC_USERNAME}%${DC_PASSWORD}" -S "${DC_SERVER}" || \
47+
failed=$((failed + 1))
48+
49+
rm -f "${ODJFILE}"
50+
3751
# 1. Test w/o dcname
3852

3953
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)

0 commit comments

Comments
 (0)