Nimbin[12]?Mirrors & Forks / jhalfs / commits / 816fa9f

jhalfs git · trunk

jhalfs LFS build automation (mirror)

lfs mirror bash · first commit 2005-09-11 · last commit 2024-02-13 (2 years ago) · synced 3 days ago · upstream: git.linuxfromscratch.org/jhalfs

Python 78.4% Shell 19.8% Makefile 1.8%
git clone https://git.christianimmanuel.de/mirrors-forks/jhalfs.gitwget https://git.christianimmanuel.de/mirrors-forks/jhalfs/archive/jhalfs.tar.gz

Fix automatic user password in mit-kerberos

Pierre Labastie · 2023-10-31 17:59 · 816fa9f5cea53092ae9441ac8f3cc57a45e8ff8f

There are two problems:
- "mypw" is in a dictionary of forbidden passwords
- "-pw" cannot be after the login name when running "addprinc"
change automatic password to "lupw"
change order of replacement of "loginname"
 BLFS/xsl/process-replaceable.xsl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/BLFS/xsl/process-replaceable.xsl b/BLFS/xsl/process-replaceable.xsl
index ac48074..194feac 100644
--- a/BLFS/xsl/process-replaceable.xsl
+++ b/BLFS/xsl/process-replaceable.xsl
@@ -124,13 +124,13 @@
       </xsl:when>
 <!-- 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:text>-pw lupw </xsl:text>
         </xsl:if>
+        <xsl:text>$USER</xsl:text>
         <xsl:if test="contains(preceding-sibling::text()[1],'kinit')">
           <xsl:text> &lt;&lt; PASS_EOF
-mypw
+lupw
 PASS_EOF
 </xsl:text>
         </xsl:if>