Skip to content

Commit a08815e

Browse files
authored
Close connection to LDAP server after calling authenticate user (#565)
Co-authored-by: Pavlo <pavlo@>
1 parent 684162c commit a08815e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/passport/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ function authenticate_user(args){
5252
.then(function(ldap_server){
5353

5454
ldap_server.authenticate(email, password, function (err, u) {
55+
ldap_server.close();
56+
5557
if (err) {
5658
console.log("LDAP auth error: %s", err);
5759
return done(null, false);

0 commit comments

Comments
 (0)