1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 03:50:04 +02:00

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
commit c55b08fbc2
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)