If you have a 20 to 30 minute login time, something is very wrong.
By default, windows will kill any login script after 10 minutes of processing time.
It sounds like you've heavily modified your AD setup.
Try this script instead: (replace 10.0.0.1 with the internal IP of your untangle unit)
Code:
'Handle or Ignore all errors
On Error Resume Next
'Setup logfile
Set objFSO = CreateObject("scripting.filesystemobject")
Set logStream = objFSO.createtextfile("c:\vblog.txt", True)
'Time in milliseconds to sleep between request
SLEEP_PERIOD = 300000
URL_PREFIX = "http"
If WScript.Arguments.Count = 1 Then
ServerName = WScript.Arguments.Item(0)
Else
ServerName = "10.0.0.1"
End If
LogStream.writeline "ServerName is: " & ServerName
LogStream.writeline "Entering the loop..."
Do While True
Set AJAX = CreateObject("MSXML2.ServerXMLHTTP")
Set wshShell = CreateObject("WScript.Shell")
strUser = wshShell.ExpandEnvironmentStrings("%USERNAME%")
strDomain = wshShell.ExpandEnvironmentStrings("%USERDOMAIN%")
strHostname = wshShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
command = URL_PREFIX+"://"+ServerName+"/adpb/registration?username="+strUser+"&domain="+strDomain+"&hostname="+strHostname+"&action=login"
LogStream.writeline command
AJAX.Open "GET", command
AJAX.Send ""
WScript.sleep(SLEEP_PERIOD)
AJAX.Abort
Set AJAX = nothing
LogStream.writeline "Here we go again!"
Loop
and look at the file c:\vblog.txt on the computer during the login process. (do it from another machine by browsing to \\[testmachinename]\c$
__________________
m.
Big Frickin Disclaimer:
While I'm pretty sure, I can't guarantee that I know what I'm doing. There might be a better way to do this, and this way might actually suck. Make sure you understand the implications of what you're doing before trying to follow these directions.It often helps troubleshooting if you have a good network map. Look
here if you want my advice on how to draw one.
Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com