-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
37 changed files
with
28,171 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3478,13 +3478,16 @@ function mainStart() { | |
const verSplit = process.version.substring(1).split('.'); | ||
var nodeVersion = parseInt(verSplit[0]) + (parseInt(verSplit[1]) / 100); | ||
|
||
// Check if RDP support if present | ||
var mstsc = true; | ||
try { require('./rdp') } catch (ex) { mstsc = false; } | ||
|
||
// Check if Windows SSPI, LDAP, Passport and YubiKey OTP will be used | ||
var sspi = false; | ||
var ldap = false; | ||
var passport = null; | ||
var allsspi = true; | ||
var yubikey = false; | ||
var mstsc = false; | ||
var ssh = false; | ||
var sessionRecording = false; | ||
var domainCount = 0; | ||
|
@@ -3499,7 +3502,7 @@ function mainStart() { | |
if (config.domains[i].sendgrid != null) { sendgrid = true; } | ||
if (config.domains[i].yubikey != null) { yubikey = true; } | ||
if (config.domains[i].auth == 'ldap') { ldap = true; } | ||
if (config.domains[i].mstsc == true) { mstsc = true; } | ||
if (mstsc == false) { config.domains[i].mstsc = false; } | ||
if (config.domains[i].ssh == true) { if (nodeVersion < 11) { config.domains[i].ssh = false; } ssh = true; } | ||
if ((typeof config.domains[i].authstrategies == 'object')) { | ||
if (passport == null) { passport = ['passport']; } | ||
|
@@ -3519,7 +3522,6 @@ function mainStart() { | |
var modules = ['[email protected]', '[email protected]', '@yetzt/nedb', 'https', 'yauzl', 'ipcheck', 'express', '[email protected]', 'multiparty', 'node-forge', '[email protected]', 'compression', 'body-parser', '[email protected]', 'express-handlebars']; | ||
if (require('os').platform() == 'win32') { modules.push('[email protected]'); modules.push('loadavg-windows'); if (sspi == true) { modules.push('node-sspi'); } } // Add Windows modules | ||
if (ldap == true) { modules.push('ldapauth-fork'); } | ||
if (mstsc == true) { modules.push('node-rdpjs-2'); } | ||
if (ssh == true) { if (nodeVersion < 11) { addServerWarning('MeshCentral SSH support requires NodeJS 11 or higher.', 1); } else { modules.push('ssh2'); } } | ||
if (passport != null) { modules.push(...passport); } | ||
if (sessionRecording == true) { modules.push('image-size'); } // Need to get the remote desktop JPEG sizes to index the recodring file. | ||
|
Oops, something went wrong.