[b4b71892] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[b4b71892] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[3ff3b9b] | 7 | <!ENTITY mitkrb-download-http "http://web.mit.edu/kerberos/www/dist/krb5/1.11/krb5-&mitkrb-version;-signed.tar">
|
---|
[fa47d680] | 8 | <!ENTITY mitkrb-download-ftp " ">
|
---|
[0c7d410] | 9 | <!ENTITY mitkrb-md5sum "d7a63c9c68b65efa71a615c67b6edf70">
|
---|
[3ff3b9b] | 10 | <!ENTITY mitkrb-size "12 MB">
|
---|
[debb0893] | 11 | <!ENTITY mitkrb-buildsize "140 MB (Additional 20 MB if running the testsuite)">
|
---|
| 12 | <!ENTITY mitkrb-time "1.5 SBU (additional 3.0 SBU if running the testsuite)">
|
---|
[b4b71892] | 13 | ]>
|
---|
| 14 |
|
---|
[f91ceaa] | 15 | <sect1 id="mitkrb" xreflabel="MIT Kerberos V5-&mitkrb-version;">
|
---|
[93c27d5] | 16 | <?dbhtml filename="mitkrb.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[f91ceaa] | 23 | <title>MIT Kerberos V5-&mitkrb-version;</title>
|
---|
[93c27d5] | 24 |
|
---|
| 25 | <indexterm zone="mitkrb">
|
---|
[f91ceaa] | 26 | <primary sortas="a-MIT-Kerberos">MIT Kerberos V5</primary>
|
---|
[93c27d5] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[f91ceaa] | 30 | <title>Introduction to MIT Kerberos V5</title>
|
---|
[93c27d5] | 31 |
|
---|
[fa47d680] | 32 | <para>
|
---|
| 33 | <application>MIT Kerberos V5</application> is a free implementation
|
---|
| 34 | of Kerberos 5. Kerberos is a network authentication protocol. It
|
---|
| 35 | centralizes the authentication database and uses kerberized
|
---|
| 36 | applications to work with servers or services that support Kerberos
|
---|
| 37 | allowing single logins and encrypted communication over internal
|
---|
| 38 | networks or the Internet.
|
---|
| 39 | </para>
|
---|
[93c27d5] | 40 |
|
---|
[60ecc5bb] | 41 | &lfs72_checked;
|
---|
[597a2890] | 42 |
|
---|
[93c27d5] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
[fa47d680] | 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&mitkrb-download-http;"/>
|
---|
| 48 | </para>
|
---|
[93c27d5] | 49 | </listitem>
|
---|
[29d1c248] | 50 | <listitem>
|
---|
[fa47d680] | 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&mitkrb-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
[29d1c248] | 54 | </listitem>
|
---|
[93c27d5] | 55 | <listitem>
|
---|
[fa47d680] | 56 | <para>
|
---|
| 57 | Download MD5 sum: &mitkrb-md5sum;
|
---|
| 58 | </para>
|
---|
[93c27d5] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[fa47d680] | 61 | <para>
|
---|
| 62 | Download size: &mitkrb-size;
|
---|
| 63 | </para>
|
---|
[93c27d5] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[fa47d680] | 66 | <para>
|
---|
| 67 | Estimated disk space required: &mitkrb-buildsize;
|
---|
| 68 | </para>
|
---|
[93c27d5] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[fa47d680] | 71 | <para>
|
---|
| 72 | Estimated build time: &mitkrb-time;
|
---|
| 73 | </para>
|
---|
[93c27d5] | 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
[af22057] | 76 |
|
---|
[f91ceaa] | 77 | <bridgehead renderas="sect3">MIT Kerberos V5 Dependencies</bridgehead>
|
---|
[93c27d5] | 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[fa47d680] | 80 | <para role="optional">
|
---|
| 81 | <xref linkend="dejagnu"/> (required to run the testsuite),
|
---|
| 82 | <xref linkend="keyutils"/>,
|
---|
[debb0893] | 83 | <xref linkend="openldap"/>,
|
---|
| 84 | <xref linkend="python2"/> (used during the testsuite) and
|
---|
| 85 | <xref linkend="rpcbind"/> (used during the testsuite)
|
---|
[fa47d680] | 86 | </para>
|
---|
[93c27d5] | 87 |
|
---|
| 88 | <note>
|
---|
[fa47d680] | 89 | <para>
|
---|
| 90 | Some sort of time synchronization facility on your system (like
|
---|
| 91 | <xref linkend="ntp"/>) is required since Kerberos won't authenticate
|
---|
| 92 | if there is a time difference between a kerberized client and the
|
---|
| 93 | KDC server.
|
---|
| 94 | </para>
|
---|
[93c27d5] | 95 | </note>
|
---|
[af22057] | 96 |
|
---|
[3597eb6] | 97 | <para condition="html" role="usernotes">User Notes:
|
---|
[fa47d680] | 98 | <ulink url="&blfs-wiki;/mitkrb"/>
|
---|
| 99 | </para>
|
---|
[93c27d5] | 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="installation">
|
---|
[f91ceaa] | 103 | <title>Installation of MIT Kerberos V5</title>
|
---|
[bccbdaea] | 104 |
|
---|
[fa47d680] | 105 | <para>
|
---|
| 106 | <application>MIT Kerberos V5</application> is distributed in a
|
---|
| 107 | TAR file containing a compressed TAR package and a detached PGP
|
---|
| 108 | <filename class="extension">ASC</filename> file. You'll need to unpack
|
---|
| 109 | the distribution tar file, then unpack the compressed tar file before
|
---|
| 110 | starting the build.
|
---|
| 111 | </para>
|
---|
[93c27d5] | 112 |
|
---|
[fa47d680] | 113 | <para>
|
---|
| 114 | After unpacking the distribution tarball and if you have
|
---|
| 115 | <xref linkend="gnupg"/> installed, you can
|
---|
[a61cf51] | 116 | authenticate the package. First, check the contents of the file
|
---|
[debb0893] | 117 | <filename>krb5-&mitkrb-version;.tar.gz.asc</filename>.
|
---|
[fa47d680] | 118 | </para>
|
---|
[93c27d5] | 119 |
|
---|
[a61cf51] | 120 | <screen><userinput>gpg --verify krb5-&mitkrb-version;.tar.gz.asc krb5-&mitkrb-version;.tar.gz</userinput></screen>
|
---|
| 121 |
|
---|
| 122 | <para>You will probably see output similar to:</para>
|
---|
| 123 |
|
---|
| 124 | <screen>gpg: Signature made Wed Aug 8 22:29:58 2012 GMT using RSA key ID F376813D
|
---|
| 125 | gpg: Can't check signature: public key not found</screen>
|
---|
| 126 |
|
---|
[3ff3b9b] | 127 | <para>
|
---|
| 128 | You can import the public key with:
|
---|
| 129 | </para>
|
---|
[a61cf51] | 130 |
|
---|
| 131 | <screen><userinput>gpg gpg --keyserver pgp.mit.edu --recv-keys 0xF376813D</userinput></screen>
|
---|
| 132 |
|
---|
[3ff3b9b] | 133 | <para>
|
---|
| 134 | Now re-verify the package with the first command above. You should get a
|
---|
[0d7900a] | 135 | indication of a good signature, but the key will still not be certified
|
---|
[3ff3b9b] | 136 | with a trusted signature. Trusting the downloaded key is a separate
|
---|
| 137 | operation but it is up to you to determine the level of trust.
|
---|
| 138 | </para>
|
---|
[93c27d5] | 139 |
|
---|
[fa47d680] | 140 | <para>
|
---|
| 141 | Build <application>MIT Kerberos V5</application> by running the
|
---|
| 142 | following commands:
|
---|
| 143 | </para>
|
---|
[93c27d5] | 144 |
|
---|
[f5c7c74] | 145 | <screen><userinput>cd src &&
|
---|
[debb0893] | 146 | sed -e "s@python2.5/Python.h@& python2.7/Python.h@g" \
|
---|
| 147 | -e "s@-lpython2.5]@&,\n AC_CHECK_LIB(python2.7,main,[PYTHON_LIB=-lpython2.7])@g" \
|
---|
| 148 | -i configure.in &&
|
---|
| 149 | sed -e "s@interp->result@Tcl_GetStringResult(interp)@g" \
|
---|
| 150 | -i kadmin/testing/util/tcl_kadm5.c &&
|
---|
| 151 | autoconf &&
|
---|
[f91ceaa] | 152 | ./configure CPPFLAGS="-I/usr/include/et -I/usr/include/ss" \
|
---|
[2799196] | 153 | --prefix=/usr \
|
---|
[0c7d410] | 154 | --sysconfdir=/etc \
|
---|
[2799196] | 155 | --localstatedir=/var/lib \
|
---|
| 156 | --with-system-et \
|
---|
| 157 | --with-system-ss \
|
---|
[597a2890] | 158 | --enable-dns-for-realm &&
|
---|
[93c27d5] | 159 | make</userinput></screen>
|
---|
| 160 |
|
---|
[fa47d680] | 161 | <para>
|
---|
| 162 | The regression test suite is designed to be run after the
|
---|
| 163 | installation has been completed.
|
---|
| 164 | </para>
|
---|
[f91ceaa] | 165 |
|
---|
[fa47d680] | 166 | <para>
|
---|
| 167 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 168 | </para>
|
---|
[93c27d5] | 169 |
|
---|
| 170 | <screen role="root"><userinput>make install &&
|
---|
[f91ceaa] | 171 |
|
---|
[c2d87c40] | 172 | for LIBRARY in gssapi_krb5 gssrpc k5crypto kadm5clnt_mit kadm5srv_mit \
|
---|
[debb0893] | 173 | kdb5 kdb_ldap krb5 krb5support verto ; do
|
---|
| 174 | [ -e /usr/lib/lib$LIBRARY.so.*.* ] && chmod -v 755 /usr/lib/lib$LIBRARY.so.*.*
|
---|
[98dd5b8] | 175 | done &&
|
---|
| 176 |
|
---|
[2799196] | 177 | mv -v /usr/lib/libkrb5.so.3* /lib &&
|
---|
| 178 | mv -v /usr/lib/libk5crypto.so.3* /lib &&
|
---|
[f91ceaa] | 179 | mv -v /usr/lib/libkrb5support.so.0* /lib &&
|
---|
| 180 |
|
---|
[2799196] | 181 | ln -v -sf ../../lib/libkrb5.so.3.3 /usr/lib/libkrb5.so &&
|
---|
| 182 | ln -v -sf ../../lib/libk5crypto.so.3.1 /usr/lib/libk5crypto.so &&
|
---|
[597a2890] | 183 | ln -v -sf ../../lib/libkrb5support.so.0.1 /usr/lib/libkrb5support.so &&
|
---|
[f91ceaa] | 184 |
|
---|
[98dd5b8] | 185 | mv -v /usr/bin/ksu /bin &&
|
---|
| 186 | chmod -v 755 /bin/ksu &&
|
---|
| 187 |
|
---|
| 188 | install -v -dm755 /usr/share/doc/krb5-&mitkrb-version; &&
|
---|
| 189 | cp -vfr ../doc/* /usr/share/doc/krb5-&mitkrb-version; &&
|
---|
| 190 |
|
---|
[cd34755] | 191 | unset LIBRARY</userinput></screen>
|
---|
[af22057] | 192 |
|
---|
[fa47d680] | 193 | <para>
|
---|
| 194 | To test the installation, you must have <xref linkend="dejagnu"/>
|
---|
| 195 | installed and issue: <command>make check</command>.
|
---|
| 196 | </para>
|
---|
| 197 |
|
---|
[93c27d5] | 198 | </sect2>
|
---|
| 199 |
|
---|
| 200 | <sect2 role="commands">
|
---|
| 201 | <title>Command Explanations</title>
|
---|
[af22057] | 202 |
|
---|
[debb0893] | 203 | <para>
|
---|
| 204 | <command>sed -e ...</command>: First <command>sed</command> fixes
|
---|
| 205 | <application>Python</application> detection and second one fixes
|
---|
| 206 | build with <application>Tcl</application> 8.6.
|
---|
| 207 | </para>
|
---|
| 208 |
|
---|
[fa47d680] | 209 | <para>
|
---|
[3ff3b9b] | 210 | <option>--enable-dns-for-realm</option>: This switch allows
|
---|
[fa47d680] | 211 | realms to be resolved using the DNS server.
|
---|
| 212 | </para>
|
---|
| 213 |
|
---|
| 214 | <para>
|
---|
| 215 | <option>--with-system-et</option>: This switch causes the build
|
---|
| 216 | to use the system-installed versions of the error-table support
|
---|
| 217 | software.
|
---|
| 218 | </para>
|
---|
| 219 |
|
---|
| 220 | <para>
|
---|
| 221 | <option>--with-system-ss</option>: This switch causes the build
|
---|
| 222 | to use the system-installed versions of the subsystem command-line
|
---|
| 223 | interface software.
|
---|
| 224 | </para>
|
---|
| 225 |
|
---|
| 226 | <para>
|
---|
| 227 | <parameter>--localstatedir=/var/lib</parameter>: This parameter is
|
---|
| 228 | used so that the Kerberos variable run-time data is located in
|
---|
| 229 | <filename class="directory">/var/lib</filename> instead of
|
---|
| 230 | <filename class="directory">/usr/var</filename>.
|
---|
| 231 | </para>
|
---|
| 232 |
|
---|
| 233 | <para>
|
---|
| 234 | <command>mv -v /usr/bin/ksu /bin</command>: Moves the
|
---|
| 235 | <command>ksu</command> program to the
|
---|
| 236 | <filename class="directory">/bin</filename> directory so that it is
|
---|
| 237 | available when the <filename class="directory">/usr</filename>
|
---|
| 238 | filesystem is not mounted.
|
---|
| 239 | </para>
|
---|
| 240 |
|
---|
| 241 | <para>
|
---|
| 242 | <option>--with-ldap</option>: Use this switch if you want to compile
|
---|
| 243 | <application>OpenLDAP</application> database backend module.
|
---|
| 244 | </para>
|
---|
[93c27d5] | 245 |
|
---|
| 246 | </sect2>
|
---|
| 247 |
|
---|
| 248 | <sect2 role="configuration">
|
---|
[f91ceaa] | 249 | <title>Configuring MIT Kerberos V5</title>
|
---|
[af22057] | 250 |
|
---|
[93c27d5] | 251 | <sect3 id="krb5-config">
|
---|
| 252 | <title>Config Files</title>
|
---|
| 253 |
|
---|
[fa47d680] | 254 | <para>
|
---|
| 255 | <filename>/etc/krb5.conf</filename> and
|
---|
| 256 | <filename>/var/lib/krb5kdc/kdc.conf</filename>
|
---|
| 257 | </para>
|
---|
[93c27d5] | 258 |
|
---|
| 259 | <indexterm zone="mitkrb krb5-config">
|
---|
[597a2890] | 260 | <primary sortas="e-etc-krb5.conf">/etc/krb5.conf</primary>
|
---|
[93c27d5] | 261 | </indexterm>
|
---|
| 262 |
|
---|
| 263 | <indexterm zone="mitkrb krb5-config">
|
---|
| 264 | <primary sortas="e-var-lib-krb5kdc-kdc.conf">/var/lib/krb5kdc/kdc.conf</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 |
|
---|
| 267 | </sect3>
|
---|
| 268 |
|
---|
| 269 | <sect3>
|
---|
| 270 | <title>Configuration Information</title>
|
---|
| 271 |
|
---|
| 272 | <sect4>
|
---|
| 273 | <title>Kerberos Configuration</title>
|
---|
| 274 |
|
---|
[f91ceaa] | 275 | <tip>
|
---|
[fa47d680] | 276 | <para>
|
---|
| 277 | You should consider installing some sort of password checking
|
---|
| 278 | dictionary so that you can configure the installation to only
|
---|
| 279 | accept strong passwords. A suitable dictionary to use is shown in
|
---|
| 280 | the <xref linkend="cracklib"/> instructions. Note that only one
|
---|
| 281 | file can be used, but you can concatenate many files into one. The
|
---|
| 282 | configuration file shown below assumes you have installed a
|
---|
| 283 | dictionary to <filename>/usr/share/dict/words</filename>.
|
---|
| 284 | </para>
|
---|
[f91ceaa] | 285 | </tip>
|
---|
| 286 |
|
---|
[fa47d680] | 287 | <para>
|
---|
| 288 | Create the Kerberos configuration file with the following
|
---|
| 289 | commands issued by the <systemitem class="username">root</systemitem>
|
---|
| 290 | user:
|
---|
| 291 | </para>
|
---|
[93c27d5] | 292 |
|
---|
[597a2890] | 293 | <screen role="root"><userinput>cat > /etc/krb5.conf << "EOF"
|
---|
| 294 | <literal># Begin /etc/krb5.conf
|
---|
[dc04b84] | 295 |
|
---|
[b4b71892] | 296 | [libdefaults]
|
---|
[3597eb6] | 297 | default_realm = <replaceable><LFS.ORG></replaceable>
|
---|
[b4b71892] | 298 | encrypt = true
|
---|
| 299 |
|
---|
| 300 | [realms]
|
---|
[3597eb6] | 301 | <replaceable><LFS.ORG></replaceable> = {
|
---|
| 302 | kdc = <replaceable><belgarath.lfs.org></replaceable>
|
---|
| 303 | admin_server = <replaceable><belgarath.lfs.org></replaceable>
|
---|
[f91ceaa] | 304 | dict_file = /usr/share/dict/words
|
---|
[b4b71892] | 305 | }
|
---|
| 306 |
|
---|
| 307 | [domain_realm]
|
---|
[3597eb6] | 308 | .<replaceable><lfs.org></replaceable> = <replaceable><LFS.ORG></replaceable>
|
---|
[b4b71892] | 309 |
|
---|
| 310 | [logging]
|
---|
| 311 | kdc = SYSLOG[:INFO[:AUTH]]
|
---|
| 312 | admin_server = SYSLOG[INFO[:AUTH]]
|
---|
| 313 | default = SYSLOG[[:SYS]]
|
---|
| 314 |
|
---|
[597a2890] | 315 | # End /etc/krb5.conf</literal>
|
---|
[93c27d5] | 316 | EOF</userinput></screen>
|
---|
| 317 |
|
---|
[fa47d680] | 318 | <para>
|
---|
| 319 | You will need to substitute your domain and proper hostname for the
|
---|
| 320 | occurrences of the <replaceable><belgarath></replaceable> and
|
---|
| 321 | <replaceable><lfs.org></replaceable> names.
|
---|
| 322 | </para>
|
---|
| 323 |
|
---|
| 324 | <para>
|
---|
| 325 | <option>default_realm</option> should be the name of your
|
---|
| 326 | domain changed to ALL CAPS. This isn't required, but both
|
---|
| 327 | <application>Heimdal</application> and MIT recommend it.
|
---|
| 328 | </para>
|
---|
| 329 |
|
---|
| 330 | <para>
|
---|
| 331 | <option>encrypt = true</option> provides encryption of all traffic
|
---|
| 332 | between kerberized clients and servers. It's not necessary and can
|
---|
| 333 | be left off. If you leave it off, you can encrypt all traffic from
|
---|
| 334 | the client to the server using a switch on the client program
|
---|
| 335 | instead.
|
---|
| 336 | </para>
|
---|
| 337 |
|
---|
| 338 | <para>
|
---|
| 339 | The <option>[realms]</option> parameters tell the client programs
|
---|
| 340 | where to look for the KDC authentication services.
|
---|
| 341 | </para>
|
---|
| 342 |
|
---|
| 343 | <para>
|
---|
| 344 | The <option>[domain_realm]</option> section maps a domain to a realm.
|
---|
| 345 | </para>
|
---|
| 346 |
|
---|
| 347 | <para>
|
---|
| 348 | Create the KDC database:
|
---|
| 349 | </para>
|
---|
[93c27d5] | 350 |
|
---|
[3597eb6] | 351 | <screen role="root"><userinput>kdb5_util create -r <replaceable><LFS.ORG></replaceable> -s</userinput></screen>
|
---|
[93c27d5] | 352 |
|
---|
[fa47d680] | 353 | <para>
|
---|
[601a838] | 354 | Now you should populate the database with principals
|
---|
[fa47d680] | 355 | (users). For now, just use your regular login name or
|
---|
| 356 | <systemitem class="username">root</systemitem>.
|
---|
| 357 | </para>
|
---|
[93c27d5] | 358 |
|
---|
| 359 | <screen role="root"><userinput>kadmin.local
|
---|
[af22057] | 360 | <prompt>kadmin:</prompt> add_policy dict-only
|
---|
[3597eb6] | 361 | <prompt>kadmin:</prompt> addprinc -policy dict-only <replaceable><loginname></replaceable></userinput></screen>
|
---|
[93c27d5] | 362 |
|
---|
[fa47d680] | 363 | <para>
|
---|
| 364 | The KDC server and any machine running kerberized
|
---|
| 365 | server daemons must have a host key installed:
|
---|
| 366 | </para>
|
---|
[93c27d5] | 367 |
|
---|
[fa47d680] | 368 | <screen role="root"><userinput><prompt>kadmin:</prompt> addprinc -randkey host/<replaceable><belgarath.lfs.org></replaceable></userinput></screen>
|
---|
[93c27d5] | 369 |
|
---|
[fa47d680] | 370 | <para>
|
---|
| 371 | After choosing the defaults when prompted, you will have to
|
---|
| 372 | export the data to a keytab file:
|
---|
| 373 | </para>
|
---|
[93c27d5] | 374 |
|
---|
[fa47d680] | 375 | <screen role="root"><userinput><prompt>kadmin:</prompt> ktadd host/<replaceable><belgarath.lfs.org></replaceable></userinput></screen>
|
---|
[93c27d5] | 376 |
|
---|
[fa47d680] | 377 | <para>
|
---|
| 378 | This should have created a file in
|
---|
| 379 | <filename class="directory">/etc</filename> named
|
---|
| 380 | <filename>krb5.keytab</filename> (Kerberos 5). This file should
|
---|
| 381 | have 600 (<systemitem class="username">root</systemitem> rw only)
|
---|
| 382 | permissions. Keeping the keytab files from public access is crucial
|
---|
| 383 | to the overall security of the Kerberos installation.
|
---|
| 384 | </para>
|
---|
[93c27d5] | 385 |
|
---|
[fa47d680] | 386 | <para>
|
---|
| 387 | Exit the <command>kadmin</command> program (use
|
---|
| 388 | <command>quit</command> or <command>exit</command>) and return
|
---|
| 389 | back to the shell prompt. Start the KDC daemon manually, just to
|
---|
| 390 | test out the installation:
|
---|
| 391 | </para>
|
---|
[93c27d5] | 392 |
|
---|
[fa47d680] | 393 | <screen role="root"><userinput>/usr/sbin/krb5kdc</userinput></screen>
|
---|
[93c27d5] | 394 |
|
---|
[fa47d680] | 395 | <para>
|
---|
| 396 | Attempt to get a ticket with the following command:
|
---|
| 397 | </para>
|
---|
[93c27d5] | 398 |
|
---|
[3597eb6] | 399 | <screen><userinput>kinit <replaceable><loginname></replaceable></userinput></screen>
|
---|
[93c27d5] | 400 |
|
---|
[fa47d680] | 401 | <para>
|
---|
| 402 | You will be prompted for the password you created. After you
|
---|
| 403 | get your ticket, you can list it with the following command:
|
---|
| 404 | </para>
|
---|
[93c27d5] | 405 |
|
---|
| 406 | <screen><userinput>klist</userinput></screen>
|
---|
| 407 |
|
---|
[fa47d680] | 408 | <para>
|
---|
| 409 | Information about the ticket should be displayed on the
|
---|
| 410 | screen.
|
---|
| 411 | </para>
|
---|
[93c27d5] | 412 |
|
---|
[fa47d680] | 413 | <para>
|
---|
| 414 | To test the functionality of the keytab file, issue the
|
---|
| 415 | following command:
|
---|
| 416 | </para>
|
---|
[93c27d5] | 417 |
|
---|
| 418 | <screen><userinput>ktutil
|
---|
[597a2890] | 419 | <prompt>ktutil:</prompt> rkt /etc/krb5.keytab
|
---|
[93c27d5] | 420 | <prompt>ktutil:</prompt> l</userinput></screen>
|
---|
| 421 |
|
---|
[fa47d680] | 422 | <para>
|
---|
| 423 | This should dump a list of the host principal, along with
|
---|
| 424 | the encryption methods used to access the principal.
|
---|
| 425 | </para>
|
---|
[93c27d5] | 426 |
|
---|
[fa47d680] | 427 | <para>
|
---|
| 428 | At this point, if everything has been successful so far, you
|
---|
| 429 | can feel fairly confident in the installation and configuration of
|
---|
| 430 | the package.
|
---|
| 431 | </para>
|
---|
[93c27d5] | 432 |
|
---|
| 433 | </sect4>
|
---|
[b4b71892] | 434 |
|
---|
[93c27d5] | 435 | <sect4>
|
---|
| 436 | <title>Additional Information</title>
|
---|
| 437 |
|
---|
[fa47d680] | 438 | <para>
|
---|
| 439 | For additional information consult <ulink
|
---|
[0c7d410] | 440 | url="http://web.mit.edu/kerberos/www/krb5-1.11/#documentation">
|
---|
[debb0893] | 441 | Documentation for krb5-&mitkrb-version;</ulink> on which the above
|
---|
[fa47d680] | 442 | instructions are based.
|
---|
| 443 | </para>
|
---|
[93c27d5] | 444 |
|
---|
| 445 | </sect4>
|
---|
| 446 |
|
---|
| 447 | </sect3>
|
---|
[6aeeb90] | 448 |
|
---|
[d9d26317] | 449 | <sect3 id="mitkrb-init">
|
---|
| 450 | <title>Init Script</title>
|
---|
| 451 |
|
---|
| 452 | <para>
|
---|
| 453 | If you want to start <application>Kerberos</application> services
|
---|
| 454 | at boot, install the <filename>/etc/rc.d/init.d/krb5</filename> init
|
---|
| 455 | script included in the <xref linkend="bootscripts"/> package using
|
---|
| 456 | the following command:
|
---|
| 457 | </para>
|
---|
| 458 |
|
---|
| 459 | <indexterm zone="mitkrb mitkrb-init">
|
---|
| 460 | <primary sortas="f-krb5">krb5</primary>
|
---|
| 461 | </indexterm>
|
---|
| 462 |
|
---|
| 463 | <screen role="root"><userinput>make install-krb5</userinput></screen>
|
---|
| 464 |
|
---|
| 465 | </sect3>
|
---|
| 466 |
|
---|
[93c27d5] | 467 | </sect2>
|
---|
| 468 |
|
---|
| 469 | <sect2 role="content">
|
---|
[fa47d680] | 470 |
|
---|
[93c27d5] | 471 | <title>Contents</title>
|
---|
[ec578e6] | 472 | <para></para>
|
---|
[af22057] | 473 |
|
---|
[93c27d5] | 474 | <segmentedlist>
|
---|
| 475 | <segtitle>Installed Programs</segtitle>
|
---|
| 476 | <segtitle>Installed Libraries</segtitle>
|
---|
| 477 | <segtitle>Installed Directories</segtitle>
|
---|
| 478 |
|
---|
| 479 | <seglistitem>
|
---|
[fa47d680] | 480 | <seg>
|
---|
[0d7900a] | 481 | gss-client, gss-server, k5srvutil, kadmin, kadmin.local,
|
---|
| 482 | kadmind, kdb5_ldap_util, kdb5_util, kdestroy, kinit, klist,
|
---|
| 483 | kpasswd, kprop, kpropd, krb5-config, krb5kdc, krb5-send-pr,
|
---|
| 484 | ksu, kswitch, ktutil, kvno, sclient, sim_client, sim_server,
|
---|
[fa47d680] | 485 | sserver, uuclient and uuserver
|
---|
| 486 | </seg>
|
---|
| 487 | <seg>
|
---|
[0d7900a] | 488 | libgssapi_krb5.so, libgssrpc.so, libk5crypto.so,
|
---|
| 489 | libkadm5clnt.so, libkadm5srv.so, libkdb5.so, libkdb_ldap.so,
|
---|
[3ff3b9b] | 490 | libkrb5.so, libkrb5support.so, and libverto.so
|
---|
[fa47d680] | 491 | </seg>
|
---|
| 492 | <seg>
|
---|
[3ff3b9b] | 493 | /usr/include/gssapi,
|
---|
| 494 | /usr/include/gssrpc,
|
---|
| 495 | /usr/include/kadm5,
|
---|
| 496 | /usr/include/krb5,
|
---|
[0d7900a] | 497 | /usr/lib/krb5,
|
---|
[fa47d680] | 498 | /usr/share/doc/krb5-&mitkrb-version;,
|
---|
| 499 | /usr/share/examples/krb5 and
|
---|
| 500 | /var/lib/krb5kdc
|
---|
| 501 | </seg>
|
---|
[93c27d5] | 502 | </seglistitem>
|
---|
| 503 | </segmentedlist>
|
---|
| 504 |
|
---|
| 505 | <variablelist>
|
---|
| 506 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 507 | <?dbfo list-presentation="list"?>
|
---|
| 508 | <?dbhtml list-presentation="table"?>
|
---|
| 509 |
|
---|
| 510 | <varlistentry id="k5srvutil">
|
---|
| 511 | <term><command>k5srvutil</command></term>
|
---|
| 512 | <listitem>
|
---|
[fa47d680] | 513 | <para>
|
---|
| 514 | is a host keytable manipulation utility.
|
---|
| 515 | </para>
|
---|
[93c27d5] | 516 | <indexterm zone="mitkrb k5srvutil">
|
---|
| 517 | <primary sortas="b-k5srvutil">k5srvutil</primary>
|
---|
| 518 | </indexterm>
|
---|
| 519 | </listitem>
|
---|
| 520 | </varlistentry>
|
---|
| 521 |
|
---|
[fa47d680] | 522 | <varlistentry id="kadmin">
|
---|
[93c27d5] | 523 | <term><command>kadmin</command></term>
|
---|
| 524 | <listitem>
|
---|
[fa47d680] | 525 | <para>
|
---|
| 526 | is an utility used to make modifications
|
---|
| 527 | to the Kerberos database.
|
---|
| 528 | </para>
|
---|
| 529 | <indexterm zone="mitkrb kadmin">
|
---|
[93c27d5] | 530 | <primary sortas="b-kadmin">kadmin</primary>
|
---|
| 531 | </indexterm>
|
---|
| 532 | </listitem>
|
---|
| 533 | </varlistentry>
|
---|
| 534 |
|
---|
[fa47d680] | 535 | <varlistentry id="kadmind">
|
---|
[93c27d5] | 536 | <term><command>kadmind</command></term>
|
---|
| 537 | <listitem>
|
---|
[fa47d680] | 538 | <para>
|
---|
| 539 | is a server for administrative access
|
---|
| 540 | to a Kerberos database.
|
---|
| 541 | </para>
|
---|
| 542 | <indexterm zone="mitkrb kadmind">
|
---|
[93c27d5] | 543 | <primary sortas="b-kadmind">kadmind</primary>
|
---|
| 544 | </indexterm>
|
---|
| 545 | </listitem>
|
---|
| 546 | </varlistentry>
|
---|
| 547 |
|
---|
| 548 | <varlistentry id="kdb5_util">
|
---|
| 549 | <term><command>kdb5_util</command></term>
|
---|
| 550 | <listitem>
|
---|
[fa47d680] | 551 | <para>
|
---|
| 552 | is the KDC database utility.
|
---|
| 553 | </para>
|
---|
[93c27d5] | 554 | <indexterm zone="mitkrb kdb5_util">
|
---|
| 555 | <primary sortas="b-kdb5_util">kdb5_util</primary>
|
---|
| 556 | </indexterm>
|
---|
| 557 | </listitem>
|
---|
| 558 | </varlistentry>
|
---|
| 559 |
|
---|
[fa47d680] | 560 | <varlistentry id="kdestroy">
|
---|
[93c27d5] | 561 | <term><command>kdestroy</command></term>
|
---|
| 562 | <listitem>
|
---|
[fa47d680] | 563 | <para>
|
---|
| 564 | removes the current set of tickets.
|
---|
| 565 | </para>
|
---|
| 566 | <indexterm zone="mitkrb kdestroy">
|
---|
[93c27d5] | 567 | <primary sortas="b-kdestroy">kdestroy</primary>
|
---|
| 568 | </indexterm>
|
---|
| 569 | </listitem>
|
---|
| 570 | </varlistentry>
|
---|
| 571 |
|
---|
[fa47d680] | 572 | <varlistentry id="kinit">
|
---|
[93c27d5] | 573 | <term><command>kinit</command></term>
|
---|
| 574 | <listitem>
|
---|
[fa47d680] | 575 | <para>
|
---|
| 576 | is used to authenticate to the Kerberos server as a
|
---|
| 577 | principal and acquire a ticket granting ticket that can
|
---|
| 578 | later be used to obtain tickets for other services.
|
---|
| 579 | </para>
|
---|
| 580 | <indexterm zone="mitkrb kinit">
|
---|
[93c27d5] | 581 | <primary sortas="b-kinit">kinit</primary>
|
---|
| 582 | </indexterm>
|
---|
| 583 | </listitem>
|
---|
| 584 | </varlistentry>
|
---|
| 585 |
|
---|
[fa47d680] | 586 | <varlistentry id="klist">
|
---|
[93c27d5] | 587 | <term><command>klist</command></term>
|
---|
| 588 | <listitem>
|
---|
[fa47d680] | 589 | <para>
|
---|
| 590 | reads and displays the current tickets in
|
---|
| 591 | the credential cache.
|
---|
| 592 | </para>
|
---|
| 593 | <indexterm zone="mitkrb klist">
|
---|
[93c27d5] | 594 | <primary sortas="b-klist">klist</primary>
|
---|
| 595 | </indexterm>
|
---|
| 596 | </listitem>
|
---|
| 597 | </varlistentry>
|
---|
| 598 |
|
---|
[fa47d680] | 599 | <varlistentry id="kpasswd">
|
---|
[93c27d5] | 600 | <term><command>kpasswd</command></term>
|
---|
| 601 | <listitem>
|
---|
[fa47d680] | 602 | <para>
|
---|
| 603 | is a program for changing Kerberos 5 passwords.
|
---|
| 604 | </para>
|
---|
| 605 | <indexterm zone="mitkrb kpasswd">
|
---|
[93c27d5] | 606 | <primary sortas="b-kpasswd">kpasswd</primary>
|
---|
| 607 | </indexterm>
|
---|
| 608 | </listitem>
|
---|
| 609 | </varlistentry>
|
---|
| 610 |
|
---|
| 611 | <varlistentry id="kprop">
|
---|
| 612 | <term><command>kprop</command></term>
|
---|
| 613 | <listitem>
|
---|
[fa47d680] | 614 | <para>
|
---|
| 615 | takes a principal database in a specified format and
|
---|
| 616 | converts it into a stream of database records.
|
---|
| 617 | </para>
|
---|
[93c27d5] | 618 | <indexterm zone="mitkrb kprop">
|
---|
| 619 | <primary sortas="b-kprop">kprop</primary>
|
---|
| 620 | </indexterm>
|
---|
| 621 | </listitem>
|
---|
| 622 | </varlistentry>
|
---|
| 623 |
|
---|
| 624 | <varlistentry id="kpropd">
|
---|
| 625 | <term><command>kpropd</command></term>
|
---|
| 626 | <listitem>
|
---|
[fa47d680] | 627 | <para>
|
---|
| 628 | receives a database sent by <command>kprop</command>
|
---|
| 629 | and writes it as a local database.
|
---|
| 630 | </para>
|
---|
[93c27d5] | 631 | <indexterm zone="mitkrb kpropd">
|
---|
| 632 | <primary sortas="b-kpropd">kpropd</primary>
|
---|
| 633 | </indexterm>
|
---|
| 634 | </listitem>
|
---|
| 635 | </varlistentry>
|
---|
| 636 |
|
---|
[f91ceaa] | 637 | <varlistentry id="krb5-config-prog2">
|
---|
[93c27d5] | 638 | <term><command>krb5-config</command></term>
|
---|
| 639 | <listitem>
|
---|
[fa47d680] | 640 | <para>
|
---|
| 641 | gives information on how to link programs against
|
---|
| 642 | libraries.
|
---|
| 643 | </para>
|
---|
[f91ceaa] | 644 | <indexterm zone="mitkrb krb5-config-prog2">
|
---|
| 645 | <primary sortas="b-krb5-config">krb5-config</primary>
|
---|
[93c27d5] | 646 | </indexterm>
|
---|
| 647 | </listitem>
|
---|
| 648 | </varlistentry>
|
---|
| 649 |
|
---|
| 650 | <varlistentry id="krb5kdc">
|
---|
| 651 | <term><command>krb5kdc</command></term>
|
---|
| 652 | <listitem>
|
---|
[fa47d680] | 653 | <para>
|
---|
| 654 | is the <application>Kerberos 5</application> server.
|
---|
| 655 | </para>
|
---|
[93c27d5] | 656 | <indexterm zone="mitkrb krb5kdc">
|
---|
| 657 | <primary sortas="b-krb5kdc">krb5kdc</primary>
|
---|
| 658 | </indexterm>
|
---|
| 659 | </listitem>
|
---|
| 660 | </varlistentry>
|
---|
| 661 |
|
---|
| 662 | <varlistentry id="ksu">
|
---|
| 663 | <term><command>ksu</command></term>
|
---|
| 664 | <listitem>
|
---|
[fa47d680] | 665 | <para>
|
---|
| 666 | is the super user program using Kerberos protocol.
|
---|
| 667 | Requires a properly configured
|
---|
| 668 | <filename>/etc/shells</filename> and
|
---|
| 669 | <filename>~/.k5login</filename> containing principals
|
---|
| 670 | authorized to become super users.
|
---|
| 671 | </para>
|
---|
[93c27d5] | 672 | <indexterm zone="mitkrb ksu">
|
---|
| 673 | <primary sortas="b-ksu">ksu</primary>
|
---|
| 674 | </indexterm>
|
---|
| 675 | </listitem>
|
---|
| 676 | </varlistentry>
|
---|
| 677 |
|
---|
[597a2890] | 678 | <varlistentry id="kswitch">
|
---|
| 679 | <term><command>kswitch</command></term>
|
---|
| 680 | <listitem>
|
---|
[fa47d680] | 681 | <para>
|
---|
[0d7900a] | 682 | makes the specified credential cache the
|
---|
| 683 | primary cache for the collection, if a cache
|
---|
[fa47d680] | 684 | collection is available.
|
---|
| 685 | </para>
|
---|
[597a2890] | 686 | <indexterm zone="mitkrb kswitch">
|
---|
| 687 | <primary sortas="b-kswitch">kswitch</primary>
|
---|
| 688 | </indexterm>
|
---|
| 689 | </listitem>
|
---|
| 690 | </varlistentry>
|
---|
| 691 |
|
---|
[fa47d680] | 692 | <varlistentry id="ktutil">
|
---|
[93c27d5] | 693 | <term><command>ktutil</command></term>
|
---|
| 694 | <listitem>
|
---|
[fa47d680] | 695 | <para>
|
---|
| 696 | is a program for managing Kerberos keytabs.
|
---|
| 697 | </para>
|
---|
| 698 | <indexterm zone="mitkrb ktutil">
|
---|
[93c27d5] | 699 | <primary sortas="b-ktutil">ktutil</primary>
|
---|
| 700 | </indexterm>
|
---|
| 701 | </listitem>
|
---|
| 702 | </varlistentry>
|
---|
| 703 |
|
---|
| 704 | <varlistentry id="kvno">
|
---|
| 705 | <term><command>kvno</command></term>
|
---|
| 706 | <listitem>
|
---|
[fa47d680] | 707 | <para>
|
---|
| 708 | prints keyversion numbers of Kerberos principals.
|
---|
| 709 | </para>
|
---|
[93c27d5] | 710 | <indexterm zone="mitkrb kvno">
|
---|
| 711 | <primary sortas="b-kvno">kvno</primary>
|
---|
| 712 | </indexterm>
|
---|
| 713 | </listitem>
|
---|
| 714 | </varlistentry>
|
---|
| 715 |
|
---|
[597a2890] | 716 | <varlistentry id="sclient">
|
---|
| 717 | <term><command>sclient</command></term>
|
---|
[93c27d5] | 718 | <listitem>
|
---|
[fa47d680] | 719 | <para>
|
---|
| 720 | used to contact a sample server and authenticate to it
|
---|
| 721 | using Kerberos 5 tickets, then display the server's
|
---|
| 722 | response.
|
---|
| 723 | </para>
|
---|
[597a2890] | 724 | <indexterm zone="mitkrb sclient">
|
---|
| 725 | <primary sortas="b-sclient">sclient</primary>
|
---|
[93c27d5] | 726 | </indexterm>
|
---|
| 727 | </listitem>
|
---|
| 728 | </varlistentry>
|
---|
| 729 |
|
---|
[597a2890] | 730 | <varlistentry id="sserver">
|
---|
| 731 | <term><command>sserver</command></term>
|
---|
[93c27d5] | 732 | <listitem>
|
---|
[fa47d680] | 733 | <para>
|
---|
| 734 | is the sample Kerberos 5 server.
|
---|
| 735 | </para>
|
---|
[597a2890] | 736 | <indexterm zone="mitkrb sserver">
|
---|
| 737 | <primary sortas="b-sserver">sserver</primary>
|
---|
[93c27d5] | 738 | </indexterm>
|
---|
| 739 | </listitem>
|
---|
| 740 | </varlistentry>
|
---|
| 741 |
|
---|
[fa47d680] | 742 | <varlistentry id="libgssapi_krb5">
|
---|
[3ff3b9b] | 743 | <term><filename class="libraryfile">libgssapi_krb5.so</filename></term>
|
---|
[93c27d5] | 744 | <listitem>
|
---|
[fa47d680] | 745 | <para>
|
---|
| 746 | contain the Generic Security Service Application Programming
|
---|
| 747 | Interface (GSSAPI) functions which provides security services
|
---|
| 748 | to callers in a generic fashion, supportable with a range of
|
---|
| 749 | underlying mechanisms and technologies and hence allowing
|
---|
| 750 | source-level portability of applications to different
|
---|
| 751 | environments.
|
---|
| 752 | </para>
|
---|
| 753 | <indexterm zone="mitkrb libgssapi_krb5">
|
---|
[f91ceaa] | 754 | <primary sortas="c-libgssapi_krb5">libgssapi_krb5.so</primary>
|
---|
[93c27d5] | 755 | </indexterm>
|
---|
| 756 | </listitem>
|
---|
| 757 | </varlistentry>
|
---|
| 758 |
|
---|
[fa47d680] | 759 | <varlistentry id="libkadm5clnt">
|
---|
[3ff3b9b] | 760 | <term><filename class="libraryfile">libkadm5clnt.so</filename></term>
|
---|
[93c27d5] | 761 | <listitem>
|
---|
[fa47d680] | 762 | <para>
|
---|
| 763 | contains the administrative authentication and password checking
|
---|
| 764 | functions required by Kerberos 5 client-side programs.
|
---|
| 765 | </para>
|
---|
| 766 | <indexterm zone="mitkrb libkadm5clnt">
|
---|
[f91ceaa] | 767 | <primary sortas="c-libkadm5clnt">libkadm5clnt.so</primary>
|
---|
[93c27d5] | 768 | </indexterm>
|
---|
| 769 | </listitem>
|
---|
| 770 | </varlistentry>
|
---|
| 771 |
|
---|
[fa47d680] | 772 | <varlistentry id="libkadm5srv">
|
---|
[3ff3b9b] | 773 | <term><filename class="libraryfile">libkadm5srv.so</filename></term>
|
---|
[93c27d5] | 774 | <listitem>
|
---|
[fa47d680] | 775 | <para>
|
---|
| 776 | contain the administrative authentication and password
|
---|
| 777 | checking functions required by Kerberos 5 servers.
|
---|
| 778 | </para>
|
---|
| 779 | <indexterm zone="mitkrb libkadm5srv">
|
---|
[f91ceaa] | 780 | <primary sortas="c-libkadm5srv">libkadm5srv.so</primary>
|
---|
[93c27d5] | 781 | </indexterm>
|
---|
| 782 | </listitem>
|
---|
| 783 | </varlistentry>
|
---|
| 784 |
|
---|
| 785 | <varlistentry id="libkdb5">
|
---|
[3ff3b9b] | 786 | <term><filename class="libraryfile">libkdb5.so</filename></term>
|
---|
[93c27d5] | 787 | <listitem>
|
---|
[fa47d680] | 788 | <para>
|
---|
| 789 | is a Kerberos 5 authentication/authorization database
|
---|
| 790 | access library.
|
---|
| 791 | </para>
|
---|
[93c27d5] | 792 | <indexterm zone="mitkrb libkdb5">
|
---|
[f91ceaa] | 793 | <primary sortas="c-libkdb5">libkdb5.so</primary>
|
---|
[93c27d5] | 794 | </indexterm>
|
---|
| 795 | </listitem>
|
---|
| 796 | </varlistentry>
|
---|
| 797 |
|
---|
[fa47d680] | 798 | <varlistentry id="libkrb5">
|
---|
[3ff3b9b] | 799 | <term><filename class="libraryfile">libkrb5.so</filename></term>
|
---|
[93c27d5] | 800 | <listitem>
|
---|
[fa47d680] | 801 | <para>
|
---|
| 802 | is an all-purpose <application>Kerberos 5</application> library.
|
---|
| 803 | </para>
|
---|
| 804 | <indexterm zone="mitkrb libkrb5">
|
---|
[f91ceaa] | 805 | <primary sortas="c-libkrb5">libkrb5.so</primary>
|
---|
[93c27d5] | 806 | </indexterm>
|
---|
| 807 | </listitem>
|
---|
| 808 | </varlistentry>
|
---|
| 809 |
|
---|
| 810 | </variablelist>
|
---|
[af22057] | 811 |
|
---|
[93c27d5] | 812 | </sect2>
|
---|
[1dce143] | 813 |
|
---|
| 814 | </sect1>
|
---|