mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	MeshCentral can now remember RDP credentials.
This commit is contained in:
		
							parent
							
								
									e373cec943
								
							
						
					
					
						commit
						d4ecae73d9
					
				
					 8 changed files with 2351 additions and 2185 deletions
				
			
		|  | @ -713,6 +713,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use | |||
|                             // Remove SSH credentials if present
 | ||||
|                             if (docs[i].ssh != null) { docs[i].ssh = 1; } | ||||
| 
 | ||||
|                             // Remove RDP credentials if present
 | ||||
|                             if (docs[i].rdp != null) { docs[i].rdp = 1; } | ||||
| 
 | ||||
|                             // Remove Intel AMT credential if present
 | ||||
|                             if (docs[i].intelamt != null) { | ||||
|                                 if (docs[i].intelamt.pass != null) { docs[i].intelamt.pass = 1; } | ||||
|  | @ -4275,6 +4278,10 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use | |||
|                             if (node.ssh != null) { delete node.ssh; change = 1; changes.push('ssh'); } // Delete the SSH cendentials
 | ||||
|                         } | ||||
| 
 | ||||
|                         if ((typeof command.rdp == 'number') && (command.rdp == 0)) { | ||||
|                             if (node.rdp != null) { delete node.rdp; change = 1; changes.push('rdp'); } // Delete the RDP cendentials
 | ||||
|                         } | ||||
| 
 | ||||
|                         if (domain.geolocation && command.userloc && ((node.userloc == null) || (command.userloc[0] != node.userloc[0]) || (command.userloc[1] != node.userloc[1]))) { | ||||
|                             change = 1; | ||||
|                             if ((command.userloc.length == 0) && (node.userloc)) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue