Changeset 8b1b2dc7


Ignore:
Timestamp:
07/24/2005 10:02:41 PM (19 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
b26339be
Parents:
06d301f
Message:

Updated to CrackLib-2.8.3

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4768 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    r06d301f r8b1b2dc7  
    33<!ENTITY year         "2005">
    44<!ENTITY version      "svn-&year;&month;&day;">
    5 <!ENTITY releasedate  "July &day;rd, &year;">
     5<!ENTITY releasedate  "July &day;th, &year;">
    66<!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
    77<!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
     
    3131<!-- Chapter 4 -->
    3232<!ENTITY openssl-version              "0.9.7g">
    33 <!ENTITY cracklib-version             "2.7">
     33<!ENTITY cracklib-version             "2.8.3">
    3434<!ENTITY Linux_PAM-version            "0.78">
    3535<!ENTITY shadow-version               "4.0.9">
  • introduction/welcome/changelog.xml

    r06d301f r8b1b2dc7  
    2525  <itemizedlist>
    2626   
     27    <listitem>
     28      <para>July 24th 2005 [randy]: Updated to CrackLib-2.8.3.</para>
     29    </listitem>
     30
    2731    <listitem>
    2832      <para>July 23rd 2005 [djensen]: Added security patch to Mpg123.</para>
  • postlfs/security/cracklib.xml

    r06d301f r8b1b2dc7  
    55  %general-entities;
    66
    7   <!ENTITY cracklib-download-http "http://www.crypticide.com/users/alecm/security/cracklib,&cracklib-version;.tar.gz">
    8   <!ENTITY cracklib-download-ftp "ftp://ftp.cerias.purdue.edu/pub/tools/unix/libs/cracklib/cracklib.&cracklib-version;.tar.gz">
    9   <!ENTITY cracklib-http-md5sum "0c84ad7413d9dd3e5c2eaa5f97d53c4a">
    10   <!ENTITY cracklib-ftp-md5sum  "7f810e310c7f2df33d1eaa2b41ab2435">
    11   <!ENTITY cracklib-size      "21 KB">
    12   <!ENTITY cracklib-buildsize "21.8 MB">
    13   <!ENTITY cracklib-time      "0.05 SBU">
    14   <!ENTITY crackdict-size     "15.6 MB">
    15   <!ENTITY alldict-size       "466 KB">
     7  <!ENTITY cracklib-download-http "http://prdownloads.sourceforge.net/cracklib/cracklib-&cracklib-version;.tar.gz">
     8  <!ENTITY cracklib-download-ftp  " ">
     9  <!ENTITY cracklib-http-md5sum   "13f82f75b892cbd0ba7cb9069e307006">
     10  <!ENTITY cracklib-size          "480 KB">
     11  <!ENTITY cracklib-buildsize     "27.6 MB">
     12  <!ENTITY cracklib-time          "0.1 SBU">
     13  <!ENTITY crackdict-download     "http://prdownloads.sourceforge.net/cracklib/cracklib-words.gz">
     14  <!ENTITY crackdict-size         "4.4 MB">
     15  <!ENTITY crackdict-md5sum       "d18e670e5df560a8745e1b4dede8f84f">
    1616]>
    1717
    18 <sect1 id="cracklib" xreflabel="cracklib-&cracklib-version;">
     18<sect1 id="cracklib" xreflabel="CrackLib-&cracklib-version;">
    1919  <?dbhtml filename="cracklib.html"?>
    2020
     
    2424  </sect1info>
    2525
    26   <title>Cracklib-&cracklib-version;</title>
     26  <title>CrackLib-&cracklib-version;</title>
    2727
    2828  <indexterm zone="cracklib">
    29     <primary sortas="a-Cracklib">Cracklib</primary>
     29    <primary sortas="a-CrackLib">CrackLib</primary>
    3030  </indexterm>
    3131
    3232  <sect2 role="package">
    33     <title>Introduction to Cracklib</title>
    34 
    35     <para>The <application>cracklib</application> package contains a
     33    <title>Introduction to CrackLib</title>
     34
     35    <para>The <application>CrackLib</application> package contains a
    3636    library used to enforce strong passwords by comparing user selected
    37     passwords to words in a chosen wordlist.</para>
     37    passwords to words in chosen word lists.</para>
    3838
    3939    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    4646      </listitem>
    4747      <listitem>
    48         <para>Download MD5 sum (HTTP): &cracklib-http-md5sum;</para>
    49       </listitem>
    50       <listitem>
    51         <para>Download MD5 sum (FTP): &cracklib-ftp-md5sum;</para>
     48        <para>Download MD5 sum: &cracklib-http-md5sum;</para>
    5249      </listitem>
    5350      <listitem>
     
    6562    <itemizedlist spacing='compact'>
    6663      <listitem>
    67         <para>Required Patch: <ulink
    68         url="&patch-root;/cracklib,&cracklib-version;-blfs-1.patch"/></para>
    69       </listitem>
    70       <listitem>
    71         <para>Recommended Patch: <ulink
    72         url="&patch-root;/cracklib,&cracklib-version;-heimdal-1.patch"/></para>
     64        <para>Recommended word list (size: &crackdict-size;;
     65        md5sum: &crackdict-md5sum;): <ulink url="&crackdict-download;"/></para>
     66      </listitem>
     67      <listitem>
     68        <para>Required patch to create a library used with the Heimdal
     69        Kerberos 5 package: <ulink
     70        url="&patch-root;/cracklib-&cracklib-version;-heimdal-1.patch"/></para>
    7371      </listitem>
    7472    </itemizedlist>
    7573
    76     <para>You will also need to download a wordlist for use with
     74    <!-- <para>You will also need to download a wordlist for use with
    7775    <application>cracklib</application>. There are two wordlists
    7876    to choose from at the following location.  Use the
     
    8078    opt for the <filename>allwords</filename> word list for
    8179    lightweight machines short on RAM. You can of course choose
    82     any other word list that you have at your disposal.</para>
    83 
    84     <itemizedlist spacing='compact'>
    85       <listitem>
    86         <para>cracklib (&crackdict-size;) at <ulink
    87         url="http://www.cotse.com/tools/wordlists.htm"/></para>
    88       </listitem>
    89       <listitem>
    90         <para>allwords (&alldict-size;) at <ulink
    91         url="http://www.cotse.com/tools/wordlists.htm"/></para>
    92       </listitem>
    93     </itemizedlist>
     80    any other word list that you have at your disposal.</para> -->
    9481
    9582  </sect2>
    9683
    9784  <sect2 role="installation">
    98     <title>Installation of Cracklib</title>
    99 
    100     <para>First, as the <systemitem class="username">root</systemitem>
    101     user, install the chosen word list for
    102     <application>cracklib</application>:</para>
    103 
    104 <screen role="root"><userinput>install -v -d -m755 /usr/share/dict &amp;&amp;
    105 install -v -m644 ../<replaceable>[wordlist]</replaceable> /usr/share/dict &amp;&amp;
    106 ln -v -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words &amp;&amp;
    107 echo $(hostname) >> /usr/share/dict/extra.words</userinput></screen>
    108 
    109     <para>The wordlist is linked to <filename>/usr/share/dict/words</filename>
    110     as historically, <filename>words</filename> is the primary wordlist in the
    111     <filename class="directory">/usr/share/dict</filename> directory.
    112     Additionally, the value of <command>hostname</command> is echoed to a file
    113     called <filename>extra.words</filename>. This extra file is intended to be
     85    <title>Installation of CrackLib</title>
     86
     87    <para>If desired, apply the <application>Heimdal</application> patch
     88    (note that with this patch the original library is not affected; this patch
     89    only creates an additional library used by the
     90    <application>Heimdal</application> password-checking routines):</para>
     91
     92<screen><userinput>patch -Np1 -i ../cracklib-&cracklib-version;-heimdal-1.patch</userinput></screen>
     93
     94    <para>Install <application>CrackLib</application> by running the following
     95    commands:</para>
     96
     97<screen><userinput>./configure --prefix=/usr --datadir=/lib &amp;&amp;
     98make</userinput></screen>
     99
     100    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     101
     102<screen role="root"><userinput>make install &amp;&amp;
     103mv -v /usr/lib/libcrack.so.2* /lib &amp;&amp;
     104ln -v -sf ../../lib/libcrack.so.2.8.0 /usr/lib/libcrack.so &amp;&amp;
     105install -v -m644 -D ../cracklib-words.gz \
     106    /usr/share/dict/cracklib-words.gz &amp;&amp;
     107gunzip -v /usr/share/dict/cracklib-words.gz &amp;&amp;
     108ln -v -s cracklib-words /usr/share/dict/words &amp;&amp;
     109echo $(hostname) >>/usr/share/dict/cracklib-extra-words &amp;&amp;
     110create-cracklib-dict /usr/share/dict/cracklib-words \
     111                     /usr/share/dict/cracklib-extra-words</userinput></screen>
     112
     113    <para>If desired, check the proper operation of the library as an
     114    unprivileged user using the tests included with the package:</para>
     115
     116<screen><userinput>make test</userinput></screen>
     117
     118  </sect2>
     119
     120  <sect2 role="commands">
     121    <title>Command Explanations</title>
     122
     123    <para><parameter>--datadir=/lib</parameter>: This parameter forces the
     124    installation of the <application>CrackLib</application> dictionary to the
     125    <filename class='directory'>/lib</filename> hierarchy.</para>
     126
     127    <para><command>mv -v /usr/lib/libcrack.so.2* /lib</command> and
     128    <command>ln -v -sf ../../lib/libcrack.so.2.8.0 ...</command>: These two
     129    commands move the <filename class='libraryfile'>libcrack.so.2.8.0</filename>
     130    library and associated symlink from
     131    <filename class='directory'>/usr/lib</filename> to
     132    <filename class='directory'>/lib</filename>, then recreates the
     133    <filename class='symlink'>/usr/lib/libcrack.so</filename> symlink to point
     134    to the relocated file.</para>
     135
     136    <para><command>install -v -m644 -D ...</command>: This command creates the
     137    <filename class='directory'>/usr/share/dict</filename> directory (if it
     138    doesn't already exist) and installs the compressed word list there.</para>
     139
     140    <para><command>ln -v -s cracklib-words /usr/share/dict/words</command>: The
     141    word list is linked to <filename>/usr/share/dict/words</filename> as
     142    historically, <filename>words</filename> is the primary word list in the
     143    <filename class="directory">/usr/share/dict</filename> directory. Omit this
     144    command if you already have a <filename>/usr/share/dict/words</filename>
     145    file installed on your system.</para>
     146
     147    <para><command>echo $(hostname) >>...</command>: The value of
     148    <command>hostname</command> is echoed to a file called
     149    <filename>cracklib-extra-words</filename>. This extra file is intended to be
    114150    a site specific list which includes easy to guess passwords such as company
    115151    or department names, user's names, product names, computer names, domain
    116152    names, etc.</para>
    117153
    118     <para>Now apply the BLFS patch:</para>
    119 
    120 <screen><userinput>patch -Np1 -i ../cracklib,&cracklib-version;-blfs-1.patch</userinput></screen>
    121 
    122     <para>If necessary, apply the <application>Heimdal</application>
    123     patch:</para>
    124 
    125 <screen><userinput>cp -R cracklib cracklib_krb5 &amp;&amp;
    126 patch -Np1 -i ../cracklib,&cracklib-version;-heimdal-1.patch</userinput></screen>
    127 
    128     <para>Finally, as the <systemitem class="username">root</systemitem>
    129     user, build and install the package:</para>
    130 
    131 <screen role="root"><userinput>make install &amp;&amp;
    132 rm -v /lib/libcrack.so &amp;&amp;
    133 ln -v -sf ../../lib/libcrack.so.2.7 /usr/lib/libcrack.so</userinput></screen>
    134 
    135   </sect2>
    136 
    137   <sect2 role="commands">
    138     <title>Command Explanations</title>
    139 
    140     <para><command>rm -v /lib/libcrack.so; ln -v -sf ...
    141     /usr/lib/libcrack.so</command>: These two commands move the
    142     <filename class='symlink'>libcrack.so</filename>
    143     symlink from <filename class='directory'>/lib</filename> to
    144     <filename class='directory'>/usr/lib</filename>.</para>
     154    <para><command>create-cracklib-dict ...</command>: This command creates the
     155    <application>CrackLib</application> dictionary from the word lists.</para>
    145156
    146157  </sect2>
     
    155166
    156167      <seglistitem>
    157         <seg>create-cracklib-dict, mkdict, and packer</seg>
    158         <seg>libcrack.so and optionally, libcrack_krb5.so</seg>
    159         <seg>/usr/share/dict</seg>
     168        <seg>cracklib-check, cracklib-format, cracklib-packer,
     169        cracklib-unpacker and create-cracklib-dict</seg>
     170        <seg>libcrack.[so,a] and optionally, libcrack_heimdal.[so,a]</seg>
     171        <seg>/lib/cracklib and /usr/share/dict</seg>
    160172      </seglistitem>
    161173    </segmentedlist>
     
    166178      <?dbhtml list-presentation="table"?>
    167179
    168       <varlistentry id="libcrack">
    169         <term><filename class='libraryfile'>libcrack.so</filename></term>
     180      <varlistentry id="create-cracklib-dict">
     181        <term><filename>create-cracklib-dict</filename></term>
    170182        <listitem>
    171           <para>provide a fast dictionary lookup method for strong
    172           password enforcement.</para>
    173           <indexterm zone="cracklib libcrack">
    174             <primary sortas="c-libcrack">libcrack.so</primary>
     183          <para>is used to create the <application>CrackLib</application>
     184          dictionary from the given word list(s).</para>
     185          <indexterm zone="cracklib create-cracklib-dict">
     186            <primary sortas="b-create-cracklib-dict">create-cracklib-dict</primary>
    175187          </indexterm>
    176188        </listitem>
    177189      </varlistentry>
    178190
     191      <varlistentry id="libcrack">
     192        <term><filename class='libraryfile'>libcrack.[so,a]</filename></term>
     193        <listitem>
     194          <para>provides a fast dictionary lookup method for strong
     195          password enforcement.</para>
     196          <indexterm zone="cracklib libcrack">
     197            <primary sortas="c-libcrack">libcrack.[so,a]</primary>
     198          </indexterm>
     199        </listitem>
     200      </varlistentry>
     201
    179202    </variablelist>
    180203
Note: See TracChangeset for help on using the changeset viewer.