Debian Codegraph @

doc/html/plugindev/kadm5_auth.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>kadmin authorization interface (kadm5_auth) &#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="Host-to-realm interface (hostrealm)" href="hostrealm.html" />
20 <link rel="prev" title="KADM5 hook interface (kadm5_hook)" href="kadm5_hook.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="kadm5_hook.html" title="KADM5 hook interface (kadm5_hook)"
33 accesskey="P">previous</a> |
34 <a href="hostrealm.html" title="Host-to-realm interface (hostrealm)"
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__kadmin authorization interface (kadm5_auth)">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="kadmin-authorization-interface-kadm5-auth">
54 <span id="kadm5-auth-plugin"></span><h1>kadmin authorization interface (kadm5_auth)<a class="headerlink" href="#kadmin-authorization-interface-kadm5-auth" title="Link to this heading">ΒΆ</a></h1>
55 <p>The kadm5_auth interface (new in release 1.16) allows modules to
56 determine whether a client principal is authorized to perform an
57 operation in the kadmin protocol, and to apply restrictions to
58 principal operations. For a detailed description of the kadm5_auth
59 interface, see the header file <code class="docutils literal notranslate"><span class="pre">&lt;krb5/kadm5_auth_plugin.h&gt;</span></code>.</p>
60 <p>A module can create and destroy per-process state objects by
61 implementing the <strong>init</strong> and <strong>fini</strong> methods. State objects have
62 the type kadm5_auth_modinfo, which is an abstract pointer type. A
63 module should typically cast this to an internal type for the state
64 object.</p>
65 <p>The kadm5_auth interface has one method for each kadmin operation,
66 with parameters specific to the operation. Each method can return
67 either 0 to authorize access, KRB5_PLUGIN_NO_HANDLE to defer the
68 decision to other modules, or another error (canonically EPERM) to
69 authoritatively deny access. Access is granted if at least one module
70 grants access and no module authoritatively denies access.</p>
71 <p>The <strong>addprinc</strong> and <strong>modprinc</strong> methods can also impose restrictions
72 on the principal operation by returning a <code class="docutils literal notranslate"><span class="pre">struct</span>
73 <span class="pre">kadm5_auth_restrictions</span></code> object. The module should also implement
74 the <strong>free_restrictions</strong> method if it dynamically allocates
75 restrictions objects for principal operations.</p>
76 <p>kadm5_auth modules can optionally inspect principal or policy objects.
77 To do this, the module must also include <code class="docutils literal notranslate"><span class="pre">&lt;kadm5/admin.h&gt;</span></code> to gain
78 access to the structure definitions for those objects. As the kadmin
79 interface is explicitly not as stable as other public interfaces,
80 modules which do this may not retain compatibility across releases.</p>
81 </section>
82
83
84 <div class="clearer"></div>
85 </div>
86 </div>
87 </div>
88 </div>
89 <div class="sidebar">
90
91 <h2>On this page</h2>
92 <ul>
93 <li><a class="reference internal" href="#">kadmin authorization interface (kadm5_auth)</a></li>
94 </ul>
95
96 <br/>
97 <h2>Table of contents</h2>
98 <ul class="current">
99 <li class="toctree-l1"><a class="reference internal" href="../user/index.html">For users</a></li>
100 <li class="toctree-l1"><a class="reference internal" href="../admin/index.html">For administrators</a></li>
101 <li class="toctree-l1"><a class="reference internal" href="../appdev/index.html">For application developers</a></li>
102 <li class="toctree-l1 current"><a class="reference internal" href="index.html">For plugin module developers</a><ul class="current">
103 <li class="toctree-l2"><a class="reference internal" href="general.html">General plugin concepts</a></li>
104 <li class="toctree-l2"><a class="reference internal" href="clpreauth.html">Client preauthentication interface (clpreauth)</a></li>
105 <li class="toctree-l2"><a class="reference internal" href="kdcpreauth.html">KDC preauthentication interface (kdcpreauth)</a></li>
106 <li class="toctree-l2"><a class="reference internal" href="ccselect.html">Credential cache selection interface (ccselect)</a></li>
107 <li class="toctree-l2"><a class="reference internal" href="pwqual.html">Password quality interface (pwqual)</a></li>
108 <li class="toctree-l2"><a class="reference internal" href="kadm5_hook.html">KADM5 hook interface (kadm5_hook)</a></li>
109 <li class="toctree-l2 current"><a class="current reference internal" href="#">kadmin authorization interface (kadm5_auth)</a></li>
110 <li class="toctree-l2"><a class="reference internal" href="hostrealm.html">Host-to-realm interface (hostrealm)</a></li>
111 <li class="toctree-l2"><a class="reference internal" href="localauth.html">Local authorization interface (localauth)</a></li>
112 <li class="toctree-l2"><a class="reference internal" href="locate.html">Server location interface (locate)</a></li>
113 <li class="toctree-l2"><a class="reference internal" href="profile.html">Configuration interface (profile)</a></li>
114 <li class="toctree-l2"><a class="reference internal" href="gssapi.html">GSSAPI mechanism interface</a></li>
115 <li class="toctree-l2"><a class="reference internal" href="internal.html">Internal pluggable interfaces</a></li>
116 <li class="toctree-l2"><a class="reference internal" href="certauth.html">PKINIT certificate authorization interface (certauth)</a></li>
117 <li class="toctree-l2"><a class="reference internal" href="kdcpolicy.html">KDC policy interface (kdcpolicy)</a></li>
118 </ul>
119 </li>
120 <li class="toctree-l1"><a class="reference internal" href="../build/index.html">Building Kerberos V5</a></li>
121 <li class="toctree-l1"><a class="reference internal" href="../basic/index.html">Kerberos V5 concepts</a></li>
122 <li class="toctree-l1"><a class="reference internal" href="../formats/index.html">Protocols and file formats</a></li>
123 <li class="toctree-l1"><a class="reference internal" href="../mitK5features.html">MIT Kerberos features</a></li>
124 <li class="toctree-l1"><a class="reference internal" href="../build_this.html">How to build this documentation from the source</a></li>
125 <li class="toctree-l1"><a class="reference internal" href="../about.html">Contributing to the MIT Kerberos Documentation</a></li>
126 <li class="toctree-l1"><a class="reference internal" href="../resources.html">Resources</a></li>
127 </ul>
128
129 <br/>
130 <h4><a href="../index.html">Full Table of Contents</a></h4>
131 <h4>Search</h4>
132 <form class="search" action="../search.html" method="get">
133 <input type="text" name="q" size="18" />
134 <input type="submit" value="Go" />
135 <input type="hidden" name="check_keywords" value="yes" />
136 <input type="hidden" name="area" value="default" />
137 </form>
138
139 </div>
140 <div class="clearer"></div>
141 </div>
142 </div>
143
144 <div class="footer-wrapper">
145 <div class="footer" >
146 <div class="right" ><i>Release: 1.22.1</i><br />
147 &copy; <a href="../copyright.html">Copyright</a> 1985-2025, MIT.
148 </div>
149 <div class="left">
150
151 <a href="../index.html" title="Full Table of Contents"
152 >Contents</a> |
153 <a href="kadm5_hook.html" title="KADM5 hook interface (kadm5_hook)"
154 >previous</a> |
155 <a href="hostrealm.html" title="Host-to-realm interface (hostrealm)"
156 >next</a> |
157 <a href="../genindex.html" title="General Index"
158 >index</a> |
159 <a href="../search.html" title="Enter search criteria"
160 >Search</a> |
161 <a href="mailto:[email protected]?subject=Documentation__kadmin authorization interface (kadm5_auth)">feedback</a>
162 </div>
163 </div>
164 </div>
165
166 </body>
167 </html>