From 4fe7dc0808732993d7a3fc63a0bd711040e37227 Mon Sep 17 00:00:00 2001 From: Keegan <2020klanzill@tjhsst.edu> Date: Fri, 23 Feb 2018 20:07:08 -0500 Subject: [PATCH] Enable logging for LDAP users --- src/clientManager.js | 2 +- src/plugins/auth/ldap.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clientManager.js b/src/clientManager.js index efc5b9cc..5c5b96e4 100644 --- a/src/clientManager.js +++ b/src/clientManager.js @@ -112,7 +112,7 @@ ClientManager.prototype.addUser = function(name, password, enableLog) { const user = { password: password || "", - log: enableLog || false, + log: enableLog, awayMessage: "", networks: [], sessions: {}, diff --git a/src/plugins/auth/ldap.js b/src/plugins/auth/ldap.js index ab71a549..81643623 100644 --- a/src/plugins/auth/ldap.js +++ b/src/plugins/auth/ldap.js @@ -114,7 +114,7 @@ function ldapAuth(manager, client, user, password, callback) { // auth plugin API function callbackWrapper(valid) { if (valid && !client) { - manager.addUser(user, null); + manager.addUser(user, null, true); } callback(valid);