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 protocol parser v2 #11087

Closed
wants to merge 3 commits into from
Closed

Conversation

glongo
Copy link
Contributor

@glongo glongo commented May 16, 2024

Make sure these boxes are signed before submitting your Pull Request -- thank you.

Link to ticket: https://redmine.openinfosecfoundation.org/issues/

Describe changes:

This implementation adds types and filters specified in the LDAP RFC to
work with the ldap_parser.
Although using the parser directly would be
best, strange behavior has been observed during transaction logging.
It appears that C pointers are being overwritten, leading to incorrect
output when LDAP fields are logged.
@glongo glongo requested review from jasonish, victorjulien and a team as code owners May 16, 2024 10:04
@glongo glongo mentioned this pull request May 16, 2024
3 tasks
@glongo glongo marked this pull request as draft May 16, 2024 10:05
Copy link

codecov bot commented May 16, 2024

Codecov Report

Attention: Patch coverage is 12.69488% with 784 lines in your changes are missing coverage. Please review.

Project coverage is 80.53%. Comparing base (fcdd7f0) to head (55a5124).

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #11087       +/-   ##
===========================================
+ Coverage   64.19%   80.53%   +16.33%     
===========================================
  Files         847      926       +79     
  Lines      136684   251175   +114491     
===========================================
+ Hits        87750   202276   +114526     
+ Misses      48934    48899       -35     
Flag Coverage Δ
fuzzcorpus 63.88% <12.69%> (-0.32%) ⬇️
livemode 19.31% <5.34%> (?)
unittests 62.03% <5.34%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@victorjulien victorjulien left a comment

Choose a reason for hiding this comment

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

Think this is very interesting work. Can you add SV tests to your next PR? Think that would be one to consider for merge.

}
}

unsafe extern "C" fn rs_ldap_probing_parser(
Copy link
Member

Choose a reason for hiding this comment

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

we use a new style for these FFI functions SCLdapProbingParser (so the C-style).

@glongo glongo mentioned this pull request May 28, 2024
4 tasks
@glongo
Copy link
Contributor Author

glongo commented May 28, 2024

Replaced with #11163

@glongo glongo closed this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants