mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Fixed SSPI authentication exception.
This commit is contained in:
parent
3dc9caeb0f
commit
d1e04a7ca7
1 changed files with 1 additions and 1 deletions
|
@ -2634,7 +2634,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
if ((err != null) || (req.connection.user == null)) {
|
if ((err != null) || (req.connection.user == null)) {
|
||||||
obj.parent.authLog('https', 'Failed SSPI-auth for ' + req.connection.user + ' from ' + req.clientIp + ' port ' + req.connection.remotePort, { useragent: req.headers['user-agent'] });
|
obj.parent.authLog('https', 'Failed SSPI-auth for ' + req.connection.user + ' from ' + req.clientIp + ' port ' + req.connection.remotePort, { useragent: req.headers['user-agent'] });
|
||||||
parent.debug('web', 'handleRootRequest: SSPI auth required.');
|
parent.debug('web', 'handleRootRequest: SSPI auth required.');
|
||||||
res.sendStatus(401);
|
try { res.sendStatus(401); } catch (ex) { } // sspi.authenticate() should already have responded to this request.
|
||||||
} else {
|
} else {
|
||||||
parent.debug('web', 'handleRootRequest: SSPI auth ok.');
|
parent.debug('web', 'handleRootRequest: SSPI auth ok.');
|
||||||
handleRootRequestEx(req, res, domain, direct);
|
handleRootRequestEx(req, res, domain, direct);
|
||||||
|
|
Loading…
Reference in a new issue