diag dump result if using FILTER=uid=foobar
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 1 Oct 2019 12:43:45 +0000 (14:43 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 1 Oct 2019 12:43:45 +0000 (14:43 +0200)
t/ldap-rewrite.t

index 070c64b..bf66863 100755 (executable)
@@ -31,7 +31,7 @@ ldap_check_error $search;
 
 foreach my $entry ( $search->entries ) {
 
-#      diag dump $entry;
+       diag dump $entry if $ENV{FILTER};
        $entry->dump;
 
        my $missing = 0;