-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/topic/awelzel/27-search-substrin…
…g-filter' * origin/topic/awelzel/27-search-substring-filter: ldap: Fix substring filter parsing and rendering
- Loading branch information
Showing
6 changed files
with
66 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (c) 2024 by the Zeek Project. See LICENSE for details. | ||
|
||
# @TEST-EXEC: zeek -C -r ${TRACES}/ldap_star_single.pcap %INPUT >output 2>&1 | ||
# @TEST-EXEC: btest-diff output | ||
# @TEST-EXEC: cat conn.log | zeek-cut -m ts uid history service > conn.log2 && mv conn.log2 conn.log | ||
# @TEST-EXEC: btest-diff conn.log | ||
# @TEST-EXEC: btest-diff ldap_search.log | ||
# | ||
# @TEST-DOC: Test substring filter parsed and rendered properly when initial and final are present, but no anys. | ||
|
||
@load base/protocols/conn | ||
@load analyzer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
### NOTE: This file has been sorted with diff-sort. | ||
XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 D spicy_ldap_tcp | ||
ts uid history service |
12 changes: 12 additions & 0 deletions
12
tests/baseline/analyzer.ldap_substring_search/ldap_search.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
### NOTE: This file has been sorted with diff-sort. | ||
#separator \x09 | ||
#set_separator , | ||
#empty_field (empty) | ||
#unset_field - | ||
#path ldap_search | ||
#open XXXX-XX-XX-XX-XX-XX | ||
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p proto message_id scope deref base_object result_count result diagnostic_message filter attributes | ||
#types time string addr port addr port string int set[string] set[string] vector[string] count set[string] vector[string] string vector[string] | ||
#close XXXX-XX-XX-XX-XX-XX | ||
XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 192.168.10.152 34581 192.168.10.186 389 tcp 6 tree always DC=matrix\x2cDC=local 0 - - (gPCUserExtensionNames=[*]) - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
### NOTE: This file has been sorted with diff-sort. |
Binary file not shown.