Ignore:
Timestamp:
Mar 1, 2010, 3:05:48 PM (15 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3.x to 3.3.11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/docs/htmldocs/Samba3-ByExample/appendix.html

    r368 r411  
    1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 15. A Collection of Useful Tidbits</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="Samba-3 by Example"><link rel="up" href="RefSection.html" title="Part III. Reference Section"><link rel="prev" href="ch14.html" title="Chapter 14. Samba Support"><link rel="next" href="primer.html" title="Chapter 16. Networking Primer"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 15. A Collection of Useful Tidbits</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch14.html">Prev</a> </td><th width="60%" align="center">Part III. Reference Section</th><td width="20%" align="right"> <a accesskey="n" href="primer.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 15. A Collection of Useful Tidbits"><div class="titlepage"><div><div><h2 class="title"><a name="appendix"></a>Chapter 15. A Collection of Useful Tidbits</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="appendix.html#domjoin">Joining a Domain: Windows 200x/XP Professional</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2628013">Samba System File Location</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2628434">Starting Samba</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2628774">DNS Configuration Files</a></span></dt><dd><dl><dt><span class="sect2"><a href="appendix.html#id2628786">The Forward Zone File for the Loopback Adaptor</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2628834">The Reverse Zone File for the Loopback Adaptor</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2628974">DNS Root Server Hint File</a></span></dt></dl></dd><dt><span class="sect1"><a href="appendix.html#altldapcfg">Alternative LDAP Database Initialization</a></span></dt><dd><dl><dt><span class="sect2"><a href="appendix.html#id2629033">Initialization of the LDAP Database</a></span></dt></dl></dd><dt><span class="sect1"><a href="appendix.html#id2629619">The LDAP Account Manager</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2630616">IDEALX Management Console</a></span></dt><dt><span class="sect1"><a href="appendix.html#ch12-SUIDSGID">Effect of Setting File and Directory SUID/SGID Permissions Explained</a></span></dt><dt><span class="sect1"><a href="appendix.html#ch12dblck">Shared Data Integrity</a></span></dt><dd><dl><dt><span class="sect2"><a href="appendix.html#id2631091">Microsoft Access</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2631238">Act! Database Sharing</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2631322">Opportunistic Locking Controls</a></span></dt></dl></dd></dl></div><p>
    2         <a class="indexterm" name="id2627434"></a>
    3         <a class="indexterm" name="id2627441"></a>
     1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 15. A Collection of Useful Tidbits</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="Samba-3 by Example"><link rel="up" href="RefSection.html" title="Part III. Reference Section"><link rel="prev" href="ch14.html" title="Chapter 14. Samba Support"><link rel="next" href="primer.html" title="Chapter 16. Networking Primer"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 15. A Collection of Useful Tidbits</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch14.html">Prev</a> </td><th width="60%" align="center">Part III. Reference Section</th><td width="20%" align="right"> <a accesskey="n" href="primer.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="appendix"></a>Chapter 15. A Collection of Useful Tidbits</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="appendix.html#domjoin">Joining a Domain: Windows 200x/XP Professional</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2621928">Samba System File Location</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2622349">Starting Samba</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2622689">DNS Configuration Files</a></span></dt><dd><dl><dt><span class="sect2"><a href="appendix.html#id2622700">The Forward Zone File for the Loopback Adaptor</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2622749">The Reverse Zone File for the Loopback Adaptor</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2622889">DNS Root Server Hint File</a></span></dt></dl></dd><dt><span class="sect1"><a href="appendix.html#altldapcfg">Alternative LDAP Database Initialization</a></span></dt><dd><dl><dt><span class="sect2"><a href="appendix.html#id2622948">Initialization of the LDAP Database</a></span></dt></dl></dd><dt><span class="sect1"><a href="appendix.html#id2623534">The LDAP Account Manager</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2624531">IDEALX Management Console</a></span></dt><dt><span class="sect1"><a href="appendix.html#ch12-SUIDSGID">Effect of Setting File and Directory SUID/SGID Permissions Explained</a></span></dt><dt><span class="sect1"><a href="appendix.html#ch12dblck">Shared Data Integrity</a></span></dt><dd><dl><dt><span class="sect2"><a href="appendix.html#id2625006">Microsoft Access</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2625153">Act! Database Sharing</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2625237">Opportunistic Locking Controls</a></span></dt></dl></dd></dl></div><p>
     2        <a class="indexterm" name="id2621349"></a>
     3        <a class="indexterm" name="id2621356"></a>
    44        Information presented here is considered to be either basic or well-known material that is informative
    55        yet helpful. Over the years, I have observed an interesting behavior. There is an expectation that
     
    77        different from doing so with Windows NT4 or a Windows ADS domain. Be assured that the steps are identical,
    88        as shown in the example given below.
    9         </p><div class="sect1" title="Joining a Domain: Windows 200x/XP Professional"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="domjoin"></a>Joining a Domain: Windows 200x/XP Professional</h2></div></div></div><p>
    10         <a class="indexterm" name="id2627471"></a>
     9        </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="domjoin"></a>Joining a Domain: Windows 200x/XP Professional</h2></div></div></div><p>
     10        <a class="indexterm" name="id2621386"></a>
    1111        Microsoft Windows NT/200x/XP Professional platforms can participate in Domain Security.
    1212        This section steps through the process for making a Windows 200x/XP Professional machine a
    1313        member of a Domain Security environment. It should be noted that this process is identical
    1414        when joining a domain that is controlled by Windows NT4/200x as well as a Samba PDC.
    15         </p><div class="procedure" title="Procedure 15.1. Steps to Join a Domain"><a name="id2627485"></a><p class="title"><b>Procedure 15.1. Steps to Join a Domain</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
     15        </p><div class="procedure"><a name="id2621400"></a><p class="title"><b>Procedure 15.1. Steps to Join a Domain</b></p><ol type="1"><li><p>
    1616                Click <span class="guimenu">Start</span>.
    17                 </p></li><li class="step" title="Step 2"><p>
     17                </p></li><li><p>
    1818                Right-click <span class="guimenu">My Computer</span>, and then select <span class="guimenuitem">Properties</span>.
    19                 </p></li><li class="step" title="Step 3"><p>
     19                </p></li><li><p>
    2020                The opening panel is the same one that can be reached by clicking <span class="guimenu">System</span> on the Control Panel.
    2121                See <a class="link" href="appendix.html#swxpp001" title="Figure 15.1. The General Panel.">&#8220;The General Panel.&#8221;</a>.
    2222                </p><div class="figure"><a name="swxpp001"></a><p class="title"><b>Figure 15.1. The General Panel.</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/wxpp001.png" alt="The General Panel."></div></div></div><p><br class="figure-break">
    23                 </p></li><li class="step" title="Step 4"><p>
     23                </p></li><li><p>
    2424                Click the <span class="guimenu">Computer Name</span> tab.
    2525                This panel shows the <span class="guimenuitem">Computer Description</span>, the <span class="guimenuitem">Full computer name</span>,
     
    3030                See <a class="link" href="appendix.html#swxpp004" title="Figure 15.2. The Computer Name Panel.">&#8220;The Computer Name Panel.&#8221;</a>.
    3131                </p><div class="figure"><a name="swxpp004"></a><p class="title"><b>Figure 15.2. The Computer Name Panel.</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/wxpp004.png" alt="The Computer Name Panel."></div></div></div><p><br class="figure-break">
    32                 </p></li><li class="step" title="Step 5"><p>
     32                </p></li><li><p>
    3333                Click on <span class="guimenu">Change</span>. This panel shows that our example machine (TEMPTATION) is in a workgroup called WORKGROUP.
    3434                We join the domain called MIDEARTH. See <a class="link" href="appendix.html#swxpp006" title="Figure 15.3. The Computer Name Changes Panel">&#8220;The Computer Name Changes Panel&#8221;</a>.
    3535                </p><div class="figure"><a name="swxpp006"></a><p class="title"><b>Figure 15.3. The Computer Name Changes Panel</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/wxpp006.png" alt="The Computer Name Changes Panel"></div></div></div><p><br class="figure-break">
    36                 </p></li><li class="step" title="Step 6"><p>
     36                </p></li><li><p>
    3737                Enter the name <span class="guimenu">MIDEARTH</span> in the field below the Domain radio button.
    3838                </p><p>
    3939                This panel shows that our example machine (TEMPTATION) is set to join the domain called MIDEARTH. See <a class="link" href="appendix.html#swxpp007" title="Figure 15.4. The Computer Name Changes Panel Domain MIDEARTH">&#8220;The Computer Name Changes Panel  Domain MIDEARTH&#8221;</a>.
    4040                </p><div class="figure"><a name="swxpp007"></a><p class="title"><b>Figure 15.4. The Computer Name Changes Panel  Domain MIDEARTH</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/wxpp007.png" alt="The Computer Name Changes Panel Domain MIDEARTH"></div></div></div><p><br class="figure-break">
    41                 </p></li><li class="step" title="Step 7"><p>
     41                </p></li><li><p>
    4242                Now click the <span class="guimenu">OK</span> button. A dialog box should appear to allow you to provide the credentials (username and password)
    4343                of a domain administrative account that has the rights to add machines to the domain.
    4444                </p><p>
    45                 Enter the name <span class="quote">&#8220;<span class="quote">root</span>&#8221;</span> and the root password from your Samba-3 server. See <a class="link" href="appendix.html#swxpp008" title="Figure 15.5. Computer Name Changes User name and Password Panel">&#8220;Computer Name Changes  User name and Password Panel&#8221;</a>.
     45                Enter the name &#8220;<span class="quote">root</span>&#8221; and the root password from your Samba-3 server. See <a class="link" href="appendix.html#swxpp008" title="Figure 15.5. Computer Name Changes User name and Password Panel">&#8220;Computer Name Changes  User name and Password Panel&#8221;</a>.
    4646                </p><div class="figure"><a name="swxpp008"></a><p class="title"><b>Figure 15.5. Computer Name Changes  User name and Password Panel</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/wxpp008.png" alt="Computer Name Changes User name and Password Panel"></div></div></div><p><br class="figure-break">
    47                 </p></li><li class="step" title="Step 8"><p>
     47                </p></li><li><p>
    4848                Click <span class="guimenu">OK</span>.
    4949                </p><p>
    50                 The <span class="quote">&#8220;<span class="quote">Welcome to the MIDEARTH domain</span>&#8221;</span> dialog box should appear. At this point, the machine must be rebooted.
     50                The &#8220;<span class="quote">Welcome to the MIDEARTH domain</span>&#8221; dialog box should appear. At this point, the machine must be rebooted.
    5151                Joining the domain is now complete.
    5252                </p></li></ol></div><p>
    53         <a class="indexterm" name="id2627903"></a>
    54         <a class="indexterm" name="id2627910"></a>
     53        <a class="indexterm" name="id2621818"></a>
     54        <a class="indexterm" name="id2621825"></a>
    5555        The screen capture shown in <a class="link" href="appendix.html#swxpp007" title="Figure 15.4. The Computer Name Changes Panel Domain MIDEARTH">&#8220;The Computer Name Changes Panel  Domain MIDEARTH&#8221;</a> has a button labeled <span class="guimenu">More...</span>. This button opens a
    5656        panel in which you can set (or change) the Primary DNS suffix of the computer. This is a parameter that mainly affects members
    5757        of Microsoft Active Directory. Active Directory is heavily oriented around the DNS namespace.
    5858        </p><p>
    59         <a class="indexterm" name="id2627936"></a>
    60         <a class="indexterm" name="id2627943"></a>
     59        <a class="indexterm" name="id2621851"></a>
     60        <a class="indexterm" name="id2621858"></a>
    6161        Where NetBIOS technology uses WINS as well as UDP broadcast as key mechanisms for name resolution, Active Directory servers
    6262        register their services with the Microsoft Dynamic DNS server. Windows clients must be able to query the correct DNS server
    6363        to find the services (like which machines are domain controllers or which machines have the Netlogon service running).
    6464        </p><p>
    65         <a class="indexterm" name="id2627962"></a>
     65        <a class="indexterm" name="id2621876"></a>
    6666        The default setting of the Primary DNS suffix is the Active Directory domain name. When you change the Primary DNS suffix,
    6767        this does not affect domain membership, but it can break network browsing and the ability to resolve your computer name to
     
    7171        Where the client is a member of a Samba domain, it is preferable to leave this field blank.
    7272        </p><p>
    73         <a class="indexterm" name="id2627985"></a>
    74         According to Microsoft documentation, <span class="quote">&#8220;<span class="quote">If this computer belongs to a group with <code class="constant">Group Policy</code>
     73        <a class="indexterm" name="id2621900"></a>
     74        According to Microsoft documentation, &#8220;<span class="quote">If this computer belongs to a group with <code class="constant">Group Policy</code>
    7575        enabled on <code class="literal">Primary DNS suffice of this computer</code>, the string specified in the Group Policy is used
    7676        as the primary DNS suffix and you might need to restart your computer to view the correct setting. The local setting is
    77         used only if Group Policy is disabled or unspecified.</span>&#8221;</span>
    78         </p></div><div class="sect1" title="Samba System File Location"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2628013"></a>Samba System File Location</h2></div></div></div><p><a class="indexterm" name="id2628020"></a><a class="indexterm" name="id2628028"></a><a class="indexterm" name="id2628036"></a>
     77        used only if Group Policy is disabled or unspecified.</span>&#8221;
     78        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2621928"></a>Samba System File Location</h2></div></div></div><p><a class="indexterm" name="id2621935"></a><a class="indexterm" name="id2621943"></a><a class="indexterm" name="id2621951"></a>
    7979        One of the frustrations expressed by subscribers to the Samba mailing lists revolves around the choice of where the default Samba Team
    8080        build and installation process locates its Samba files. The location, chosen in the early 1990s, for the default installation is
     
    8484        Several UNIX vendors, and Linux vendors in particular, elected to locate the Samba files in a location other than the Samba Team
    8585        default.
    86         </p><p><a class="indexterm" name="id2628072"></a><a class="indexterm" name="id2628084"></a><a class="indexterm" name="id2628092"></a><a class="indexterm" name="id2628103"></a><a class="indexterm" name="id2628111"></a><a class="indexterm" name="id2628123"></a><a class="indexterm" name="id2628130"></a><a class="indexterm" name="id2628138"></a><a class="indexterm" name="id2628146"></a><a class="indexterm" name="id2628154"></a><a class="indexterm" name="id2628162"></a><a class="indexterm" name="id2628170"></a><a class="indexterm" name="id2628178"></a><a class="indexterm" name="id2628186"></a><a class="indexterm" name="id2628194"></a><a class="indexterm" name="id2628202"></a>
     86        </p><p><a class="indexterm" name="id2621987"></a><a class="indexterm" name="id2621999"></a><a class="indexterm" name="id2622006"></a><a class="indexterm" name="id2622018"></a><a class="indexterm" name="id2622026"></a><a class="indexterm" name="id2622037"></a><a class="indexterm" name="id2622045"></a><a class="indexterm" name="id2622053"></a><a class="indexterm" name="id2622061"></a><a class="indexterm" name="id2622069"></a><a class="indexterm" name="id2622077"></a><a class="indexterm" name="id2622084"></a><a class="indexterm" name="id2622092"></a><a class="indexterm" name="id2622100"></a><a class="indexterm" name="id2622109"></a><a class="indexterm" name="id2622116"></a>
    8787        Linux vendors, working in conjunction with the Free Standards Group (FSG), Linux Standards Base (LSB), and File Hierarchy       
    8888        System (FHS), have elected to locate the configuration files under the <code class="filename">/etc/samba</code> directory, common binary
     
    9393        <code class="filename">/usr/lib/samba</code> directory tree. The files located there include the dynamically loadable modules for the
    9494        passdb backend as well as for the VFS modules.
    95         </p><p><a class="indexterm" name="id2628271"></a><a class="indexterm" name="id2628279"></a><a class="indexterm" name="id2628287"></a>
     95        </p><p><a class="indexterm" name="id2622186"></a><a class="indexterm" name="id2622194"></a><a class="indexterm" name="id2622202"></a>
    9696        Samba creates runtime control files and generates log files. The runtime control files (tdb and dat files) are stored in
    9797        the <code class="filename">/var/lib/samba</code> directory. Log files are created in <code class="filename">/var/log/samba.</code>
     
    9999        When Samba is built and installed using the default Samba Team process, all files are located under the
    100100        <code class="filename">/usr/local/samba</code> directory tree. This makes it simple to find the files that Samba owns.
    101         </p><p><a class="indexterm" name="id2628325"></a>
     101        </p><p><a class="indexterm" name="id2622240"></a>
    102102        One way to find the Samba files that are installed on your UNIX/Linux system is to search for the location
    103103        of all files called <code class="literal">smbd</code>. Here is an example:
     
    132132        Many people have been caught by installation of Samba using the default Samba Team process when it was already installed
    133133        by the platform vendor's method. If your platform uses RPM format packages, you can check to see if Samba is installed by
    134         executing:<a class="indexterm" name="id2628398"></a>
     134        executing:<a class="indexterm" name="id2622313"></a>
    135135</p><pre class="screen">
    136136<code class="prompt">root# </code> rpm -qa | grep samba
     
    144144samba3-client-3.0.20-1
    145145samba3-cifsmount-3.0.20-1
    146         </pre><p><a class="indexterm" name="id2628421"></a>
     146        </pre><p><a class="indexterm" name="id2622336"></a>
    147147        The package names, of course, vary according to how the vendor, or the binary package builder, prepared them.
    148         </p></div><div class="sect1" title="Starting Samba"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2628434"></a>Starting Samba</h2></div></div></div><p><a class="indexterm" name="id2628441"></a>
     148        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2622349"></a>Starting Samba</h2></div></div></div><p><a class="indexterm" name="id2622356"></a>
    149149        Samba essentially consists of two or three daemons. A daemon is a UNIX application that runs in the background and provides services.
    150150        An example of a service is the Apache Web server for which the daemon is called <code class="literal">httpd</code>. In the case of Samba, there
     
    187187exit 0
    188188</pre></div></div><br class="example-break"><div class="variablelist"><dl><dt><span class="term">nmbd</span></dt><dd><p>
    189                         <a class="indexterm" name="id2628504"></a>
    190                         <a class="indexterm" name="id2628511"></a>
     189                        <a class="indexterm" name="id2622419"></a>
     190                        <a class="indexterm" name="id2622425"></a>
    191191                        This daemon handles all name registration and resolution requests. It is the primary vehicle involved
    192192                        in network browsing. It handles all UDP-based protocols. The <code class="literal">nmbd</code> daemon should
    193193                        be the first command started as part of the Samba startup process.
    194194                        </p></dd><dt><span class="term">smbd</span></dt><dd><p>
    195                         <a class="indexterm" name="id2628540"></a>
    196                         <a class="indexterm" name="id2628547"></a>
     195                        <a class="indexterm" name="id2622455"></a>
     196                        <a class="indexterm" name="id2622462"></a>
    197197                        This daemon handles all TCP/IP-based connection services for file- and print-based operations. It also
    198198                        manages local authentication. It should be started immediately following the startup of <code class="literal">nmbd</code>.
    199199                        </p></dd><dt><span class="term">winbindd</span></dt><dd><p>
    200                         <a class="indexterm" name="id2628576"></a>
    201                         <a class="indexterm" name="id2628582"></a>
     200                        <a class="indexterm" name="id2622490"></a>
     201                        <a class="indexterm" name="id2622497"></a>
    202202                        This daemon should be started when Samba is a member of a Windows NT4 or ADS domain. It is also needed when
    203203                        Samba has trust relationships with another domain. The <code class="literal">winbindd</code> daemon will check the
     
    253253        exit 1
    254254esac
    255 </pre></div></div><br class="example-break"><p><a class="indexterm" name="id2628696"></a>
     255</pre></div></div><br class="example-break"><p><a class="indexterm" name="id2622610"></a>
    256256        SUSE Linux implements individual control over each Samba daemon. A Samba control script that can be conveniently
    257257        executed from the command line is shown in <a class="link" href="appendix.html#ch12SL" title="Example 15.1. A Useful Samba Control Script for SUSE Linux">&#8220;A Useful Samba Control Script for SUSE Linux&#8221;</a>. This can be located in the directory
    258258        <code class="filename">/sbin</code> in a file called <code class="filename">samba</code>. This type of control script should be
    259259        owned by user root and group root, and set so that only root can execute it.
    260         </p><p><a class="indexterm" name="id2628731"></a>
     260        </p><p><a class="indexterm" name="id2622646"></a>
    261261        A sample startup script for a Red Hat Linux system is shown in <a class="link" href="appendix.html#ch12RHscript" title="Example 15.2. A Sample Samba Control Script for Red Hat Linux">&#8220;A Sample Samba Control Script for Red Hat Linux&#8221;</a>.
    262262        This file could be located in the directory <code class="filename">/etc/rc.d</code> and can be called
     
    265265        the Samba source code distribution tarball. The packaging files for each platform include a
    266266        startup control file.
    267         </p></div><div class="sect1" title="DNS Configuration Files"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2628774"></a>DNS Configuration Files</h2></div></div></div><p>
     267        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2622689"></a>DNS Configuration Files</h2></div></div></div><p>
    268268        The following files are common to all DNS server configurations. Rather than repeat them multiple times, they
    269269        are presented here for general reference.
    270         </p><div class="sect2" title="The Forward Zone File for the Loopback Adaptor"><div class="titlepage"><div><div><h3 class="title"><a name="id2628786"></a>The Forward Zone File for the Loopback Adaptor</h3></div></div></div><p>
     270        </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622700"></a>The Forward Zone File for the Loopback Adaptor</h3></div></div></div><p>
    271271        The forward zone file for the loopback address never changes. An example file is shown
    272272        in <a class="link" href="appendix.html#loopback" title="Example 15.3. DNS Localhost Forward Zone File: /var/lib/named/localhost.zone">&#8220;DNS Localhost Forward Zone File: /var/lib/named/localhost.zone&#8221;</a>. All traffic destined for an IP address that is hosted on a
     
    285285                IN NS           @
    286286                IN A            127.0.0.1
    287 </pre></div></div><br class="example-break"></div><div class="sect2" title="The Reverse Zone File for the Loopback Adaptor"><div class="titlepage"><div><div><h3 class="title"><a name="id2628834"></a>The Reverse Zone File for the Loopback Adaptor</h3></div></div></div><p>
     287</pre></div></div><br class="example-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622749"></a>The Reverse Zone File for the Loopback Adaptor</h3></div></div></div><p>
    288288        The reverse zone file for the loopback address as shown in <a class="link" href="appendix.html#dnsloopy" title="Example 15.4. DNS Localhost Reverse Zone File: /var/lib/named/127.0.0.zone">&#8220;DNS Localhost Reverse Zone File: /var/lib/named/127.0.0.zone&#8221;</a>
    289289        is necessary so that references to the address <code class="constant">127.0.0.1</code> can be
     
    345345M.ROOT-SERVERS.NET.      3600000      A     202.12.27.33
    346346; End of File
    347 </pre></div></div><br class="example-break"></div><div class="sect2" title="DNS Root Server Hint File"><div class="titlepage"><div><div><h3 class="title"><a name="id2628974"></a>DNS Root Server Hint File</h3></div></div></div><p>
     347</pre></div></div><br class="example-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622889"></a>DNS Root Server Hint File</h3></div></div></div><p>
    348348        The content of the root hints file as shown in <a class="link" href="appendix.html#roothint" title="Example 15.5. DNS Root Name Server Hint File: /var/lib/named/root.hint">&#8220;DNS Root Name Server Hint File: /var/lib/named/root.hint&#8221;</a>  changes slowly over time.
    349349        Periodically this file should be updated from the source shown. Because
    350350          of its size, this file is located at the end of this chapter.
    351         </p></div></div><div class="sect1" title="Alternative LDAP Database Initialization"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="altldapcfg"></a>Alternative LDAP Database Initialization</h2></div></div></div><p><a class="indexterm" name="id2629005"></a><a class="indexterm" name="id2629016"></a>
     351        </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="altldapcfg"></a>Alternative LDAP Database Initialization</h2></div></div></div><p><a class="indexterm" name="id2622920"></a><a class="indexterm" name="id2622931"></a>
    352352        The following procedure may be used as an alternative means of configuring
    353353        the initial LDAP database. Many administrators prefer to have greater control
    354354        over how system files get configured.
    355         </p><div class="sect2" title="Initialization of the LDAP Database"><div class="titlepage"><div><div><h3 class="title"><a name="id2629033"></a>Initialization of the LDAP Database</h3></div></div></div><p><a class="indexterm" name="id2629040"></a><a class="indexterm" name="id2629048"></a><a class="indexterm" name="id2629060"></a>
     355        </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622948"></a>Initialization of the LDAP Database</h3></div></div></div><p><a class="indexterm" name="id2622955"></a><a class="indexterm" name="id2622963"></a><a class="indexterm" name="id2622975"></a>
    356356        The first step to get the LDAP server ready for action is to create the LDIF file from
    357357        which the LDAP database will be preloaded. This is necessary to create the containers
     
    359359        preload the well-known Windows NT Domain Groups, as they must have the correct SID so
    360360        that they can be recognized as special NT Groups by the MS Windows clients.
    361         </p><div class="procedure" title="Procedure 15.2. LDAP Directory Pre-Load Steps"><a name="ldapinit"></a><p class="title"><b>Procedure 15.2. LDAP Directory Pre-Load Steps</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
     361        </p><div class="procedure"><a name="ldapinit"></a><p class="title"><b>Procedure 15.2. LDAP Directory Pre-Load Steps</b></p><ol type="1"><li><p>
    362362                Create a directory in which to store the files you use to generate
    363363                the LDAP LDIF file for your system. Execute the following:
     
    367367<code class="prompt">root# </code> chmod 700 /etc/openldap/SambaInit
    368368</pre><p>
    369                 </p></li><li class="step" title="Step 2"><p>
     369                </p></li><li><p>
    370370                Install the files shown in <a class="link" href="appendix.html#sbehap-ldapreconfa" title="Example 15.6. LDAP Pre-configuration Script: SMBLDAP-ldif-preconfig.sh Part A">&#8220;LDAP Pre-configuration Script: SMBLDAP-ldif-preconfig.sh  Part A&#8221;</a>, <a class="link" href="appendix.html#sbehap-ldapreconfb" title="Example 15.7. LDAP Pre-configuration Script: SMBLDAP-ldif-preconfig.sh Part B">&#8220;LDAP Pre-configuration Script: SMBLDAP-ldif-preconfig.sh  Part B&#8221;</a>,
    371371                and <a class="link" href="appendix.html#sbehap-ldapreconfc" title="Example 15.8. LDAP Pre-configuration Script: SMBLDAP-ldif-preconfig.sh Part C">&#8220;LDAP Pre-configuration Script: SMBLDAP-ldif-preconfig.sh  Part C&#8221;</a> into the directory
    372372                <code class="filename">/etc/openldap/SambaInit/SMBLDAP-ldif-preconfig.sh.</code> These three files are,
    373373                respectively, parts A, B, and C of the <code class="filename">SMBLDAP-ldif-preconfig.sh</code> file.
    374                 </p></li><li class="step" title="Step 3"><p>
     374                </p></li><li><p>
    375375                Install the files shown in <a class="link" href="appendix.html#sbehap-ldifpata" title="Example 15.9. LDIF Pattern File Used to Pre-configure LDAP Part A">&#8220;LDIF Pattern File Used to Pre-configure LDAP  Part A&#8221;</a> and <a class="link" href="appendix.html#sbehap-ldifpatb" title="Example 15.10. LDIF Pattern File Used to Pre-configure LDAP Part B">&#8220;LDIF Pattern File Used to Pre-configure LDAP  Part B&#8221;</a> into the directory
    376376                <code class="filename">/etc/openldap/SambaInit/.</code> These two files are
    377377                parts A and B, respectively, of the <code class="filename">init-ldif.pat</code> file.
    378                 </p></li><li class="step" title="Step 4"><p>
     378                </p></li><li><p>
    379379                Change to the <code class="filename">/etc/openldap/SambaInit</code> directory. Execute the following:
    380380</p><pre class="screen">
     
    416416</pre><p>
    417417                This creates a file called <code class="filename">MEGANET2.ldif</code>.
    418                 </p></li><li class="step" title="Step 5"><p>
     418                </p></li><li><p>
    419419                It is now time to preload the LDAP database with the following
    420420                command:
     
    467467entryCSN: 2003121705:57:47Z#0x000a#0#0000
    468468</pre><p>
    469                 </p></li><li class="step" title="Step 6"><p>
     469                </p></li><li><p>
    470470                Your LDAP database is ready for testing. You can now start the LDAP server
    471471                using the system tool for your Linux operating system. For SUSE Linux, you can
     
    474474<code class="prompt">root# </code> rcldap start
    475475</pre><p>
    476                 </p></li><li class="step" title="Step 7"><p>
     476                </p></li><li><p>
    477477                It is now a good idea to validate that the LDAP server is running correctly.
    478478                Execute the following:
     
    706706displayName: Domain Users
    707707description: Domain Users
    708 </pre></div></div><br class="example-break"></div><div class="sect1" title="The LDAP Account Manager"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2629619"></a>The LDAP Account Manager</h2></div></div></div><p>
    709 <a class="indexterm" name="id2629627"></a>
    710 <a class="indexterm" name="id2629634"></a>
    711 <a class="indexterm" name="id2629643"></a>
    712 <a class="indexterm" name="id2629650"></a>
    713 <a class="indexterm" name="id2629656"></a>
    714 <a class="indexterm" name="id2629663"></a>
    715 <a class="indexterm" name="id2629670"></a>
     708</pre></div></div><br class="example-break"></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2623534"></a>The LDAP Account Manager</h2></div></div></div><p>
     709<a class="indexterm" name="id2623542"></a>
     710<a class="indexterm" name="id2623549"></a>
     711<a class="indexterm" name="id2623558"></a>
     712<a class="indexterm" name="id2623564"></a>
     713<a class="indexterm" name="id2623571"></a>
     714<a class="indexterm" name="id2623578"></a>
     715<a class="indexterm" name="id2623585"></a>
    716716The LDAP Account Manager (LAM) is an application suite that has been written in PHP.
    717717LAM can be used with any Web server that has PHP4 support. It connects to the LDAP
     
    725725of 2005.
    726726</p><p>
    727 <a class="indexterm" name="id2629702"></a>
    728 <a class="indexterm" name="id2629708"></a>
    729 <a class="indexterm" name="id2629715"></a>
     727<a class="indexterm" name="id2623616"></a>
     728<a class="indexterm" name="id2623623"></a>
     729<a class="indexterm" name="id2623630"></a>
    730730Requirements:
    731 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>A web server that will work with PHP4.</p></li><li class="listitem"><p>PHP4 (available from the <a class="ulink" href="http://www.php.net/" target="_top">PHP</a> home page.)</p></li><li class="listitem"><p>OpenLDAP 2.0 or later.</p></li><li class="listitem"><p>A Web browser that supports CSS.</p></li><li class="listitem"><p>Perl.</p></li><li class="listitem"><p>The gettext package.</p></li><li class="listitem"><p>mcrypt + mhash (optional).</p></li><li class="listitem"><p>It is also a good idea to install SSL support.</p></li></ul></div><p>
     731</p><div class="itemizedlist"><ul type="disc"><li><p>A web server that will work with PHP4.</p></li><li><p>PHP4 (available from the <a class="ulink" href="http://www.php.net/" target="_top">PHP</a> home page.)</p></li><li><p>OpenLDAP 2.0 or later.</p></li><li><p>A Web browser that supports CSS.</p></li><li><p>Perl.</p></li><li><p>The gettext package.</p></li><li><p>mcrypt + mhash (optional).</p></li><li><p>It is also a good idea to install SSL support.</p></li></ul></div><p>
    732732LAM is a useful tool that provides a simple Web-based device that can be used to
    733733manage the contents of the LDAP directory to:
    734 <a class="indexterm" name="id2629776"></a>
    735 <a class="indexterm" name="id2629783"></a>
    736 <a class="indexterm" name="id2629790"></a>
    737 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Display user/group/host and Domain entries.</p></li><li class="listitem"><p>Manage entries (Add/Delete/Edit).</p></li><li class="listitem"><p>Filter and sort entries.</p></li><li class="listitem"><p>Store and use multiple operating profiles.</p></li><li class="listitem"><p>Edit organizational units (OUs).</p></li><li class="listitem"><p>Upload accounts from a file.</p></li><li class="listitem"><p>Is compatible with Samba-2.2.x and Samba-3.</p></li></ul></div><p>
     734<a class="indexterm" name="id2623691"></a>
     735<a class="indexterm" name="id2623698"></a>
     736<a class="indexterm" name="id2623705"></a>
     737</p><div class="itemizedlist"><ul type="disc"><li><p>Display user/group/host and Domain entries.</p></li><li><p>Manage entries (Add/Delete/Edit).</p></li><li><p>Filter and sort entries.</p></li><li><p>Store and use multiple operating profiles.</p></li><li><p>Edit organizational units (OUs).</p></li><li><p>Upload accounts from a file.</p></li><li><p>Is compatible with Samba-2.2.x and Samba-3.</p></li></ul></div><p>
    738738When correctly configured, LAM allows convenient management of UNIX (Posix) and Samba
    739739user, group, and windows domain member machine accounts.
    740740</p><p>
    741 <a class="indexterm" name="id2629844"></a>
    742 <a class="indexterm" name="id2629851"></a>
    743 <a class="indexterm" name="id2629858"></a>
    744 <a class="indexterm" name="id2629864"></a>
    745 The default password is <span class="quote">&#8220;<span class="quote">lam.</span>&#8221;</span> It is highly recommended that you use only
     741<a class="indexterm" name="id2623759"></a>
     742<a class="indexterm" name="id2623766"></a>
     743<a class="indexterm" name="id2623772"></a>
     744<a class="indexterm" name="id2623779"></a>
     745The default password is &#8220;<span class="quote">lam.</span>&#8221; It is highly recommended that you use only
    746746an SSL connection to your Web server for all remote operations involving LAM. If you
    747747want secure connections, you must configure your Apache Web server to permit connections
    748748to LAM using only SSL.
    749 </p><div class="procedure" title="Procedure 15.3. Apache Configuration Steps for LAM"><a name="sbehap-laminst"></a><p class="title"><b>Procedure 15.3. Apache Configuration Steps for LAM</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
     749</p><div class="procedure"><a name="sbehap-laminst"></a><p class="title"><b>Procedure 15.3. Apache Configuration Steps for LAM</b></p><ol type="1"><li><p>
    750750        Extract the LAM package by untarring it as shown here:
    751751</p><pre class="screen">
     
    756756<code class="prompt">root# </code> dpkg -i ldap-account-manager_0.4.9.all.deb
    757757</pre><p>
    758         </p></li><li class="step" title="Step 2"><p>
     758        </p></li><li><p>
    759759        Copy the extracted files to the document root directory of your Web server.
    760760        For example, on SUSE Linux Enterprise Server 9, copy to the
    761761        <code class="filename">/srv/www/htdocs</code> directory.
    762         </p></li><li class="step" title="Step 3"><p>
    763         <a class="indexterm" name="id2629944"></a>
     762        </p></li><li><p>
     763        <a class="indexterm" name="id2623859"></a>
    764764        Set file permissions using the following commands:
    765765</p><pre class="screen">
     
    770770<code class="prompt">root# </code> chmod 755 /srv/www/htdocs/lam/lib/*pl
    771771</pre><p>
    772         </p></li><li class="step" title="Step 4"><p>
    773         <a class="indexterm" name="id2629997"></a>
     772        </p></li><li><p>
     773        <a class="indexterm" name="id2623912"></a>
    774774       Using your favorite editor create the following <code class="filename">config.cfg</code>
    775775       LAM configuration file:
     
    779779<code class="prompt">root# </code> vi config.cfg
    780780</pre><p>
    781         <a class="indexterm" name="id2630038"></a>
    782         <a class="indexterm" name="id2630047"></a>
     781        <a class="indexterm" name="id2623953"></a>
     782        <a class="indexterm" name="id2623962"></a>
    783783        An example file is shown in <a class="link" href="appendix.html#lamcfg" title="Example 15.11. Example LAM Configuration File config.cfg">&#8220;Example LAM Configuration File  config.cfg&#8221;</a>.
    784784        This is the minimum configuration that must be completed. The LAM profile
    785785        file can be created using a convenient wizard that is part of the LAM
    786786        configuration suite.
    787         </p></li><li class="step" title="Step 5"><p>
     787        </p></li><li><p>
    788788        Start your Web server then, using your Web browser, connect to
    789789        <a class="ulink" href="http://localhost/lam" target="_top">LAM</a> URL. Click on the
     
    795795        change the settings to match local site needs.
    796796        </p></li></ol></div><p>
    797         <a class="indexterm" name="id2630106"></a>
     797        <a class="indexterm" name="id2624021"></a>
    798798        An example of a working file is shown here in <a class="link" href="appendix.html#lamconf" title="Example 15.12. LAM Profile Control File lam.conf">&#8220;LAM Profile Control File  lam.conf&#8221;</a>.
    799799        This file has been stripped of comments to keep the size small. The comments
     
    803803        are preferred at your site.
    804804        </p><p>
    805         <a class="indexterm" name="id2630130"></a>
     805        <a class="indexterm" name="id2624044"></a>
    806806        It is important that your LDAP server is running at the time that LAM is
    807807        being configured. This permits you to validate correct operation.
    808808        An example of the LAM login screen is provided in <a class="link" href="appendix.html#lam-login" title="Figure 15.6. The LDAP Account Manager Login Screen">&#8220;The LDAP Account Manager Login Screen&#8221;</a>.
    809809        </p><div class="figure"><a name="lam-login"></a><p class="title"><b>Figure 15.6. The LDAP Account Manager Login Screen</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/lam-login.png" width="270" alt="The LDAP Account Manager Login Screen"></div></div></div><br class="figure-break"><p>
    810         <a class="indexterm" name="id2630192"></a>
     810        <a class="indexterm" name="id2624107"></a>
    811811        The LAM configuration editor has a number of options that must be managed correctly.
    812812        An example of use of the LAM configuration editor is shown in <a class="link" href="appendix.html#lam-config" title="Figure 15.7. The LDAP Account Manager Configuration Screen">&#8220;The LDAP Account Manager Configuration Screen&#8221;</a>.
     
    818818        using LAM to add additional users and groups.
    819819        </p><div class="figure"><a name="lam-config"></a><p class="title"><b>Figure 15.7. The LDAP Account Manager Configuration Screen</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/lam-config.png" width="270" alt="The LDAP Account Manager Configuration Screen"></div></div></div><br class="figure-break"><p>
    820         <a class="indexterm" name="id2630264"></a>
     820        <a class="indexterm" name="id2624178"></a>
    821821        LAM has some nice, but unusual features. For example, one unexpected feature in most application
    822822        screens permits the generation of a PDF file that lists configuration information. This is a well
     
    824824        space.
    825825        </p><p>
    826         <a class="indexterm" name="id2630279"></a>
     826        <a class="indexterm" name="id2624194"></a>
    827827        When you log onto LAM the opening screen drops you right into the user manager as shown in
    828828        <a class="link" href="appendix.html#lam-user" title="Figure 15.8. The LDAP Account Manager User Edit Screen">&#8220;The LDAP Account Manager User Edit Screen&#8221;</a>. This is a logical action as it permits the most-needed facility
     
    838838        memberships.
    839839        </p><div class="figure"><a name="lam-group"></a><p class="title"><b>Figure 15.9. The LDAP Account Manager Group Edit Screen</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/lam-groups.png" width="270" alt="The LDAP Account Manager Group Edit Screen"></div></div></div><br class="figure-break"><div class="figure"><a name="lam-group-mem"></a><p class="title"><b>Figure 15.10. The LDAP Account Manager Group Membership Edit Screen</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/lam-group-members.png" width="270" alt="The LDAP Account Manager Group Membership Edit Screen"></div></div></div><br class="figure-break"><p>
    840         <a class="indexterm" name="id2630459"></a><a class="indexterm" name="id2630464"></a>
     840        <a class="indexterm" name="id2624374"></a><a class="indexterm" name="id2624379"></a>
    841841        The final screen presented here is one that you should not normally need to use. Host accounts will
    842842        be automatically managed using the smbldap-tools scripts. This means that the screen <a class="link" href="appendix.html#lam-host" title="Figure 15.11. The LDAP Account Manager Host Edit Screen">&#8220;The LDAP Account Manager Host Edit Screen&#8221;</a>
     
    884884cachetimeout: 5
    885885pwdhash: SSHA
    886 </pre></div></div><br class="example-break"></div><div class="sect1" title="IDEALX Management Console"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2630616"></a>IDEALX Management Console</h2></div></div></div><p>
     886</pre></div></div><br class="example-break"></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2624531"></a>IDEALX Management Console</h2></div></div></div><p>
    887887        IMC (the IDEALX Mamagement Console) is a tool that can be used as the basis for a comprehensive
    888888        web-based management interface for UNIX and Linux systems.
     
    898898        For further information regarding IMC refer to the web <a class="ulink" href="http://imc.sourceforge.net/" target="_top">site.</a>
    899899        Prebuilt RPM packages are also <a class="ulink" href="http://imc.sourceforge.net/download.html" target="_top">available.</a>
    900         </p></div><div class="sect1" title="Effect of Setting File and Directory SUID/SGID Permissions Explained"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ch12-SUIDSGID"></a>Effect of Setting File and Directory SUID/SGID Permissions Explained</h2></div></div></div><a class="indexterm" name="id2630722"></a><a class="indexterm" name="id2630728"></a><p>
     900        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ch12-SUIDSGID"></a>Effect of Setting File and Directory SUID/SGID Permissions Explained</h2></div></div></div><a class="indexterm" name="id2624636"></a><a class="indexterm" name="id2624643"></a><p>
    901901        The setting of the SUID/SGID bits on the file or directory permissions flag has particular
    902902        consequences. If the file is executable and the SUID bit is set, it executes with the privilege
     
    968968drw-rw-r--    2 bobj     Domain Users  12346 Dec 18 18:11 maryvfile.txt
    969969</pre><p>
    970         </p></div><div class="sect1" title="Shared Data Integrity"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ch12dblck"></a>Shared Data Integrity</h2></div></div></div><p><a class="indexterm" name="id2630960"></a><a class="indexterm" name="id2630967"></a>
     970        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ch12dblck"></a>Shared Data Integrity</h2></div></div></div><p><a class="indexterm" name="id2624874"></a><a class="indexterm" name="id2624882"></a>
    971971        The integrity of shared data is often viewed as a particularly emotional issue, especially where
    972972        there are concurrent problems with multiuser data access. Contrary to the assertions of some who have
     
    974974        </p><p>
    975975        The solution to concurrent multiuser data access problems must consider three separate areas
    976         from which the problem may stem:<a class="indexterm" name="id2630990"></a><a class="indexterm" name="id2631002"></a><a class="indexterm" name="id2631013"></a>
    977         </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>application-level locking controls</p></li><li class="listitem"><p>client-side locking controls</p></li><li class="listitem"><p>server-side locking controls</p></li></ul></div><p><a class="indexterm" name="id2631046"></a><a class="indexterm" name="id2631054"></a>
     976        from which the problem may stem:<a class="indexterm" name="id2624905"></a><a class="indexterm" name="id2624917"></a><a class="indexterm" name="id2624928"></a>
     977        </p><div class="itemizedlist"><ul type="disc"><li><p>application-level locking controls</p></li><li><p>client-side locking controls</p></li><li><p>server-side locking controls</p></li></ul></div><p><a class="indexterm" name="id2624961"></a><a class="indexterm" name="id2624969"></a>
    978978        Many database applications use some form of application-level access control. An example of one
    979979        well-known application that uses application-level locking is Microsoft Access. Detailed guidance
    980980        is provided here because this is the most common application for which problems have been reported.
    981         </p><p><a class="indexterm" name="id2631070"></a><a class="indexterm" name="id2631078"></a>
     981        </p><p><a class="indexterm" name="id2624985"></a><a class="indexterm" name="id2624993"></a>
    982982        Common applications that are affected by client- and server-side locking controls include MS
    983983        Excel and Act!. Important locking guidance is provided here.
    984         </p><div class="sect2" title="Microsoft Access"><div class="titlepage"><div><div><h3 class="title"><a name="id2631091"></a>Microsoft Access</h3></div></div></div><p>
     984        </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2625006"></a>Microsoft Access</h3></div></div></div><p>
    985985        The best advice that can be given is to carefully read the Microsoft knowledgebase articles that
    986986        cover this area. Examples of relevant documents include:
    987         </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>http://support.microsoft.com/default.aspx?scid=kb;en-us;208778</p></li><li class="listitem"><p>http://support.microsoft.com/default.aspx?scid=kb;en-us;299373</p></li></ul></div><p><a class="indexterm" name="id2631118"></a><a class="indexterm" name="id2631129"></a>
     987        </p><div class="itemizedlist"><ul type="disc"><li><p>http://support.microsoft.com/default.aspx?scid=kb;en-us;208778</p></li><li><p>http://support.microsoft.com/default.aspx?scid=kb;en-us;299373</p></li></ul></div><p><a class="indexterm" name="id2625033"></a><a class="indexterm" name="id2625044"></a>
    988988        Make sure that your MS Access database file is configured for multiuser access (not set for
    989989        exclusive open). Open MS Access on each client workstation, then set the following: <span class="guimenu">(Menu bar) Tools</span>+<span class="guimenu">Options</span>+<span class="guimenu">[tab] General</span>.  Set network path to Default database folder: <code class="filename">\\server\share\folder</code>.
    990990        </p><p>
    991991        You can configure MS Access file sharing behavior as follows: click <span class="guimenu">[tab] Advanced</span>.
    992           Set:<a class="indexterm" name="id2631180"></a>
    993         </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Default open mode: Shared</p></li><li class="listitem"><p>Default Record Locking: Edited Record</p></li><li class="listitem"><p>Open databases using record_level locking</p></li></ul></div><p><a class="indexterm" name="id2631209"></a>
     992          Set:<a class="indexterm" name="id2625095"></a>
     993        </p><div class="itemizedlist"><ul type="disc"><li><p>Default open mode: Shared</p></li><li><p>Default Record Locking: Edited Record</p></li><li><p>Open databases using record_level locking</p></li></ul></div><p><a class="indexterm" name="id2625124"></a>
    994994        You must now commit the changes so that they will take effect. To do so, click
    995995        <span class="guimenu">Apply</span><span class="guimenu">Ok</span>. At this point, you should exit MS Access, restart
    996996        it, and then validate that these settings have not changed.
    997         </p></div><div class="sect2" title="Act! Database Sharing"><div class="titlepage"><div><div><h3 class="title"><a name="id2631238"></a>Act! Database Sharing</h3></div></div></div><p><a class="indexterm" name="id2631245"></a><a class="indexterm" name="id2631253"></a>
     997        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2625153"></a>Act! Database Sharing</h3></div></div></div><p><a class="indexterm" name="id2625160"></a><a class="indexterm" name="id2625168"></a>
    998998        Where the server sharing the ACT! database(s) is running Samba,or Windows NT, 200x, or XP, you
    999999        must disable opportunistic locking on the server and all workstations. Failure to do so
     
    10031003        as well as from article
    10041004        <a class="ulink" href="http://itdomino.saleslogix.com/act.nsf/docid/200110485036" target="_top">200110485036</a>.
    1005         </p><p><a class="indexterm" name="id2631283"></a><a class="indexterm" name="id2631291"></a>
     1005        </p><p><a class="indexterm" name="id2625198"></a><a class="indexterm" name="id2625206"></a>
    10061006        These documents clearly state that opportunistic locking must be disabled on both
    10071007        the server (Samba in the case we are interested in here), as well as on every workstation
     
    10111011        Registered Act! users may download this utility from the Act! Web
    10121012        <a class="ulink" href="http://www.act.com/support/updates/index.cfm" target="_top">site.</a>
    1013         </p></div><div class="sect2" title="Opportunistic Locking Controls"><div class="titlepage"><div><div><h3 class="title"><a name="id2631322"></a>Opportunistic Locking Controls</h3></div></div></div><p><a class="indexterm" name="id2631330"></a>
     1013        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2625237"></a>Opportunistic Locking Controls</h3></div></div></div><p><a class="indexterm" name="id2625244"></a>
    10141014        Third-party Windows applications may not be compatible with the use of opportunistic file
    1015         and record locking. For applications that are known not to be compatible,<sup>[<a name="id2631342" href="#ftn.id2631342" class="footnote">14</a>]</sup> oplock
     1015        and record locking. For applications that are known not to be compatible,<sup>[<a name="id2625256" href="#ftn.id2625256" class="footnote">14</a>]</sup> oplock
    10161016        support may need to be disabled both on the Samba server and on the Windows workstations.
    1017         </p><p><a class="indexterm" name="id2631356"></a><a class="indexterm" name="id2631364"></a><a class="indexterm" name="id2631372"></a>
     1017        </p><p><a class="indexterm" name="id2625271"></a><a class="indexterm" name="id2625278"></a><a class="indexterm" name="id2625286"></a>
    10181018        Oplocks enable a Windows client to cache parts of a file that are being
    10191019        edited. Another windows client may then request to open the file with the
     
    10221022        doing so, that workstation must flush the file from cache memory to the
    10231023        disk or network drive.
    1024         </p><p><a class="indexterm" name="id2631393"></a>
     1024        </p><p><a class="indexterm" name="id2625308"></a>
    10251025        Disabling of Oplocks usage may require server and client changes.
    10261026        Oplocks may be disabled by file, by file pattern, on the share, or on the
Note: See TracChangeset for help on using the changeset viewer.