Changeset 7cae14c


Ignore:
Timestamp:
07/29/2013 12:45:52 AM (11 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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:
2054004
Parents:
ec837b8
Message:

Update to samba-4.0.7

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    rec837b8 r7cae14c  
    450450<!ENTITY rpcbind-version              "0.2.0">
    451451<!ENTITY rsync-version                "3.0.9">
    452 <!ENTITY samba-version                "3.6.12">
     452<!ENTITY samba-version                "4.0.7">
    453453<!ENTITY wget-version                 "1.14">
    454454<!ENTITY wireless-tools-version       "29">
  • introduction/welcome/changelog.xml

    rec837b8 r7cae14c  
    4848      <itemizedlist>
    4949        <listitem>
     50          <para>[bdubbs] - Update to samba-4.0.7.</para>
     51        </listitem>
     52        <listitem>
    5053          <para>[krejzi] - Updated GNOME Core packages to latest ones.</para>
    5154        </listitem>
  • networking/netprogs/samba.xml

    rec837b8 r7cae14c  
    77  <!ENTITY samba-download-http "http://ftp.samba.org/pub/samba/stable/samba-&samba-version;.tar.gz">
    88  <!ENTITY samba-download-ftp  "ftp://ftp.samba.org/pub/samba/stable/samba-&samba-version;.tar.gz">
    9   <!ENTITY samba-md5sum        "430fd21a1acd26964d3ccf366df8709a">
    10   <!ENTITY samba-size          "34 MB">
    11   <!ENTITY samba-buildsize     "535 MB (includes running the test suite)">
    12   <!ENTITY samba-time          "2.7 SBU (additionall 1.4 SBU to run the test suite)">
     9  <!ENTITY samba-md5sum        "d887c1383654fc60b7bb1b74d273a826">
     10  <!ENTITY samba-size          "21 MB">
     11  <!ENTITY samba-buildsize     "479 MB (up to 900MB additional for all tests)">
     12  <!ENTITY samba-time          "8.4 SBU (up to 110 SBU to run all tests)">
    1313]>
    1414
     
    3232    <para>The <application>Samba</application> package provides file and print
    3333    services to SMB/CIFS clients and Windows networking to Linux clients.
    34     <application>Samba</application> can also be configured as a Windows NT
    35     4.0 Domain Controller replacement (with caveats working with NT PDC's and
    36     BDC's), a file/print server acting as a member of a Windows NT 4.0 or
     34    <application>Samba</application> can also be configured as a Windows Domain
     35    Controller replacement, a file/print server acting as a member of a Windows
    3736    Active Directory domain and a NetBIOS (rfc1001/1002) nameserver (which
    38     amongst other things provides LAN browsing support).</para>
    39 
    40     &lfs72_checked;
     37    among other things provides LAN browsing support).</para>
     38
     39    &lfs73_checked;
    4140
    4241    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    6261    </itemizedlist>
    6362
    64     <!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
    65     <itemizedlist spacing="compact">
    66       <listitem>
    67         <para>Required patch: <ulink
    68         url="http://us3.samba.org/samba/patches/patches-&samba-version;/spoolss.diff"/></para>
    69       </listitem>
    70     </itemizedlist> -->
    71 
    7263    <bridgehead renderas="sect3">Samba Dependencies</bridgehead>
    7364
    7465    <bridgehead renderas="sect4">Required</bridgehead>
    75     <para role="required"><xref linkend="libtirpc"/></para>
     66    <para role="required">
     67      <xref linkend="libtirpc"/>
     68    </para>
    7669
    7770    <bridgehead renderas="sect4">Optional</bridgehead>
    78     <para role="optional"><xref linkend="popt"/>,
    79     <xref linkend="linux-pam"/>,
    80     <xref linkend="cups"/>,
    81     <xref linkend="openldap"/>,
    82     <xref linkend="gamin"/>,
    83     <xref linkend="acl"/>,
    84     <xref linkend="xfsprogs"/>,
    85     <xref linkend="mitkrb"/>,
    86     <xref linkend="python2"/> (used only in parts of the test suite),
    87     <ulink url="http://tdb.samba.org/">tdb</ulink>,
    88     <ulink url="http://ctdb.samba.org/">ctdb</ulink>,
    89     <xref linkend="libcap2"/>,
    90     <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>,
    91     <xref linkend="avahi"/>,
    92     <ulink url="http://www.openafs.org/">OpenAFS</ulink>,
    93     and <ulink url="http://valgrind.org/">Valgrind</ulink> (optionally
    94     used by the test suite)</para>
    95 
    96     <para>You will need to install one of the kerberos packages if you plan
    97     on using your system to join a Windows NT domain.</para>
    98 
    99     <!-- <bridgehead renderas="sect4">Optional for Samba4 Support</bridgehead>
    100     <para role="optional"><xref linkend="gnutls"/> (recommended),
    101     <xref linkend="python2"/>, and
    102     <xref linkend="sqlite"/></para> -->
     71    <para role="optional">
     72      <xref linkend="popt"/>,
     73      <xref linkend="linux-pam"/>,
     74      <xref linkend="cups"/>,
     75      <xref linkend="openldap"/>,
     76      <xref linkend="gamin"/>,
     77      <xref linkend="acl"/>,
     78      <xref linkend="xfsprogs"/>,
     79      <xref linkend="mitkrb"/>,
     80      <xref linkend="python2"/> (used only in parts of the test suite),
     81      <xref linkend="libxslt"/> (used only for documentation),
     82      <ulink url="http://tdb.samba.org/">tdb</ulink>,
     83      <ulink url="http://ctdb.samba.org/">ctdb</ulink>,
     84      <xref linkend="libcap2"/>,
     85      <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>,
     86      <xref linkend="avahi"/>,
     87      <ulink url="http://www.openafs.org/">OpenAFS</ulink>, and
     88      <ulink url="http://valgrind.org/">Valgrind</ulink> (optionally
     89        used by the test suite)</para>
    10390
    10491    <para condition="html" role="usernotes">User Notes:
     
    11299    <note>
    113100      <para>If you wish to run the test suite after the binaries are built,
    114       you must add the <option>--enable-socket-wrapper</option> parameter to
     101      you must add the <option>--enable-socket-wrapper</option>
     102      and <option>--enable-selftest</option> parameters to
    115103      the <command>configure</command> script below. You may want to run
    116104      <command>configure</command> with the <option>--help</option> parameter
     
    122110    commands:</para>
    123111
    124 <screen><userinput>cd source3 &amp;&amp;
    125 
    126 sed -i -e "s/python2.6 python2.5/python2.7 &amp;/" \
    127        -e "s/python2.6-config python2.5-config/python2.7-config &amp;/" \
    128           configure &amp;&amp;
     112<screen><userinput>sed -i -e "/dmapi_lib/s/$/ldflags='-ltirpc',/" source3/wscript_build &amp;&amp;
    129113
    130114./configure                            \
     
    135119    --with-pammodulesdir=/lib/security \
    136120    --with-fhs                         \
    137     --enable-nss-wrapper               \
    138     --enable-socket-wrapper            &amp;&amp;
    139 sed -i "s/-ldl/&amp; -ltirpc -lpthread/" Makefile &amp;&amp;
     121    --enable-nss-wrapper               &amp;&amp;
     122
    140123make</userinput></screen>
    141124
    142     <para>To test the results, issue: <command>make test</command>. If you have
    143     <application>Linux-PAM</application> installed and built the PAM library
    144     modules, you can perform a dlopen test by issuing:
    145     <command>make test_pam_modules</command>.</para>
    146 
    147     <!-- <para>This program dose not come with a functional test suite.</para> -->
     125    <para>To test the results, as the <systemitem
     126    class="username">root</systemitem> user,issue: <command>make
     127    quicktest</command> (about 8 SBU).  There are other targets (test,
     128    subunit-test) available, but take a very long (over 100 SBU) time.</para>
    148129
    149130    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     
    151132<screen role="root"><userinput>make install &amp;&amp;
    152133
    153 install -v -m644 pkgconfig/*.pc /usr/lib/pkgconfig        &amp;&amp;
    154 install -v -m755 ../nsswitch/libnss_win{s,bind}.so /lib   &amp;&amp;
    155 ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2      &amp;&amp;
    156 ln -v -sf libnss_wins.so    /lib/libnss_wins.so.2         &amp;&amp;
    157 
    158 install -v -m644 ../examples/smb.conf.default /etc/samba  &amp;&amp;
    159 
    160 if [ -d /etc/openldap/schema ]; then
    161     install -v -m644    ../examples/LDAP/README              \
    162                         /etc/openldap/schema/README.LDAP     &amp;&amp;
    163     install -v -m644    ../examples/LDAP/samba*              \
    164                         /etc/openldap/schema                 &amp;&amp;
    165     install -v -m755    ../examples/LDAP/{convert*,get*,ol*} \
    166                         /etc/openldap/schema                 &amp;&amp;
    167 fi &amp;&amp;
     134mv -v /usr/lib/libnss_win{s,bind}.so*   /lib                       &amp;&amp;
     135ln -v -sf ../../lib/libnss_winbind.so.2 /usr/lib/libnss_winbind.so &amp;&amp;
     136ln -v -sf ../../lib/libnss_wins.so.2    /usr/lib/libnss_wins.so    &amp;&amp;
     137
     138install -v -m644 ../examples/smb.conf.default /etc/samba &amp;&amp;
     139
     140mkdir -pv /etc/openldap/schema                        &amp;&amp;
     141
     142install -v -m644    examples/LDAP/README              \
     143                    /etc/openldap/schema/README.LDAP  &amp;&amp;
     144
     145install -v -m644    examples/LDAP/samba*              \
     146                    /etc/openldap/schema              &amp;&amp;
     147
     148install -v -m755    examples/LDAP/{convert*,get*,ol*} \
     149                    /etc/openldap/schema              &amp;&amp;
    168150
    169151install -v -m755 -d /usr/share/doc/samba-&samba-version; &amp;&amp;
    170 install -v -m644    ../docs/*.pdf \
     152
     153install -v -m644    lib/ntdb/doc/design.pdf \
    171154                    /usr/share/doc/samba-&samba-version; &amp;&amp;
     155
    172156ln -v -s ../../samba/swat  /usr/share/doc/samba-&samba-version;</userinput></screen>
     157
     158  <para>To create the html documents needed for <command>swat</command>
     159  (<xref linkend='libxslt'/> required), do the following:</para>
     160
     161<screen><userinput>cd docs-xml &amp;&amp;
     162autoreconf  &amp;&amp;
     163./configure &amp;&amp;
     164make htmlman</userinput></screen>
     165
     166    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     167
     168<screen role="root"><userinput>mkdir -pv                          /usr/share/samba/swat/help/manpages &amp;&amp;
     169cp output/htmldocs/manpages/*.html /usr/share/samba/swat/help/manpages</userinput></screen>
    173170
    174171  </sect2>
     
    177174    <title>Command Explanations</title>
    178175
    179     <!-- <para><option>-enable-merged-build</option>: Use this parameter to build
    180     the (alpha) Samba4 components (GnuTLS is recommended).</para> -->
    181 
    182     <para><command>sed -i -e "s/python2.6 ...</command>: Make Samba checking
    183     for newer Python versions too</para>
     176    <para><command>sed ... source3/wscript_build</command>:
     177    This command enables the build to complete when using libtirpc instead of
     178    the deprecated glibc rpc functions.</para>
    184179
    185180    <para><parameter>--sysconfdir=/etc</parameter>: Sets the configuration
     
    197192    library.</para>
    198193
    199     <para><parameter>--enable-socket-wrapper</parameter>: This options is
    200     required to run the test suite.</para>
    201 
    202     <para><command>sed -i "s/-ldl/&amp; -ltirpc -lpthread/" Makefile</command>:
    203     This command enables the build to complete when using libtirpc instead of
    204     the deprecated GLibC rpc functions.</para>
    205 
    206     <para><command>cp pkgconfig/wbclient.pc /usr/lib/pkgconfig</command>:
    207     Install a file omitted by the install procedure.</para>
    208 
    209     <para><command>install -v -m755 nsswitch/libnss_win{s,bind}.so /lib</command>:
    210     The nss libraries are not installed by default. If you intend to use
    211     winbindd for Windows NT domain authentication, and/or WINS name resolution,
    212     you need these libraries.</para>
    213 
    214     <para><command>ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2</command>
    215     and <command>ln -v -sf libnss_wins.so /lib/libnss_wins.so.2</command>:
    216     These symlinks are required by <application>Glibc</application> to use the
    217     NSS libraries.</para>
    218 
    219     <para><command>if [ -d /etc/openldap/schema ]; then ...; fi</command>:
    220     These commands are used to see if you have an OpenLDAP installation, and if
    221     so, they copy sample Samba schemas to the OpenLDAP
     194    <para><parameter>--enable-socket-wrapper</parameter> and
     195    <parameter>--enable-selftest</parameter>: These options are required to run
     196    the test suite.</para>
     197
     198    <para><command>mv -v /usr/lib/libnss_win{s,bind}.so* /lib</command>:
     199    The nss libraries are installed in /usr/lib by default. Move them to
     200    /lib.</para>
     201
     202    <para><command>ln -v -sf ../../lib/libnss_winbind.so.2 /usr/lib/libnss_winbind.so</command>
     203    and <command>ln -v -sf ../../lib/libnss_wins.so.2    /usr/lib/libnss_wins.so</command>:
     204    These symlinks are required when applicates build against these libraries.</para>
     205
     206    <para><command>install -v -m644 examples/LDAP/* /etc/openldap/schema</command>:
     207    These commands are used to copy sample Samba schemas to the OpenLDAP
    222208    <filename class='directory'>schema</filename> directory.</para>
    223209
     
    399385
    400386        <para>More complex scenarios involving domain control or membership are
    401         possible if the right flags are passed to the ./configure script when
    402         the package is built. Such setups are advanced topics and cannot be
    403         adequately covered in BLFS. Many complete books have been written on
    404         these topics alone. It should be noted, however, that a
    405         <application>Samba</application> BDC cannot be used as a fallback
    406         for a Windows PDC, and conversely, a Windows BDC cannot be used as a
    407         fallback for a <application>Samba</application> PDC. Also in some
    408         domain membership scenarios, the <command>winbindd</command> daemon and
    409         the corresponding bootscript are needed.</para>
     387        possible.  Such setups are advanced topics and cannot be adequately
     388        covered in BLFS. Many complete books have been written on these topics
     389        alone.  Note that in some domain membership scenarios, the
     390        <command>winbindd</command> daemon and the corresponding bootscript are
     391        needed.</para>
    410392
    411393        <para>There is quite a bit of documentation available which covers many
     
    417399          <listitem>
    418400            <para>Using Samba, 2nd Edition; a popular book published by O'Reilly
    419             <ulink url="file:///usr/share/samba/swat/using_samba/toc.html"/></para>
     401            <ulink url="http://www.samba.org/samba/docs/using_samba/toc.html"/></para>
    420402          </listitem>
    421403          <listitem>
    422404            <para>The Official Samba HOWTO and Reference Guide <ulink
    423             url="file:///usr/share/samba/swat/help/Samba-HOWTO-Collection/index.html"/>
     405            url="http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/"/>
    424406            </para>
    425407          </listitem>
    426408          <listitem>
    427409            <para>Samba-3 by Example
    428             <ulink url="file:///usr/share/samba/swat/help/Samba-Guide/index.html"/>
     410            <ulink url="http://www.samba.org/samba/docs/man/Samba-Guide/"/>
    429411            </para>
    430412          </listitem>
    431413          <listitem>
    432414            <para>The Samba-3 man Pages
    433             <ulink url="file:///usr/share/samba/swat/help/samba.7.html"/></para>
     415            <ulink url="file:///usr/share/samba/swat/help/manpages/samba.7.html"/></para>
    434416          </listitem>
    435417        </itemizedlist>
     
    496478        <primary sortas="g-configuring-SWAT">Configuring SWAT</primary>
    497479      </indexterm>
    498 <!--
    499       <sect4>
    500         <title>Setting up SWAT using inetd</title>
    501 
    502         <indexterm zone="samba samba-swat-config">
    503           <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
    504         </indexterm>
    505 
    506         <indexterm zone="samba samba-swat-config">
    507           <primary sortas="e-etc-services">/etc/services</primary>
    508         </indexterm>
    509 
    510         <warning>
    511           <para>BLFS does not recommend using these procedures because of the
    512           security risk involved. However, in a home network environment and
    513           disclosure of the <systemitem class='username'>root</systemitem>
    514           password is an acceptable risk, the following
    515           instructions are provided for your convenience.</para>
    516         </warning>
    517 
    518         <para>First you must add an entry to <filename>/etc/services</filename>
    519         and modify the <command>inetd</command> configuration. Add this entry
    520         with the following command issued as the <systemitem
    521         class="username">root</systemitem> user:</para>
    522 
    523 <screen role="root"><userinput>echo "swat            905/tcp" &gt;&gt; /etc/services</userinput></screen>
    524 
    525         <para>Now add this entry to the <filename>/etc/inetd.conf</filename>
    526         file, again as the <systemitem class="username">root</systemitem>
    527         user:</para>
    528 
    529 <screen role="root"><userinput>echo "swat stream tcp nowait.5 root /usr/sbin/swat swat &gt;&gt; /etc/inetd.conf</userinput></screen>
    530 
    531         <para>Issue a <command>killall -HUP inetd</command> to reread the
    532         changed <filename>inetd.conf</filename> file.</para>
    533 
    534         <para>SWAT can be launched by pointing your web browser to
    535         http://localhost:905.</para>
    536 
    537       </sect4>
    538 -->
     480
    539481      <sect4>
    540482        <title>Setting up SWAT using xinetd</title>
     
    655597
    656598      <seglistitem>
    657         <seg>eventlogadm, findsmb, ldbadd, ldbdel, ldbedit,
    658         ldbmodify, ldbrename, ldbsearch, net, nmbd,
    659         nmblookup, ntlm_auth, pdbedit, profiles, rpcclient, sharesec, smbcacls,
    660         smbclient, smbcontrol, smbcquotas, smbd, smbget, smbpasswd, smbspool,
    661         smbstatus, smbtar, smbtree, swat, testparm, wbinfo,
    662         winbindd, and (if not using system TDB) tdbbackup, tdbdump, and
    663         tdbtool</seg>
     599
     600        <seg>cifsdd, dbwrap_tool, eventlogadm, gentest, ldbadd, ldbdel,
     601        ldbedit, ldbmodify, ldbrename, ldbsearch, locktest, masktest, ndrdump,
     602        net, nmbd, nmblookup, nmblookup4, ntlm_auth, oLschema2ldif, pdbedit,
     603        pidl, profiles, regdiff, regpatch, regshell, regtree, rpcclient, samba,
     604        samba_dnsupdate samba_kcc, samba_spnupdate, samba-tool,
     605        samba_upgradedns, sharesec, smbcacls, smbclient, smbclient4,
     606        smbcontrol, smbcquotas, smbd, smbget, smbpasswd, smbspool, smbstatus,
     607        smbta-util, smbtar, smbtree, smbtorture, swat, testparm, tdbbackup,
     608        tdbdump, tdbrestore, and tdbtool, winbindd, and wbinfo</seg>
     609
    664610        <seg>libnss_winbind.so, libnss_wins.so, libnetapi.so, libsmbclient.so,
    665         libsmbsharemodes.so, libtalloc.so, libwbclient.so, the pam_winbind.so
     611        libsmbsharemodes.so, libwbclient.so, the pam_winbind.so
    666612        and pam_smbpass.so PAM libraries, and assorted character set,
    667613        filesystem and support modules.</seg>
    668         <seg>/etc/samba, /usr/lib/samba, /usr/share/doc/samba-&samba-version;,
    669         /usr/share/samba, /var/lib/samba, /var/log/samba (if configured), and
    670         /var/nmbd</seg>
     614       
     615        <seg>/etc/samba, /usr/include/samba-4.0, /usr/lib/samba,
     616        /usr/share/samba, /var/cache/samba, /var/lib/samba,
     617        /var/log/samba, /var/lock/samba, and /var/run/samba</seg>
     618
    671619      </seglistitem>
    672620    </segmentedlist>
     
    689637      </varlistentry>
    690638
    691       <varlistentry id="findsmb">
    692         <term><command>findsmb</command></term>
    693         <listitem>
    694           <para>lists information about machines that respond to
    695           SMB name queries on a subnet.</para>
    696           <indexterm zone="samba findsmb">
    697             <primary sortas="b-findsmb">findsmb</primary>
    698           </indexterm>
    699         </listitem>
    700       </varlistentry>
    701 
    702639      <varlistentry id="ldbadd">
    703640        <term><command>ldbadd</command></term>
Note: See TracChangeset for help on using the changeset viewer.