Merge branch 'ldap_search_filter' of https://github.com/thasegaw/stf into thasegaw-ldap_search_filter

This commit is contained in:
Simo Kinnunen
2017-10-12 22:28:16 +09:00
2 changed files with 11 additions and 0 deletions

View File

@@ -60,6 +60,11 @@ module.exports.login = function(options, username, password) {
})
}
if (typeof options.search.filter !== 'undefined') {
var parsedFilter = ldap.parseFilter(options.search.filter)
query.filter.filters.push(parsedFilter)
}
client.search(options.search.dn, query, function(err, search) {
if (err) {
return resolver.reject(err)