A
PPENDIX
A: A
UTHENTICATION
O
PERATIONS
T
IER
2: T
IME
-
BASED
, W
EB
A
UTHENTICATION
M86 S
ECURITY
U
SER
G
UIDE
193
Tier 1 and Tier 2 Script
In an environment in which both Tier 1 and Tier 2 are used,
this version of M86’s script should be inserted into the
network’s login script. M86’s script attempts to remove the
previous end user’s profile, and then lets the new user log in
with his/her assigned profile.
echo off
:startremove
cls
NET USE \\10.10.10.10\LOGOFF$ /delete
:tryremove1
NET USE \\10.10.10.10\LOGOFF$
if errorlevel 1 goto :tryremove2
if errorlevel 0 echo code 0: Success
goto :endremove
:tryremove2
NET USE \\10.10.10.10\LOGOFF$
if errorlevel 1 goto :tryremove3
if errorlevel 0 echo code 0: Success
goto :endremove
:tryremove3
NET USE \\10.10.10.10\LOGOFF$
if errorlevel 1 goto :removalerror
if errorlevel 0 echo code 0: Success
goto :endremove
:removalerror
if errorlevel 1 echo code 1: Failed to send removal
request!
:endremove
net use \\10.10.10.10\LOGOFF$ /delete