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

@@ -44,6 +44,11 @@ module.exports.builder = function(yargs) {
, type: 'string'
, default: process.env.LDAP_SEARCH_SCOPE || 'sub'
})
.option('ldap-search-filter', {
describe: 'LDAP search filter.'
, type: 'string'
, default: process.env.LDAP_SEARCH_FILTER
})
.option('ldap-timeout', {
alias: 't'
, describe: 'LDAP timeout.'
@@ -110,6 +115,7 @@ module.exports.handler = function(argv) {
, scope: argv.ldapSearchScope
, objectClass: argv.ldapSearchClass
, field: argv.ldapSearchField
, filter: argv.ldapSearchFilter
}
, username: {
field: argv.ldapUsernameField