mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
22 lines
688 B
Text
22 lines
688 B
Text
# Copyright (c) 2021 by the Zeek Project. See LICENSE for details.
|
|
|
|
# @TEST-REQUIRES: have-spicy
|
|
# @TEST-EXEC: zeek -C -r ${TRACES}/ldap/simpleauth.pcap %INPUT >output 2>&1
|
|
# @TEST-EXEC: btest-diff output
|
|
# @TEST-EXEC: cat conn.log | zeek-cut -Cn local_orig local_resp > conn.log2 && mv conn.log2 conn.log
|
|
# @TEST-EXEC: btest-diff conn.log
|
|
# @TEST-EXEC: ! test -f ldap.log
|
|
# @TEST-EXEC: ! test -f ldap_search.log
|
|
#
|
|
# @TEST-DOC: Test LDAP analyzer with small trace using logging policies.
|
|
|
|
hook LDAP::log_policy(rec: LDAP::MessageInfo, id: Log::ID, filter: Log::Filter)
|
|
{
|
|
break;
|
|
}
|
|
|
|
hook LDAP::log_policy_search(rec: LDAP::SearchInfo, id: Log::ID,
|
|
filter: Log::Filter)
|
|
{
|
|
break;
|
|
}
|