aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Labastie <pierre.labastie@neuf.fr>2023-09-17 09:31:57 +0200
committerPierre Labastie <pierre.labastie@neuf.fr>2023-09-17 09:41:42 +0200
commitb39f283e3d5de90f3e1e12bda88c3f5f49be2c5e (patch)
treef1e280f8949c12f8ce3e24e9aadaf60a7925e0dd
parenta6c57debccce241cc455431cf5220054581d3c3d (diff)
Add password settings for krb5
This is a workaround for instructions that would wait forever for a password (or timeout) in krb5. But it sets very simple passwords, that should be changed afterwards.
-rw-r--r--BLFS/xsl/process-replaceable.xsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/BLFS/xsl/process-replaceable.xsl b/BLFS/xsl/process-replaceable.xsl
index ca61b601a6..ac4807447e 100644
--- a/BLFS/xsl/process-replaceable.xsl
+++ b/BLFS/xsl/process-replaceable.xsl
@@ -112,6 +112,9 @@
<!-- for MIT-Kerberos config file -->
<xsl:when test="string()='&lt;EXAMPLE.ORG&gt;'">
<xsl:copy-of select="$DOMAINNAME"/>
+ <xsl:if test="contains(preceding-sibling::text()[1],'kdb5_util')">
+ <xsl:text> -P rtpw </xsl:text>
+ </xsl:if>
</xsl:when>
<xsl:when test="string()='&lt;example.org&gt;'">
<xsl:copy-of select="$domainname"/>
@@ -122,6 +125,15 @@
<!-- in this case, even root can be used -->
<xsl:when test="string()='&lt;loginname&gt;'">
<xsl:text>$USER</xsl:text>
+ <xsl:if test="contains(preceding-sibling::text()[1],'-policy')">
+ <xsl:text> -pw mypw</xsl:text>
+ </xsl:if>
+ <xsl:if test="contains(preceding-sibling::text()[1],'kinit')">
+ <xsl:text> &lt;&lt; PASS_EOF
+mypw
+PASS_EOF
+</xsl:text>
+ </xsl:if>
</xsl:when>
<!-- for xorg environment. Note that libreoffice too uses &lt;PREFIX&gt; -->
<xsl:when test="string()='&lt;PREFIX&gt;' and