mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
16 lines
426 B
Text
16 lines
426 B
Text
# @TEST-DOC: Test Zeek with AUTH commands
|
|
#
|
|
# @TEST-EXEC: zeek -Cr $TRACES/redis/auth.trace base/protocols/redis %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
event Redis::auth_command(c: connection, is_orig: bool,
|
|
command: Redis::AuthCommand)
|
|
{
|
|
print "AUTH";
|
|
if ( command?$username )
|
|
print fmt("username: %s", command$username);
|
|
else
|
|
print "username: default";
|
|
|
|
print fmt("password: %s", command$password);
|
|
}
|