Merge pull request #2098 from keegan/master
Enable logging for LDAP users
This commit is contained in:
commit
7a6b560303
@ -112,7 +112,7 @@ ClientManager.prototype.addUser = function(name, password, enableLog) {
|
|||||||
|
|
||||||
const user = {
|
const user = {
|
||||||
password: password || "",
|
password: password || "",
|
||||||
log: enableLog || false,
|
log: enableLog,
|
||||||
awayMessage: "",
|
awayMessage: "",
|
||||||
networks: [],
|
networks: [],
|
||||||
sessions: {},
|
sessions: {},
|
||||||
|
@ -114,7 +114,7 @@ function ldapAuth(manager, client, user, password, callback) {
|
|||||||
// auth plugin API
|
// auth plugin API
|
||||||
function callbackWrapper(valid) {
|
function callbackWrapper(valid) {
|
||||||
if (valid && !client) {
|
if (valid && !client) {
|
||||||
manager.addUser(user, null);
|
manager.addUser(user, null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
callback(valid);
|
callback(valid);
|
||||||
|
Loading…
Reference in New Issue
Block a user