Merge branch 'master' of https://gitlab.com/UnicodeLabs/OpenRPA.git
commit
59dcf04d0f
@ -0,0 +1,69 @@
|
||||
#Input arg
|
||||
# [
|
||||
# {
|
||||
# "Type": <RemoteMachineProcessingRun>,
|
||||
# host: <localhost>,
|
||||
# port: <port>,
|
||||
# bodyObject: <object dict, int, str, list>
|
||||
# },
|
||||
# {
|
||||
# "Type": "CMDStart",
|
||||
# "Command": ""
|
||||
# },
|
||||
# {
|
||||
# "Type": "OrchestratorRestart"
|
||||
# },
|
||||
# {
|
||||
# "Type": "GlobalDictKeyListValueSet",
|
||||
# "KeyList": ["key1","key2",...],
|
||||
# "Value": <List, Dict, String, int>
|
||||
# },
|
||||
# {
|
||||
# "Type": "GlobalDictKeyListValueAppend",
|
||||
# "KeyList": ["key1","key2",...],
|
||||
# "Value": <List, Dict, String, int>
|
||||
# },
|
||||
# {
|
||||
# "Type": "GlobalDictKeyListValueGet",
|
||||
# "KeyList": ["key1","key2",...]
|
||||
# },
|
||||
# {
|
||||
# "Type":"ProcessStart",
|
||||
# "Path":"",
|
||||
# "ArgList":[]
|
||||
#
|
||||
# },
|
||||
# {
|
||||
# "Type":"ProcessStartIfTurnedOff",
|
||||
# "CheckTaskName":"", #Check if current task name is not active (then start process),
|
||||
# "Path":"",
|
||||
# "ArgList":[]
|
||||
#
|
||||
# },
|
||||
# {
|
||||
# "Type":"ProcessStop",
|
||||
# "Name":"",
|
||||
# "FlagForce":True,
|
||||
# "User":"" #Empty, user or %username%
|
||||
# },
|
||||
# {
|
||||
# "Type":"PythonStart",
|
||||
# "ModuleName":"",
|
||||
# "FunctionName":"",
|
||||
# "ArgList":[],
|
||||
# "ArgDict":{}
|
||||
# },
|
||||
# {
|
||||
# "Type":"WindowsLogon",
|
||||
# "Domain":"",
|
||||
# "User":"",
|
||||
# "Password":""
|
||||
# # Return "Result": True - user is logged on, False - user is not logged on
|
||||
# }
|
||||
# ]
|
||||
##################################
|
||||
#Output result
|
||||
# <input arg> with attributes:
|
||||
# "DateTimeUTCStringStart"
|
||||
# "DateTimeUTCStringStop"
|
||||
# "Result"
|
@ -0,0 +1,32 @@
|
||||
# Init Section
|
||||
gUserNameStr = "Login" # User name without domain name
|
||||
gDomainNameStr = "" # DOMAIN or EMPTY str if no domain
|
||||
gDomainIsDefaultBool = True # If domain is exist and is default (default = you can type login without domain name)
|
||||
|
||||
def SettingsUpdate(inDict):
|
||||
lRuleDomainUserDict = {
|
||||
"MethodMatchURLBeforeList": [
|
||||
{
|
||||
"Method":"GET",
|
||||
"MatchType":"Beginwith",
|
||||
"URL":"/",
|
||||
#"FlagAccessDefRequestGlobalAuthenticate": TestDef
|
||||
"FlagAccess": True
|
||||
},
|
||||
{
|
||||
"Method":"POST",
|
||||
"MatchType":"Beginwith",
|
||||
"URL":"/",
|
||||
#"FlagAccessDefRequestGlobalAuthenticate": TestDef
|
||||
"FlagAccess": True
|
||||
}
|
||||
],
|
||||
"ControlPanelKeyAllowedList": ["TestControlPanel", "RobotRDPActive","RobotScreenActive", "ControlPanel_Template"] # If empty - all is allowed
|
||||
}
|
||||
# Case add domain + user
|
||||
inDict["Server"]["AccessUsers"]["RuleDomainUserDict"].update({(gDomainNameStr.upper(),gUserNameStr.upper()):lRuleDomainUserDict})
|
||||
if gDomainIsDefaultBool:
|
||||
# Case add default domain + user
|
||||
inDict["Server"]["AccessUsers"]["RuleDomainUserDict"].update({("",gUserNameStr.upper()):lRuleDomainUserDict})
|
||||
#Return current dict
|
||||
return inDict
|
Loading…
Reference in new issue