Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap: add test for abandon request - v1 #2234

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/ldap-abandon/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ldap.pcap: ldap.syn
flowsynth.py -f pcap -w $@ $^

7 changes: 7 additions & 0 deletions tests/ldap-abandon/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Test Purpose

Test that LDAP Abandon operation is parsed correctly.

## PCAP

This PCAP was generated with flowsynth.
Binary file added tests/ldap-abandon/ldap.pcap
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/ldap-abandon/ldap.syn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
flow default tcp 1.1.1.1:5555 > 2.2.2.2:389 (tcp.initialize; mss:9000;);
default > (content:"\x30\x06\x02\x01\x06\x50\x01\x05";);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, should I mention that in the readme?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally yes, but no big deal

15 changes: 15 additions & 0 deletions tests/ldap-abandon/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
requires:
min-version: 8

args:
- -k none

pcap: ldap.pcap

checks:
- filter:
count: 1
match:
event_type: ldap
ldap.request.message_id: 6
ldap.request.operation: abandon_request
Loading