ldap-authentication
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -182,3 +182,3 @@ const assert = require('assert') | ||
try { | ||
ldapUserClient = await _ldapBind(userDn, userPassword, starttls, ldapOpts) | ||
ldapAdminClient = await _ldapBind(adminDn, adminPassword, starttls, ldapOpts) | ||
} catch (error) { | ||
@@ -188,3 +188,3 @@ throw error | ||
var groups = await _searchUserGroups( | ||
ldapUserClient, | ||
ldapAdminClient, | ||
groupsSearchBase, | ||
@@ -195,3 +195,3 @@ user, | ||
user.groups = groups; | ||
ldapUserClient.unbind() | ||
ldapAdminClient.unbind() | ||
} | ||
@@ -198,0 +198,0 @@ return user |
{ | ||
"name": "ldap-authentication", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "A simple async nodejs library for LDAP user authentication", | ||
@@ -38,3 +38,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"ldapjs": "^2.1.1" | ||
"ldapjs": "^2.2.0" | ||
}, | ||
@@ -41,0 +41,0 @@ "devDependencies": { |
22016
Updatedldapjs@^2.2.0