mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fix for SSPI auth un-authorized.
This commit is contained in:
		
							parent
							
								
									7e042930fa
								
							
						
					
					
						commit
						9f4c2cc53e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -2613,7 +2613,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
 | 
				
			||||||
                if ((err != null) || (req.connection.user == null)) {
 | 
					                if ((err != null) || (req.connection.user == null)) {
 | 
				
			||||||
                    if (obj.parent.authlog) { obj.parent.authLog('https', 'Failed SSPI-auth for ' + req.connection.user + ' from ' + req.clientIp + ' port ' + req.connection.remotePort); }
 | 
					                    if (obj.parent.authlog) { obj.parent.authLog('https', 'Failed SSPI-auth for ' + req.connection.user + ' from ' + req.clientIp + ' port ' + req.connection.remotePort); }
 | 
				
			||||||
                    parent.debug('web', 'handleRootRequest: SSPI auth required.');
 | 
					                    parent.debug('web', 'handleRootRequest: SSPI auth required.');
 | 
				
			||||||
                    res.end('Authentication Required...');
 | 
					                    res.sendStatus(401);
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    if (obj.parent.authlog) { obj.parent.authLog('https', 'Accepted SSPI-auth for ' + req.connection.user + ' from ' + req.clientIp + ' port ' + req.connection.remotePort); }
 | 
					                    if (obj.parent.authlog) { obj.parent.authLog('https', 'Accepted SSPI-auth for ' + req.connection.user + ' from ' + req.clientIp + ' port ' + req.connection.remotePort); }
 | 
				
			||||||
                    parent.debug('web', 'handleRootRequest: SSPI auth ok.');
 | 
					                    parent.debug('web', 'handleRootRequest: SSPI auth ok.');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue