Improved user consent server configuration.
This commit is contained in:
parent
192844d29e
commit
76cd48105f
|
@ -268,7 +268,20 @@
|
||||||
"agentAllowedIP": { "type": "string" },
|
"agentAllowedIP": { "type": "string" },
|
||||||
"agentBlockedIP": { "type": "string" },
|
"agentBlockedIP": { "type": "string" },
|
||||||
"userSessionIdleTimeout": { "type": "integer" },
|
"userSessionIdleTimeout": { "type": "integer" },
|
||||||
"userConsentFlags": { "type": "integer" },
|
"userConsentFlags": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"description": "Use this section to require user consent for this domain.",
|
||||||
|
"properties": {
|
||||||
|
"desktopnotify": { "type": "boolean", "default": false, "description": "Enable desktop notification for this domain." },
|
||||||
|
"terminalnotify": { "type": "boolean", "default": false, "description": "Enable terminal notification for this domain." },
|
||||||
|
"filenotify": { "type": "boolean", "default": false, "description": "Enable files notification for this domain." },
|
||||||
|
"desktopprompt": { "type": "boolean", "default": false, "description": "Enable desktop prompt for this domain." },
|
||||||
|
"terminalprompt": { "type": "boolean", "default": false, "description": "Enable terminal user prompt for this domain." },
|
||||||
|
"fileprompt": { "type": "boolean", "default": false, "description": "Enable files prompt for this domain." },
|
||||||
|
"desktopprivacybar": { "type": "boolean", "default": false, "description": "Enable remote desktop privacy bar for this domain." }
|
||||||
|
}
|
||||||
|
},
|
||||||
"urlSwitching": { "type": "boolean" },
|
"urlSwitching": { "type": "boolean" },
|
||||||
"desktopPrivacyBarText": { "type": "string" },
|
"desktopPrivacyBarText": { "type": "string" },
|
||||||
"limits": {
|
"limits": {
|
||||||
|
|
|
@ -1110,6 +1110,19 @@ function CreateMeshCentralServer(config, args) {
|
||||||
} else {
|
} else {
|
||||||
delete obj.config.domains[i].agentcustomization;
|
delete obj.config.domains[i].agentcustomization;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Convert user consent flags
|
||||||
|
if (typeof obj.config.domains[i].userconsentflags == 'object') {
|
||||||
|
var flags = 0;
|
||||||
|
if (obj.config.domains[i].userconsentflags.desktopnotify == true) { flags |= 1; }
|
||||||
|
if (obj.config.domains[i].userconsentflags.terminalnotify == true) { flags |= 2; }
|
||||||
|
if (obj.config.domains[i].userconsentflags.filenotify == true) { flags |= 4; }
|
||||||
|
if (obj.config.domains[i].userconsentflags.desktopprompt == true) { flags |= 8; }
|
||||||
|
if (obj.config.domains[i].userconsentflags.terminalprompt == true) { flags |= 16; }
|
||||||
|
if (obj.config.domains[i].userconsentflags.fileprompt == true) { flags |= 32; }
|
||||||
|
if (obj.config.domains[i].userconsentflags.desktopprivacybar == true) { flags |= 64; }
|
||||||
|
obj.config.domains[i].userconsentflags = flags;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log passed arguments into Windows Service Log
|
// Log passed arguments into Windows Service Log
|
||||||
|
|
|
@ -192,8 +192,15 @@
|
||||||
"_orphanAgentUser": "admin",
|
"_orphanAgentUser": "admin",
|
||||||
"___userSessionIdleTimeout__": "Number of user idle minutes before auto-disconnect",
|
"___userSessionIdleTimeout__": "Number of user idle minutes before auto-disconnect",
|
||||||
"_userSessionIdleTimeout": 30,
|
"_userSessionIdleTimeout": 30,
|
||||||
"__userConsentFlags__": "Set to: 1 for desktop, 2 for terminal, 3 for files, 7 for all",
|
"userConsentFlags": {
|
||||||
"_userConsentFlags": 7,
|
"desktopnotify": true,
|
||||||
|
"terminalnotify": true,
|
||||||
|
"filenotify": true,
|
||||||
|
"desktopprompt": true,
|
||||||
|
"terminalprompt": true,
|
||||||
|
"fileprompt": true,
|
||||||
|
"desktopprivacybar": true
|
||||||
|
},
|
||||||
"_urlSwitching": false,
|
"_urlSwitching": false,
|
||||||
"_desktopPrivacyBarText": "Your privacy bar message",
|
"_desktopPrivacyBarText": "Your privacy bar message",
|
||||||
"_limits": {
|
"_limits": {
|
||||||
|
|
Loading…
Reference in New Issue