mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Merge branch 'master' of https://github.com/Ylianst/MeshCentral
This commit is contained in:
commit
365ccd4bbe
1 changed files with 1 additions and 0 deletions
|
@ -550,6 +550,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
|||
// LDAP login
|
||||
var LdapAuth = require('ldapauth-fork');
|
||||
var ldap = new LdapAuth(domain.ldapoptions);
|
||||
ldap.on('error', function (err) { console.log('ldap error: ', err); });
|
||||
ldap.authenticate(name, pass, function (err, xxuser) {
|
||||
try { ldap.close(); } catch (ex) { console.log(ex); } // Close the LDAP object
|
||||
if (err) { fn(new Error('invalid password')); return; }
|
||||
|
|
Loading…
Reference in a new issue