@cli_ldap.command(name='filter', help='LDAP search with user-specified filter.')
@click.argument('filter', type=click.STRING)
@click.argument('keys', nargs=(- 1), type=click.STRING)
@click_log.simple_verbosity_option(_logger)
def cli_ldap_filter(filter, keys):
    rows = list(ldap.filter(filter), list(keys))
    _echo_table(rows)
@cli_ldap.command(name='filter', help='LDAP search with user-specified filter.')
@click.argument('filter', type=click.STRING)
@click.argument('keys', nargs=(- 1), type=click.STRING)
@click_log.simple_verbosity_option(_logger)
def cli_ldap_filter(filter, keys):
    rows = list(ldap.filter(filter), list(keys))
    _echo_table(rows)