Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Jul 22 12:42:55 UTC 2026 on atb-devel-224
retval=$?
testit "net cache samlogon ndrdump returns netr_SamInfo3 structure" test $retval -eq 0 || failed=$(expr $failed + 1)
+# Test that we can expire a samlogon cache entry
+timeout=1
+sleep $(($timeout + 1 ))
+
+testit_expect_failure "net cache samlogon show $usersid --option=netsamlogoncache:timeout=$timeout" \
+ $BINDIR/net cache samlogon show $usersid \
+ --option=netsamlogoncache:timeout=$timeout ||
+ failed=$(expr $failed + 1)
+
testok $0 $failed