Ignore:
Timestamp:
May 29, 2008, 12:22:03 PM (17 years ago)
Author:
Paul Smedley
Message:

Update trunk to 3.2.0rc1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/docs/htmldocs/Samba3-ByExample/appendix.html

    r133 r136  
    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.73.1"><link rel="start" 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#id2643843">Samba System File Location</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2644263">Starting Samba</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2644612">DNS Configuration Files</a></span></dt><dd><dl><dt><span class="sect2"><a href="appendix.html#id2644623">The Forward Zone File for the Loopback Adaptor</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2644672">The Reverse Zone File for the Loopback Adaptor</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2644776">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#id2644835">Initialization of the LDAP Database</a></span></dt></dl></dd><dt><span class="sect1"><a href="appendix.html#id2524138">The LDAP Account Manager</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2646658">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#id2647133">Microsoft Access</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2647280">Act! Database Sharing</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2647364">Opportunistic Locking Controls</a></span></dt></dl></dd></dl></div><p>
    2         <a class="indexterm" name="id2643264"></a>
    3         <a class="indexterm" name="id2643270"></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.73.1"><link rel="start" 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#id2644030">Samba System File Location</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2644449">Starting Samba</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2644795">DNS Configuration Files</a></span></dt><dd><dl><dt><span class="sect2"><a href="appendix.html#id2644807">The Forward Zone File for the Loopback Adaptor</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2644856">The Reverse Zone File for the Loopback Adaptor</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2644996">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#id2645055">Initialization of the LDAP Database</a></span></dt></dl></dd><dt><span class="sect1"><a href="appendix.html#id2645634">The LDAP Account Manager</a></span></dt><dt><span class="sect1"><a href="appendix.html#id2646631">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#id2647111">Microsoft Access</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2647258">Act! Database Sharing</a></span></dt><dt><span class="sect2"><a href="appendix.html#id2647342">Opportunistic Locking Controls</a></span></dt></dl></dd></dl></div><p>
     2        <a class="indexterm" name="id2643451"></a>
     3        <a class="indexterm" name="id2643457"></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
     
    88        as shown in the example given below.
    99        </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="id2643301"></a>
     10        <a class="indexterm" name="id2643487"></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"><a name="id2643314"></a><p class="title"><b>Procedure 15.1. Steps to Join a Domain</b></p><ol type="1"><li><p>
     15        </p><div class="procedure"><a name="id2643501"></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>.
    1717                </p></li><li><p>
     
    5151                Joining the domain is now complete.
    5252                </p></li></ol></div><p>
    53         <a class="indexterm" name="id2643733"></a>
    54         <a class="indexterm" name="id2643740"></a>
     53        <a class="indexterm" name="id2643920"></a>
     54        <a class="indexterm" name="id2643926"></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="id2643766"></a>
    60         <a class="indexterm" name="id2643773"></a>
     59        <a class="indexterm" name="id2643953"></a>
     60        <a class="indexterm" name="id2643960"></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="id2643791"></a>
     65        <a class="indexterm" name="id2643978"></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="id2643815"></a>
     73        <a class="indexterm" name="id2644002"></a>
    7474        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
    7777        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="id2643843"></a>Samba System File Location</h2></div></div></div><p><a class="indexterm" name="id2643850"></a><a class="indexterm" name="id2643858"></a><a class="indexterm" name="id2643866"></a>
     78        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2644030"></a>Samba System File Location</h2></div></div></div><p><a class="indexterm" name="id2644037"></a><a class="indexterm" name="id2644045"></a><a class="indexterm" name="id2644053"></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="id2643902"></a><a class="indexterm" name="id2643913"></a><a class="indexterm" name="id2643921"></a><a class="indexterm" name="id2643932"></a><a class="indexterm" name="id2643940"></a><a class="indexterm" name="id2643951"></a><a class="indexterm" name="id2643959"></a><a class="indexterm" name="id2643967"></a><a class="indexterm" name="id2643974"></a><a class="indexterm" name="id2643982"></a><a class="indexterm" name="id2643990"></a><a class="indexterm" name="id2643998"></a><a class="indexterm" name="id2644006"></a><a class="indexterm" name="id2644014"></a><a class="indexterm" name="id2644022"></a><a class="indexterm" name="id2644030"></a>
     86        </p><p><a class="indexterm" name="id2644089"></a><a class="indexterm" name="id2644100"></a><a class="indexterm" name="id2644108"></a><a class="indexterm" name="id2644119"></a><a class="indexterm" name="id2644126"></a><a class="indexterm" name="id2644138"></a><a class="indexterm" name="id2644145"></a><a class="indexterm" name="id2644153"></a><a class="indexterm" name="id2644161"></a><a class="indexterm" name="id2644169"></a><a class="indexterm" name="id2644177"></a><a class="indexterm" name="id2644185"></a><a class="indexterm" name="id2644193"></a><a class="indexterm" name="id2644201"></a><a class="indexterm" name="id2644209"></a><a class="indexterm" name="id2644217"></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="id2644099"></a><a class="indexterm" name="id2644107"></a><a class="indexterm" name="id2644115"></a>
     95        </p><p><a class="indexterm" name="id2644286"></a><a class="indexterm" name="id2644294"></a><a class="indexterm" name="id2644302"></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="id2644154"></a>
     101        </p><p><a class="indexterm" name="id2644340"></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="id2644227"></a>
     134        executing:<a class="indexterm" name="id2644414"></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="id2644249"></a>
     146        </pre><p><a class="indexterm" name="id2644436"></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" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2644263"></a>Starting Samba</h2></div></div></div><p><a class="indexterm" name="id2644269"></a>
     148        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2644449"></a>Starting Samba</h2></div></div></div><p><a class="indexterm" name="id2644456"></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="id2644332"></a>
    190                         <a class="indexterm" name="id2644339"></a>
     189                        <a class="indexterm" name="id2644519"></a>
     190                        <a class="indexterm" name="id2644526"></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="id2644368"></a>
    196                         <a class="indexterm" name="id2644375"></a>
     195                        <a class="indexterm" name="id2644555"></a>
     196                        <a class="indexterm" name="id2644562"></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="id2644404"></a>
    201                         <a class="indexterm" name="id2644411"></a>
     200                        <a class="indexterm" name="id2644591"></a>
     201                        <a class="indexterm" name="id2644598"></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="id2644533"></a>
     255</pre></div></div><br class="example-break"><p><a class="indexterm" name="id2644717"></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="id2644569"></a>
     260        </p><p><a class="indexterm" name="id2644752"></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" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2644612"></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="id2644795"></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" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2644623"></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="id2644807"></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" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2644672"></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="id2644856"></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" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2644776"></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="id2644996"></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" 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="id2644807"></a><a class="indexterm" name="id2644818"></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="id2645027"></a><a class="indexterm" name="id2645038"></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" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2644835"></a>Initialization of the LDAP Database</h3></div></div></div><p><a class="indexterm" name="id2644842"></a><a class="indexterm" name="id2644850"></a><a class="indexterm" name="id2644862"></a>
     355        </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2645055"></a>Initialization of the LDAP Database</h3></div></div></div><p><a class="indexterm" name="id2645062"></a><a class="indexterm" name="id2645070"></a><a class="indexterm" name="id2645081"></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
     
    706706displayName: Domain Users
    707707description: Domain Users
    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="id2524138"></a>The LDAP Account Manager</h2></div></div></div><p>
    709 <a class="indexterm" name="id2524146"></a>
    710 <a class="indexterm" name="id2524152"></a>
    711 <a class="indexterm" name="id2524161"></a>
    712 <a class="indexterm" name="id2524168"></a>
    713 <a class="indexterm" name="id2524175"></a>
    714 <a class="indexterm" name="id2524181"></a>
    715 <a class="indexterm" name="id2524188"></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="id2645634"></a>The LDAP Account Manager</h2></div></div></div><p>
     709<a class="indexterm" name="id2645642"></a>
     710<a class="indexterm" name="id2645648"></a>
     711<a class="indexterm" name="id2645657"></a>
     712<a class="indexterm" name="id2645664"></a>
     713<a class="indexterm" name="id2645670"></a>
     714<a class="indexterm" name="id2645677"></a>
     715<a class="indexterm" name="id2645684"></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="id2524219"></a>
    728 <a class="indexterm" name="id2524226"></a>
    729 <a class="indexterm" name="id2524233"></a>
     727<a class="indexterm" name="id2645715"></a>
     728<a class="indexterm" name="id2645722"></a>
     729<a class="indexterm" name="id2645729"></a>
    730730Requirements:
    731731</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="id2524293"></a>
    735 <a class="indexterm" name="id2524300"></a>
    736 <a class="indexterm" name="id2524307"></a>
     734<a class="indexterm" name="id2645790"></a>
     735<a class="indexterm" name="id2645797"></a>
     736<a class="indexterm" name="id2645804"></a>
    737737</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="id2524361"></a>
    742 <a class="indexterm" name="id2524368"></a>
    743 <a class="indexterm" name="id2645908"></a>
    744 <a class="indexterm" name="id2645913"></a>
     741<a class="indexterm" name="id2645857"></a>
     742<a class="indexterm" name="id2645864"></a>
     743<a class="indexterm" name="id2645871"></a>
     744<a class="indexterm" name="id2645878"></a>
    745745The 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
     
    761761        <code class="filename">/srv/www/htdocs</code> directory.
    762762        </p></li><li><p>
    763         <a class="indexterm" name="id2645993"></a>
     763        <a class="indexterm" name="id2645958"></a>
    764764        Set file permissions using the following commands:
    765765</p><pre class="screen">
     
    771771</pre><p>
    772772        </p></li><li><p>
    773         <a class="indexterm" name="id2646046"></a>
     773        <a class="indexterm" name="id2646010"></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="id2646087"></a>
    782         <a class="indexterm" name="id2646096"></a>
     781        <a class="indexterm" name="id2646051"></a>
     782        <a class="indexterm" name="id2646060"></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
     
    795795        change the settings to match local site needs.
    796796        </p></li></ol></div><p>
    797         <a class="indexterm" name="id2646156"></a>
     797        <a class="indexterm" name="id2646120"></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="id2646179"></a>
     805        <a class="indexterm" name="id2646144"></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="id2646242"></a>
     810        <a class="indexterm" name="id2646207"></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="id2646314"></a>
     820        <a class="indexterm" name="id2646278"></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="id2646329"></a>
     826        <a class="indexterm" name="id2646294"></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="id2646509"></a><a class="indexterm" name="id2646514"></a>
     840        <a class="indexterm" name="id2646474"></a><a class="indexterm" name="id2646479"></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" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2646658"></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="id2646631"></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" 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="id2646763"></a><a class="indexterm" name="id2646770"></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="id2646736"></a><a class="indexterm" name="id2646743"></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" 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="id2647001"></a><a class="indexterm" name="id2647009"></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="id2646974"></a><a class="indexterm" name="id2646982"></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="id2647032"></a><a class="indexterm" name="id2647044"></a><a class="indexterm" name="id2647055"></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="id2647088"></a><a class="indexterm" name="id2647096"></a>
     976        from which the problem may stem:<a class="indexterm" name="id2647010"></a><a class="indexterm" name="id2647022"></a><a class="indexterm" name="id2647033"></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="id2647066"></a><a class="indexterm" name="id2647074"></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="id2647112"></a><a class="indexterm" name="id2647120"></a>
     981        </p><p><a class="indexterm" name="id2647090"></a><a class="indexterm" name="id2647098"></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" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2647133"></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="id2647111"></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 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="id2647160"></a><a class="indexterm" name="id2647171"></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="id2647138"></a><a class="indexterm" name="id2647149"></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="id2647222"></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="id2647251"></a>
     992          Set:<a class="indexterm" name="id2647200"></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="id2647229"></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" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2647280"></a>Act! Database Sharing</h3></div></div></div><p><a class="indexterm" name="id2647287"></a><a class="indexterm" name="id2647295"></a>
     997        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2647258"></a>Act! Database Sharing</h3></div></div></div><p><a class="indexterm" name="id2647265"></a><a class="indexterm" name="id2647273"></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="id2647325"></a><a class="indexterm" name="id2647333"></a>
     1005        </p><p><a class="indexterm" name="id2647303"></a><a class="indexterm" name="id2647311"></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" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2647364"></a>Opportunistic Locking Controls</h3></div></div></div><p><a class="indexterm" name="id2647371"></a>
     1013        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2647342"></a>Opportunistic Locking Controls</h3></div></div></div><p><a class="indexterm" name="id2647350"></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="id2647383" href="#ftn.id2647383" class="footnote">14</a>]</sup> oplock
     1015        and record locking. For applications that are known not to be compatible,<sup>[<a name="id2647362" href="#ftn.id2647362" 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="id2647398"></a><a class="indexterm" name="id2647405"></a><a class="indexterm" name="id2647413"></a>
     1017        </p><p><a class="indexterm" name="id2647376"></a><a class="indexterm" name="id2647384"></a><a class="indexterm" name="id2647392"></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="id2647435"></a>
     1024        </p><p><a class="indexterm" name="id2647413"></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.