Debian Codegraph @

doc/html/plugindev/kdcpolicy.html

raw
1 <!DOCTYPE html>
2
3 <html lang="en" data-content_root="../">
4 <head>
5 <meta charset="utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
7
8 <title>KDC policy interface (kdcpolicy) &#8212; MIT Kerberos Documentation</title>
9 <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
10 <link rel="stylesheet" type="text/css" href="../_static/agogo.css?v=879f3c71" />
11 <link rel="stylesheet" type="text/css" href="../_static/kerb.css?v=6a0b3979" />
12 <script src="../_static/documentation_options.js?v=6dbce55c"></script>
13 <script src="../_static/doctools.js?v=888ff710"></script>
14 <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
15 <link rel="author" title="About these documents" href="../about.html" />
16 <link rel="index" title="Index" href="../genindex.html" />
17 <link rel="search" title="Search" href="../search.html" />
18 <link rel="copyright" title="Copyright" href="../copyright.html" />
19 <link rel="next" title="Building Kerberos V5" href="../build/index.html" />
20 <link rel="prev" title="PKINIT certificate authorization interface (certauth)" href="certauth.html" />
21 </head><body>
22 <div class="header-wrapper">
23 <div class="header">
24
25
26 <h1><a href="../index.html">MIT Kerberos Documentation</a></h1>
27
28 <div class="rel">
29
30 <a href="../index.html" title="Full Table of Contents"
31 accesskey="C">Contents</a> |
32 <a href="certauth.html" title="PKINIT certificate authorization interface (certauth)"
33 accesskey="P">previous</a> |
34 <a href="../build/index.html" title="Building Kerberos V5"
35 accesskey="N">next</a> |
36 <a href="../genindex.html" title="General Index"
37 accesskey="I">index</a> |
38 <a href="../search.html" title="Enter search criteria"
39 accesskey="S">Search</a> |
40 <a href="mailto:[email protected]?subject=Documentation__KDC policy interface (kdcpolicy)">feedback</a>
41 </div>
42 </div>
43 </div>
44
45 <div class="content-wrapper">
46 <div class="content">
47 <div class="document">
48
49 <div class="documentwrapper">
50 <div class="bodywrapper">
51 <div class="body" role="main">
52
53 <section id="kdc-policy-interface-kdcpolicy">
54 <span id="kdcpolicy-plugin"></span><h1>KDC policy interface (kdcpolicy)<a class="headerlink" href="#kdc-policy-interface-kdcpolicy" title="Link to this heading">ΒΆ</a></h1>
55 <p>The kdcpolicy interface was first introduced in release 1.16. It
56 allows modules to veto otherwise valid AS and TGS requests or restrict
57 the lifetime and renew time of the resulting ticket. For a detailed
58 description of the kdcpolicy interface, see the header file
59 <code class="docutils literal notranslate"><span class="pre">&lt;krb5/kdcpolicy_plugin.h&gt;</span></code>.</p>
60 <p>The optional <strong>check_as</strong> and <strong>check_tgs</strong> functions allow the module
61 to perform access control. Additionally, a module can create and
62 destroy module data with the <strong>init</strong> and <strong>fini</strong> methods. Module
63 data objects last for the lifetime of the KDC process, and are
64 provided to all other methods. The data has the type
65 krb5_kdcpolicy_moddata, which should be cast to the appropriate
66 internal type.</p>
67 <p>kdcpolicy modules can optionally inspect principal entries. To do
68 this, the module must also include <code class="docutils literal notranslate"><span class="pre">&lt;kdb.h&gt;</span></code> to gain access to the
69 principal entry structure definition. As the KDB interface is
70 explicitly not as stable as other public interfaces, modules which do
71 this may not retain compatibility across releases.</p>
72 </section>
73
74
75 <div class="clearer"></div>
76 </div>
77 </div>
78 </div>
79 </div>
80 <div class="sidebar">
81
82 <h2>On this page</h2>
83 <ul>
84 <li><a class="reference internal" href="#">KDC policy interface (kdcpolicy)</a></li>
85 </ul>
86
87 <br/>
88 <h2>Table of contents</h2>
89 <ul class="current">
90 <li class="toctree-l1"><a class="reference internal" href="../user/index.html">For users</a></li>
91 <li class="toctree-l1"><a class="reference internal" href="../admin/index.html">For administrators</a></li>
92 <li class="toctree-l1"><a class="reference internal" href="../appdev/index.html">For application developers</a></li>
93 <li class="toctree-l1 current"><a class="reference internal" href="index.html">For plugin module developers</a><ul class="current">
94 <li class="toctree-l2"><a class="reference internal" href="general.html">General plugin concepts</a></li>
95 <li class="toctree-l2"><a class="reference internal" href="clpreauth.html">Client preauthentication interface (clpreauth)</a></li>
96 <li class="toctree-l2"><a class="reference internal" href="kdcpreauth.html">KDC preauthentication interface (kdcpreauth)</a></li>
97 <li class="toctree-l2"><a class="reference internal" href="ccselect.html">Credential cache selection interface (ccselect)</a></li>
98 <li class="toctree-l2"><a class="reference internal" href="pwqual.html">Password quality interface (pwqual)</a></li>
99 <li class="toctree-l2"><a class="reference internal" href="kadm5_hook.html">KADM5 hook interface (kadm5_hook)</a></li>
100 <li class="toctree-l2"><a class="reference internal" href="kadm5_auth.html">kadmin authorization interface (kadm5_auth)</a></li>
101 <li class="toctree-l2"><a class="reference internal" href="hostrealm.html">Host-to-realm interface (hostrealm)</a></li>
102 <li class="toctree-l2"><a class="reference internal" href="localauth.html">Local authorization interface (localauth)</a></li>
103 <li class="toctree-l2"><a class="reference internal" href="locate.html">Server location interface (locate)</a></li>
104 <li class="toctree-l2"><a class="reference internal" href="profile.html">Configuration interface (profile)</a></li>
105 <li class="toctree-l2"><a class="reference internal" href="gssapi.html">GSSAPI mechanism interface</a></li>
106 <li class="toctree-l2"><a class="reference internal" href="internal.html">Internal pluggable interfaces</a></li>
107 <li class="toctree-l2"><a class="reference internal" href="certauth.html">PKINIT certificate authorization interface (certauth)</a></li>
108 <li class="toctree-l2 current"><a class="current reference internal" href="#">KDC policy interface (kdcpolicy)</a></li>
109 </ul>
110 </li>
111 <li class="toctree-l1"><a class="reference internal" href="../build/index.html">Building Kerberos V5</a></li>
112 <li class="toctree-l1"><a class="reference internal" href="../basic/index.html">Kerberos V5 concepts</a></li>
113 <li class="toctree-l1"><a class="reference internal" href="../formats/index.html">Protocols and file formats</a></li>
114 <li class="toctree-l1"><a class="reference internal" href="../mitK5features.html">MIT Kerberos features</a></li>
115 <li class="toctree-l1"><a class="reference internal" href="../build_this.html">How to build this documentation from the source</a></li>
116 <li class="toctree-l1"><a class="reference internal" href="../about.html">Contributing to the MIT Kerberos Documentation</a></li>
117 <li class="toctree-l1"><a class="reference internal" href="../resources.html">Resources</a></li>
118 </ul>
119
120 <br/>
121 <h4><a href="../index.html">Full Table of Contents</a></h4>
122 <h4>Search</h4>
123 <form class="search" action="../search.html" method="get">
124 <input type="text" name="q" size="18" />
125 <input type="submit" value="Go" />
126 <input type="hidden" name="check_keywords" value="yes" />
127 <input type="hidden" name="area" value="default" />
128 </form>
129
130 </div>
131 <div class="clearer"></div>
132 </div>
133 </div>
134
135 <div class="footer-wrapper">
136 <div class="footer" >
137 <div class="right" ><i>Release: 1.22.1</i><br />
138 &copy; <a href="../copyright.html">Copyright</a> 1985-2025, MIT.
139 </div>
140 <div class="left">
141
142 <a href="../index.html" title="Full Table of Contents"
143 >Contents</a> |
144 <a href="certauth.html" title="PKINIT certificate authorization interface (certauth)"
145 >previous</a> |
146 <a href="../build/index.html" title="Building Kerberos V5"
147 >next</a> |
148 <a href="../genindex.html" title="General Index"
149 >index</a> |
150 <a href="../search.html" title="Enter search criteria"
151 >Search</a> |
152 <a href="mailto:[email protected]?subject=Documentation__KDC policy interface (kdcpolicy)">feedback</a>
153 </div>
154 </div>
155 </div>
156
157 </body>
158 </html>