diff --git a/lib/passport/index.js b/lib/passport/index.js index d6b60ffdb..9509b99d9 100644 --- a/lib/passport/index.js +++ b/lib/passport/index.js @@ -52,6 +52,8 @@ function authenticate_user(args){ .then(function(ldap_server){ ldap_server.authenticate(email, password, function (err, u) { + ldap_server.close(); + if (err) { console.log("LDAP auth error: %s", err); return done(null, false);