diff options
author | Luca Deri <deri@ntop.org> | 2019-10-08 13:32:21 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-10-08 13:32:21 +0200 |
commit | 6b5a9aa9929c6229a7bb0926edcf7ae713aabef9 (patch) | |
tree | 5244927a5108fccf60a6d33c50d2c7e372ef4073 /example/reader_util.c | |
parent | 256858d2e5d9db3777ccb113ed75bcd836fc8d16 (diff) |
Implemented Kerberos metadata extraction
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 4859d69e5..050ccc556 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -966,6 +966,14 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl else if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_UBNTAC2) { snprintf(flow->info, sizeof(flow->info), "%s", flow->ndpi_flow->protos.ubntac2.version); } + /* KERBEROS */ + else if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_KERBEROS) { + if(flow->ndpi_flow->protos.kerberos.cname[0] != '\0') { + snprintf(flow->info, sizeof(flow->info), "%s (%s)", + flow->ndpi_flow->protos.kerberos.cname, + flow->ndpi_flow->protos.kerberos.realm); + } + } /* HTTP */ else if(flow->detected_protocol.master_protocol == NDPI_PROTOCOL_HTTP) { if(flow->ndpi_flow->http.url != NULL) { |