1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

testprogs: Cleanup machine account in net offlinejoin tests

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

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit e92e4b9544231c15eaf0bdbba4505345cd0f6ab5)
This commit is contained in:
Samuel Cabrero 2023-09-04 16:18:35 +02:00 committed by Jule Anger
parent 6947559097
commit ce29bbfb7d

View File

@ -43,6 +43,8 @@ testit "testjoin" $VALGRIND $net_tool ads testjoin -P --use-kerberos=required ||
rm -f $ODJFILE
testit "leave" $VALGRIND $net_tool ads leave -U$DC_USERNAME%$DC_PASSWORD || failed=$(expr $failed + 1)
# 2. Test with dcname
testit "provision with dcname" $VALGRIND $net_tool offlinejoin provision domain=$REALM machine_name=$netbios savefile=$ODJFILE dcname=$DC_SERVER -U$DC_USERNAME%$DC_PASSWORD || failed=$(expr $failed + 1)
@ -53,6 +55,8 @@ testit "testjoin" $VALGRIND $net_tool ads testjoin -P --use-kerberos=required ||
rm -f $ODJFILE
testit "leave" $VALGRIND $net_tool ads leave -U$DC_USERNAME%$DC_PASSWORD || failed=$(expr $failed + 1)
# 3. Test with defpwd
testit "provision with dcname and default password" $VALGRIND $net_tool offlinejoin provision domain=$REALM machine_name=$netbios savefile=$ODJFILE dcname=$DC_SERVER defpwd -U$DC_USERNAME%$DC_PASSWORD || failed=$(expr $failed + 1)
@ -63,6 +67,8 @@ testit "testjoin" $VALGRIND $net_tool ads testjoin -P --use-kerberos=required ||
rm -f $ODJFILE
testit "leave" $VALGRIND $net_tool ads leave -U$DC_USERNAME%$DC_PASSWORD || failed=$(expr $failed + 1)
rm -rf $BASEDIR/$WORKDIR
exit $failed