Merge pull request #2098 from keegan/master

Enable logging for LDAP users
This commit is contained in:
Jérémie Astori 2018-02-24 12:54:48 -05:00 committed by GitHub
commit 7a6b560303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ ClientManager.prototype.addUser = function(name, password, enableLog) {
const user = {
password: password || "",
log: enableLog || false,
log: enableLog,
awayMessage: "",
networks: [],
sessions: {},

View File

@ -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);