|
|
@ -23,6 +23,7 @@ import os #for path operations
|
|
|
|
from http import cookies
|
|
|
|
from http import cookies
|
|
|
|
global gSettingsDict
|
|
|
|
global gSettingsDict
|
|
|
|
from . import ServerSettings
|
|
|
|
from . import ServerSettings
|
|
|
|
|
|
|
|
from . import __Orchestrator__
|
|
|
|
import copy
|
|
|
|
import copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -80,19 +81,11 @@ def AuthenticateVerify(inRequest):
|
|
|
|
if "\\" in lUser:
|
|
|
|
if "\\" in lUser:
|
|
|
|
lDomain = lUser.split("\\")[0]
|
|
|
|
lDomain = lUser.split("\\")[0]
|
|
|
|
lUser = lUser.split("\\")[1]
|
|
|
|
lUser = lUser.split("\\")[1]
|
|
|
|
#Try to logon - use processor
|
|
|
|
lLogonBool = __Orchestrator__.OSCredentialsVerify(inUserStr=lUser, inPasswordStr=lPassword, inDomainStr=lDomain)
|
|
|
|
lLogonResult = ProcessorOld.Activity(
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"Type": "WindowsLogon",
|
|
|
|
|
|
|
|
"Domain": lDomain,
|
|
|
|
|
|
|
|
"User": lUser,
|
|
|
|
|
|
|
|
"Password": lPassword
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
#Check result
|
|
|
|
#Check result
|
|
|
|
if lLogonResult["Result"]:
|
|
|
|
if lLogonBool:
|
|
|
|
lResult["Domain"] = lLogonResult["Domain"]
|
|
|
|
lResult["Domain"] = lDomain
|
|
|
|
lResult["User"] = lLogonResult["User"]
|
|
|
|
lResult["User"] = lUser
|
|
|
|
#Create token
|
|
|
|
#Create token
|
|
|
|
lAuthToken=str(uuid.uuid1())
|
|
|
|
lAuthToken=str(uuid.uuid1())
|
|
|
|
gSettingsDict["ServerDict"]["AccessUsers"]["AuthTokensDict"][lAuthToken] = {}
|
|
|
|
gSettingsDict["ServerDict"]["AccessUsers"]["AuthTokensDict"][lAuthToken] = {}
|
|
|
|