]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add KDC policy pluggable interface 682/head
authorRobbie Harwood <rharwood@redhat.com>
Tue, 27 Jun 2017 21:15:39 +0000 (17:15 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 18 Aug 2017 15:49:01 +0000 (11:49 -0400)
commitd0969f6a8170344031ef58fd2a161190f1edfb96
tree7a0c2b8e25fa3a1fb98df573f388605d8093fb09
parent17d34e956ec454c36573e0cb07a7dc3f3328c99c
Add KDC policy pluggable interface

Add the header include/krb5/kdcpolicy_plugin.h, defining a pluggable
interface for modules to deny AS and TGS requests and set maximum
ticket lifetimes.  This interface replaces the policy.c stub functions.

Add check_kdcpolicy_as() and check_kdcpolicy_tgs() as entry functions.
Call them after auth indicators and ticket lifetimes have been
determined.

Add a test module and a test script with basic kdcpolicy tests.  Add
plugin interface documentation in doc/plugindev/policy.rst.

Also authored by Matt Rogers <mrogers@redhat.com>.

ticket: 8606 (new)
23 files changed:
doc/plugindev/index.rst
doc/plugindev/kdcpolicy.rst [new file with mode: 0644]
src/Makefile.in
src/configure.in
src/include/Makefile.in
src/include/k5-int.h
src/include/k5-trace.h
src/include/krb5/kdcpolicy_plugin.h [new file with mode: 0644]
src/kdc/do_as_req.c
src/kdc/do_tgs_req.c
src/kdc/kdc_util.c
src/kdc/kdc_util.h
src/kdc/main.c
src/kdc/policy.c
src/kdc/policy.h
src/kdc/tgs_policy.c
src/lib/krb5/krb/plugin.c
src/plugins/kdcpolicy/test/Makefile.in [new file with mode: 0644]
src/plugins/kdcpolicy/test/deps [new file with mode: 0644]
src/plugins/kdcpolicy/test/main.c [new file with mode: 0644]
src/plugins/kdcpolicy/test/policy_test.exports [new file with mode: 0644]
src/tests/Makefile.in
src/tests/t_kdcpolicy.py [new file with mode: 0644]