mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 15:55:31 +02:00
Merge branch 'ldap_search_filter' of https://github.com/thasegaw/stf into thasegaw-ldap_search_filter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user