| 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>krb5-config — 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="ksu" href="ksu.html" /> |
| 20 |
<link rel="prev" title="kpasswd" href="kpasswd.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="kpasswd.html" title="kpasswd" |
| 33 |
accesskey="P">previous</a> | |
| 34 |
<a href="ksu.html" title="ksu" |
| 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__krb5-config">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="krb5-config"> |
| 54 |
<span id="krb5-config-1"></span><h1>krb5-config<a class="headerlink" href="#krb5-config" title="Link to this heading">¶</a></h1> |
| 55 |
<section id="synopsis"> |
| 56 |
<h2>SYNOPSIS<a class="headerlink" href="#synopsis" title="Link to this heading">¶</a></h2> |
| 57 |
<p><strong>krb5-config</strong> |
| 58 |
[<strong>-</strong><strong>-help</strong> | <strong>-</strong><strong>-all</strong> | <strong>-</strong><strong>-version</strong> | <strong>-</strong><strong>-vendor</strong> | <strong>-</strong><strong>-prefix</strong> | <strong>-</strong><strong>-exec-prefix</strong> | <strong>-</strong><strong>-defccname</strong> | <strong>-</strong><strong>-defktname</strong> | <strong>-</strong><strong>-defcktname</strong> | <strong>-</strong><strong>-cflags</strong> | <strong>-</strong><strong>-libs</strong> [<em>libraries</em>]]</p> |
| 59 |
</section> |
| 60 |
<section id="description"> |
| 61 |
<h2>DESCRIPTION<a class="headerlink" href="#description" title="Link to this heading">¶</a></h2> |
| 62 |
<p>krb5-config tells the application programmer what flags to use to compile |
| 63 |
and link programs against the installed Kerberos libraries.</p> |
| 64 |
</section> |
| 65 |
<section id="options"> |
| 66 |
<h2>OPTIONS<a class="headerlink" href="#options" title="Link to this heading">¶</a></h2> |
| 67 |
<dl> |
| 68 |
<dt><strong>-</strong><strong>-help</strong></dt><dd><p>prints a usage message. This is the default behavior when no options |
| 69 |
are specified.</p> |
| 70 |
</dd> |
| 71 |
<dt><strong>-</strong><strong>-all</strong></dt><dd><p>prints the version, vendor, prefix, and exec-prefix.</p> |
| 72 |
</dd> |
| 73 |
<dt><strong>-</strong><strong>-version</strong></dt><dd><p>prints the version number of the Kerberos installation.</p> |
| 74 |
</dd> |
| 75 |
<dt><strong>-</strong><strong>-vendor</strong></dt><dd><p>prints the name of the vendor of the Kerberos installation.</p> |
| 76 |
</dd> |
| 77 |
<dt><strong>-</strong><strong>-prefix</strong></dt><dd><p>prints the prefix for which the Kerberos installation was built.</p> |
| 78 |
</dd> |
| 79 |
<dt><strong>-</strong><strong>-exec-prefix</strong></dt><dd><p>prints the prefix for executables for which the Kerberos installation |
| 80 |
was built.</p> |
| 81 |
</dd> |
| 82 |
<dt><strong>-</strong><strong>-defccname</strong></dt><dd><p>prints the built-in default credentials cache location.</p> |
| 83 |
</dd> |
| 84 |
<dt><strong>-</strong><strong>-defktname</strong></dt><dd><p>prints the built-in default keytab location.</p> |
| 85 |
</dd> |
| 86 |
<dt><strong>-</strong><strong>-defcktname</strong></dt><dd><p>prints the built-in default client (initiator) keytab location.</p> |
| 87 |
</dd> |
| 88 |
<dt><strong>-</strong><strong>-cflags</strong></dt><dd><p>prints the compilation flags used to build the Kerberos installation.</p> |
| 89 |
</dd> |
| 90 |
<dt><strong>-</strong><strong>-libs</strong> [<em>library</em>]</dt><dd><p>prints the compiler options needed to link against <em>library</em>. |
| 91 |
Allowed values for <em>library</em> are:</p> |
| 92 |
<table class="docutils align-default"> |
| 93 |
<tbody> |
| 94 |
<tr class="row-odd"><td><p>krb5</p></td> |
| 95 |
<td><p>Kerberos 5 applications (default)</p></td> |
| 96 |
</tr> |
| 97 |
<tr class="row-even"><td><p>gssapi</p></td> |
| 98 |
<td><p>GSSAPI applications with Kerberos 5 bindings</p></td> |
| 99 |
</tr> |
| 100 |
<tr class="row-odd"><td><p>kadm-client</p></td> |
| 101 |
<td><p>Kadmin client</p></td> |
| 102 |
</tr> |
| 103 |
<tr class="row-even"><td><p>kadm-server</p></td> |
| 104 |
<td><p>Kadmin server</p></td> |
| 105 |
</tr> |
| 106 |
<tr class="row-odd"><td><p>kdb</p></td> |
| 107 |
<td><p>Applications that access the Kerberos database</p></td> |
| 108 |
</tr> |
| 109 |
</tbody> |
| 110 |
</table> |
| 111 |
</dd> |
| 112 |
</dl> |
| 113 |
</section> |
| 114 |
<section id="examples"> |
| 115 |
<h2>EXAMPLES<a class="headerlink" href="#examples" title="Link to this heading">¶</a></h2> |
| 116 |
<p>krb5-config is particularly useful for compiling against a Kerberos |
| 117 |
installation that was installed in a non-standard location. For example, |
| 118 |
a Kerberos installation that is installed in <code class="docutils literal notranslate"><span class="pre">/opt/krb5/</span></code> but uses |
| 119 |
libraries in <code class="docutils literal notranslate"><span class="pre">/usr/local/lib/</span></code> for text localization would produce |
| 120 |
the following output:</p> |
| 121 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">shell</span><span class="o">%</span> <span class="n">krb5</span><span class="o">-</span><span class="n">config</span> <span class="o">--</span><span class="n">libs</span> <span class="n">krb5</span> |
| 122 |
<span class="o">-</span><span class="n">L</span><span class="o">/</span><span class="n">opt</span><span class="o">/</span><span class="n">krb5</span><span class="o">/</span><span class="n">lib</span> <span class="o">-</span><span class="n">Wl</span><span class="p">,</span><span class="o">-</span><span class="n">rpath</span> <span class="o">-</span><span class="n">Wl</span><span class="p">,</span><span class="o">/</span><span class="n">opt</span><span class="o">/</span><span class="n">krb5</span><span class="o">/</span><span class="n">lib</span> <span class="o">-</span><span class="n">L</span><span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">lib</span> <span class="o">-</span><span class="n">lkrb5</span> <span class="o">-</span><span class="n">lk5crypto</span> <span class="o">-</span><span class="n">lcom_err</span> |
| 123 |
</pre></div> |
| 124 |
</div> |
| 125 |
</section> |
| 126 |
<section id="see-also"> |
| 127 |
<h2>SEE ALSO<a class="headerlink" href="#see-also" title="Link to this heading">¶</a></h2> |
| 128 |
<p><a class="reference internal" href="../user_config/kerberos.html#kerberos-7"><span class="std std-ref">kerberos</span></a>, cc(1)</p> |
| 129 |
</section> |
| 130 |
</section> |
| 131 |
|
| 132 |
|
| 133 |
<div class="clearer"></div> |
| 134 |
</div> |
| 135 |
</div> |
| 136 |
</div> |
| 137 |
</div> |
| 138 |
<div class="sidebar"> |
| 139 |
|
| 140 |
<h2>On this page</h2> |
| 141 |
<ul> |
| 142 |
<li><a class="reference internal" href="#">krb5-config</a><ul> |
| 143 |
<li><a class="reference internal" href="#synopsis">SYNOPSIS</a></li> |
| 144 |
<li><a class="reference internal" href="#description">DESCRIPTION</a></li> |
| 145 |
<li><a class="reference internal" href="#options">OPTIONS</a></li> |
| 146 |
<li><a class="reference internal" href="#examples">EXAMPLES</a></li> |
| 147 |
<li><a class="reference internal" href="#see-also">SEE ALSO</a></li> |
| 148 |
</ul> |
| 149 |
</li> |
| 150 |
</ul> |
| 151 |
|
| 152 |
<br/> |
| 153 |
<h2>Table of contents</h2> |
| 154 |
<ul class="current"> |
| 155 |
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">For users</a><ul class="current"> |
| 156 |
<li class="toctree-l2"><a class="reference internal" href="../pwd_mgmt.html">Password management</a></li> |
| 157 |
<li class="toctree-l2"><a class="reference internal" href="../tkt_mgmt.html">Ticket management</a></li> |
| 158 |
<li class="toctree-l2"><a class="reference internal" href="../user_config/index.html">User config files</a></li> |
| 159 |
<li class="toctree-l2 current"><a class="reference internal" href="index.html">User commands</a><ul class="current"> |
| 160 |
<li class="toctree-l3"><a class="reference internal" href="kdestroy.html">kdestroy</a></li> |
| 161 |
<li class="toctree-l3"><a class="reference internal" href="kinit.html">kinit</a></li> |
| 162 |
<li class="toctree-l3"><a class="reference internal" href="klist.html">klist</a></li> |
| 163 |
<li class="toctree-l3"><a class="reference internal" href="kpasswd.html">kpasswd</a></li> |
| 164 |
<li class="toctree-l3 current"><a class="current reference internal" href="#">krb5-config</a></li> |
| 165 |
<li class="toctree-l3"><a class="reference internal" href="ksu.html">ksu</a></li> |
| 166 |
<li class="toctree-l3"><a class="reference internal" href="kswitch.html">kswitch</a></li> |
| 167 |
<li class="toctree-l3"><a class="reference internal" href="kvno.html">kvno</a></li> |
| 168 |
<li class="toctree-l3"><a class="reference internal" href="sclient.html">sclient</a></li> |
| 169 |
</ul> |
| 170 |
</li> |
| 171 |
</ul> |
| 172 |
</li> |
| 173 |
<li class="toctree-l1"><a class="reference internal" href="../../admin/index.html">For administrators</a></li> |
| 174 |
<li class="toctree-l1"><a class="reference internal" href="../../appdev/index.html">For application developers</a></li> |
| 175 |
<li class="toctree-l1"><a class="reference internal" href="../../plugindev/index.html">For plugin module developers</a></li> |
| 176 |
<li class="toctree-l1"><a class="reference internal" href="../../build/index.html">Building Kerberos V5</a></li> |
| 177 |
<li class="toctree-l1"><a class="reference internal" href="../../basic/index.html">Kerberos V5 concepts</a></li> |
| 178 |
<li class="toctree-l1"><a class="reference internal" href="../../formats/index.html">Protocols and file formats</a></li> |
| 179 |
<li class="toctree-l1"><a class="reference internal" href="../../mitK5features.html">MIT Kerberos features</a></li> |
| 180 |
<li class="toctree-l1"><a class="reference internal" href="../../build_this.html">How to build this documentation from the source</a></li> |
| 181 |
<li class="toctree-l1"><a class="reference internal" href="../../about.html">Contributing to the MIT Kerberos Documentation</a></li> |
| 182 |
<li class="toctree-l1"><a class="reference internal" href="../../resources.html">Resources</a></li> |
| 183 |
</ul> |
| 184 |
|
| 185 |
<br/> |
| 186 |
<h4><a href="../../index.html">Full Table of Contents</a></h4> |
| 187 |
<h4>Search</h4> |
| 188 |
<form class="search" action="../../search.html" method="get"> |
| 189 |
<input type="text" name="q" size="18" /> |
| 190 |
<input type="submit" value="Go" /> |
| 191 |
<input type="hidden" name="check_keywords" value="yes" /> |
| 192 |
<input type="hidden" name="area" value="default" /> |
| 193 |
</form> |
| 194 |
|
| 195 |
</div> |
| 196 |
<div class="clearer"></div> |
| 197 |
</div> |
| 198 |
</div> |
| 199 |
|
| 200 |
<div class="footer-wrapper"> |
| 201 |
<div class="footer" > |
| 202 |
<div class="right" ><i>Release: 1.22.1</i><br /> |
| 203 |
© <a href="../../copyright.html">Copyright</a> 1985-2025, MIT. |
| 204 |
</div> |
| 205 |
<div class="left"> |
| 206 |
|
| 207 |
<a href="../../index.html" title="Full Table of Contents" |
| 208 |
>Contents</a> | |
| 209 |
<a href="kpasswd.html" title="kpasswd" |
| 210 |
>previous</a> | |
| 211 |
<a href="ksu.html" title="ksu" |
| 212 |
>next</a> | |
| 213 |
<a href="../../genindex.html" title="General Index" |
| 214 |
>index</a> | |
| 215 |
<a href="../../search.html" title="Enter search criteria" |
| 216 |
>Search</a> | |
| 217 |
<a href="mailto:[email protected]?subject=Documentation__krb5-config">feedback</a> |
| 218 |
</div> |
| 219 |
</div> |
| 220 |
</div> |
| 221 |
|
| 222 |
</body> |
| 223 |
</html> |