aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/audit
AgeCommit message (Collapse)AuthorFilesLines
2017-04-14Remove tautological NULL checks in kdc_j_encode.cRobbie Harwood1-16/+13
2016-07-28Use single-colon rules in makefilesGreg Hudson3-7/+7
Double-colon rules allow the flexibility to specify commands in multiple places, but they also make the order of commands and dependencies dependent on the order of declarations in the Makefile. Convert all of our double-colon rules to single-colon rules, with the exception of "clean-unix" and "clean-windows" which have commands defined in both post.in and in numerous Makefile.in files.
2015-12-14Add IPv6 address logging support to audit pluginSarah Day2-3/+3
The jsonwalker.py test was failing due to the audit plugin only logging the IP for IPv4. The audit plugin should log the IP address for both IPv4 and IPv6. Rename the JSON "ipv4" field in the "fromaddr" JSON object to "ip" and set the field if either an IPv4 or an IPv6 address is present. Any parsers of the audit log can tell which address is stored in the "ip" field by checking the "type" field in "fromaddr". Also update the jsonwalker.py reference JSON file, au_dict.json, to handle this new field name. old audit: {"fromaddr":{"type":<int>,"length":<int>,"ipv4":[<4 int>]} where "ipv4" only occurs when type is ADDRTYPE_INET new audit: {"fromaddr":{"type":<int>,"length":<int>,"ip":[<<length> int>]} where "ip" only occurs when type is ADDRTYPE_INET or ADDRTYPE_INET6 [tlyu@mit.edu: minor commit message edits] ticket: 8298
2014-07-08Include autoconf.h before system headersGreg Hudson1-1/+1
Include autoconf.h (either directly or via proxy) before system headers, so that feature test macros defined there can affect the system namespace. Where include order was changed, eliminate some redundant or unnecessary includes. ticket: 7961
2013-12-10make dependTom Yu2-16/+16
2013-10-05Fix audit test module initializationGreg Hudson1-2/+1
Check if the fopen result is NULL, not whether it's less than zero. ticket: 7713 (new) target_version: 1.12 tags: pullups
2013-10-04KDC Audit infrastructure and plugin implementationZhanna Tsitkov14-0/+1702
Per project http://k5wiki.kerberos.org/wiki/Projects/Audit The purpose of this project is to create an Audit infrastructure to monitor security related events on the KDC. The following events are targeted in the initial version: - startup and shutdown of the KDC; - AS_REQ and TGS_REQ exchanges. This includes client address and port, KDC request and request ID, KDC reply, primary and derived ticket and their ticket IDs, second ticket ID, cross-realm referral, was ticket renewed and validated, local policy violation and protocol constraints, and KDC status message. Ticket ID is introduced to allow to link tickets to their initial TGT at any stage of the Kerberos exchange. For the purpose of this project it is a private to KDC ticket ID: each successfully created ticket is hashed and recorded into audit log. The administrators can correlate the primary and derived ticket IDs after the fact. Request ID is a randomly generated alpha-numeric string. Using this ID an administrator can easily correlate multiple audit events related to a single request. It should be informative both in cases when the request is sent to multiple KDCs, or to the same KDC multiple times. For the purpose of testing and demo of the Audit, the JSON based modules are implemented: "test" and "simple" audit modules respectively. The file plugins/audit/j_dict.h is a dictionary used in this implememtations. The new Audit system is build-time enabled and run-time pluggable. [kaduk@mit.edu: remove potential KDC crashes, minor reordering] ticket: 7712 target_version: 1.12