Skip to content

Commit

Permalink
Close connection to LDAP server after calling authenticate user (#565)
Browse files Browse the repository at this point in the history
Co-authored-by: Pavlo <pavlo@>
  • Loading branch information
vpp authored Aug 9, 2023
1 parent 684162c commit a08815e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/passport/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a08815e

Please sign in to comment.