Blame SOURCES/0001-doc-extend-user-principal-section.patch

f707ba
From d6d1ce2f8b1c81903115b018973c61fc71235b7b Mon Sep 17 00:00:00 2001
f707ba
From: Sumit Bose <sbose@redhat.com>
f707ba
Date: Fri, 29 Nov 2019 18:10:03 +0100
f707ba
Subject: [PATCH] doc: extend user-principal section
f707ba
f707ba
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1643814
f707ba
---
f707ba
 doc/manual/realm.xml       | 21 +++++++++++++++++++--
f707ba
 doc/manual/realmd.conf.xml | 15 ++++++++++-----
f707ba
 2 files changed, 29 insertions(+), 7 deletions(-)
f707ba
f707ba
diff --git a/doc/manual/realm.xml b/doc/manual/realm.xml
f707ba
index 7b73331..55a7640 100644
f707ba
--- a/doc/manual/realm.xml
f707ba
+++ b/doc/manual/realm.xml
f707ba
@@ -254,10 +254,27 @@ $ realm join --user=admin --computer-ou=OU=Special domain.example.com
f707ba
 		</varlistentry>
f707ba
 		<varlistentry>
f707ba
 			<term><option>--user-principal=<parameter>host/name@REALM</parameter></option></term>
f707ba
-			<listitem><para>Set the userPrincipalName field of the
f707ba
+			<listitem><para>Set the
f707ba
+			<option>userPrincipalName</option> field of the
f707ba
 			computer account to this kerberos principal. If you omit
f707ba
 			the value for this option, then a principal will be set
f707ba
-			in the form of <literal>host/shortname@REALM</literal></para></listitem>
f707ba
+			based on the defaults of the membership software.</para>
f707ba
+			<para>AD makes a distinction between user and service
f707ba
+			principals. Only with user principals you can request a
f707ba
+			Kerberos Ticket-Granting-Ticket (TGT), i.e. only user
f707ba
+			principals can be used with the <command>kinit</command>
f707ba
+			command. By default the user principal and the canonical
f707ba
+			principal name of an AD computer account is
f707ba
+			shortname$@AD.DOMAIN, where shortname is
f707ba
+			the NetBIOS name which is limited to 15 characters.</para>
f707ba
+			<para>If there are applications which are not aware of
f707ba
+			the AD default and are using a hard-coded default
f707ba
+			principal the <option>--user-principal</option> can be
f707ba
+			used to make AD aware of this principal. Please note
f707ba
+			that <option>userPrincipalName</option> is a single
f707ba
+			value LDAP attribute, i.e. only one alternative user
f707ba
+			principal besides the AD default user principal can be
f707ba
+			set.</para></listitem>
f707ba
 		</varlistentry>
f707ba
 	</variablelist>
f707ba
 
f707ba
diff --git a/doc/manual/realmd.conf.xml b/doc/manual/realmd.conf.xml
f707ba
index f0b0879..a26a60c 100644
f707ba
--- a/doc/manual/realmd.conf.xml
f707ba
+++ b/doc/manual/realmd.conf.xml
f707ba
@@ -365,12 +365,17 @@ computer-name = SERVER01
f707ba
 	</listitem>
f707ba
 	</varlistentry>
f707ba
 	<varlistentry>
f707ba
-	<term><option>user-prinicpal</option></term>
f707ba
+	<term><option>user-principal</option></term>
f707ba
 	<listitem>
f707ba
-		<para>Set the <option>user-prinicpal</option> to yes
f707ba
-		to create <option>userPrincipalName</option> attributes for the
f707ba
-		computer account in the realm, in the form
f707ba
-		host/computer@REALM</para>
f707ba
+		<para>Set the <option>user-principal</option> to yes
f707ba
+		to create <option>userPrincipalName</option> attribute for the
f707ba
+		computer accounts in the realm. The exact value depends on the
f707ba
+		defaults of the used membership software. To have full control
f707ba
+		over the value please use the
f707ba
+		<option>--user-principal</option> option of the
f707ba
+		<command>realm</command> command, see
f707ba
+		<citerefentry><refentrytitle>realm</refentrytitle>
f707ba
+		<manvolnum>8</manvolnum></citerefentry> for details.</para>
f707ba
 
f707ba
 		<informalexample>
f707ba
 <programlisting language="js">
f707ba
-- 
f707ba
2.21.0
f707ba