projects
/
virtual-ldap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72a182f
)
use FILTER enviroment variable to specify LDAP filter
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 Oct 2016 12:02:21 +0000
(14:02 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 Oct 2016 12:02:21 +0000
(14:02 +0200)
t/ldap-rewrite.t
patch
|
blob
|
history
diff --git
a/t/ldap-rewrite.t
b/t/ldap-rewrite.t
index
3b8a3ff
..
070c64b
100755
(executable)
--- a/
t/ldap-rewrite.t
+++ b/
t/ldap-rewrite.t
@@
-24,6
+24,8
@@
ok( my $ldap = Net::LDAP->new( $config->{server} ), 'new Net::LDAP ' . dump( $co
ok( my $bind = $ldap->bind( $config->{bind_as}, password => $config->{password} ), 'bind ' . $config->{bind_as} );
ldap_check_error $bind;
+$config->{search}->{filter} = $ENV{FILTER} if $ENV{FILTER};
+
ok( my $search = $ldap->search( %{ $config->{search} } ), 'search ' . dump( $config->{search} ) );
ldap_check_error $search;