Ignore:
Timestamp:
Jan 15, 2010, 8:21:06 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.10 (docs)

File:
1 edited

Legend:

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

    r218 r368  
    1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 5. Making Happy Users</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="ExNetworks.html" title="Part I. Example Network Configurations"><link rel="prev" href="Big500users.html" title="Chapter 4. The 500-User Office"><link rel="next" href="2000users.html" title="Chapter 6. A Distributed 2000-User Network"></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 5. Making Happy Users</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="Big500users.html">Prev</a> </td><th width="60%" align="center">Part I. Example Network Configurations</th><td width="20%" align="right"> <a accesskey="n" href="2000users.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="happy"></a>Chapter 5. Making Happy Users</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="happy.html#id2571048">Regarding LDAP Directories and Windows Computer Accounts</a></span></dt><dt><span class="sect1"><a href="happy.html#id2571190">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="happy.html#id2571288">Assignment Tasks</a></span></dt></dl></dd><dt><span class="sect1"><a href="happy.html#id2571425">Dissection and Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="happy.html#id2571882">Technical Issues</a></span></dt><dt><span class="sect2"><a href="happy.html#id2573760">Political Issues</a></span></dt><dt><span class="sect2"><a href="happy.html#id2573776">Installation Checklist</a></span></dt></dl></dd><dt><span class="sect1"><a href="happy.html#id2573956">Samba Server Implementation</a></span></dt><dd><dl><dt><span class="sect2"><a href="happy.html#ldapsetup">OpenLDAP Server Configuration</a></span></dt><dt><span class="sect2"><a href="happy.html#sbehap-PAM-NSS">PAM and NSS Client Configuration</a></span></dt><dt><span class="sect2"><a href="happy.html#sbehap-massive">Samba-3 PDC Configuration</a></span></dt><dt><span class="sect2"><a href="happy.html#sbeidealx">Install and Configure Idealx smbldap-tools Scripts</a></span></dt><dt><span class="sect2"><a href="happy.html#id2576854">LDAP Initialization and Creation of User and Group Accounts</a></span></dt><dt><span class="sect2"><a href="happy.html#sbehap-ptrcfg">Printer Configuration</a></span></dt></dl></dd><dt><span class="sect1"><a href="happy.html#sbehap-bldg1">Samba-3 BDC Configuration</a></span></dt><dt><span class="sect1"><a href="happy.html#id2580803">Miscellaneous Server Preparation Tasks</a></span></dt><dd><dl><dt><span class="sect2"><a href="happy.html#id2580823">Configuring Directory Share Point Roots</a></span></dt><dt><span class="sect2"><a href="happy.html#id2580918">Configuring Profile Directories</a></span></dt><dt><span class="sect2"><a href="happy.html#id2581163">Preparation of Logon Scripts</a></span></dt><dt><span class="sect2"><a href="happy.html#id2581274">Assigning User Rights and Privileges</a></span></dt></dl></dd><dt><span class="sect1"><a href="happy.html#id2581407">Windows Client Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="happy.html#redirfold">Configuration of Default Profile with Folder Redirection</a></span></dt><dt><span class="sect2"><a href="happy.html#id2582162">Configuration of MS Outlook to Relocate PST File</a></span></dt><dt><span class="sect2"><a href="happy.html#id2582477">Configure Delete Cached Profiles on Logout</a></span></dt><dt><span class="sect2"><a href="happy.html#id2582657">Uploading Printer Drivers to Samba Servers</a></span></dt><dt><span class="sect2"><a href="happy.html#id2583160">Software Installation</a></span></dt><dt><span class="sect2"><a href="happy.html#id2583195">Roll-out Image Creation</a></span></dt></dl></dd><dt><span class="sect1"><a href="happy.html#id2583229">Key Points Learned</a></span></dt><dt><span class="sect1"><a href="happy.html#id2583345">Questions and Answers</a></span></dt></dl></div><p>
    2         It is said that &#8220;<span class="quote">a day that is without troubles is not fulfilling.  Rather, give
    3         me a day of troubles well handled so that I can be content with my achievements.</span>&#8221;
     1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 5. Making Happy Users</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="ExNetworks.html" title="Part I. Example Network Configurations"><link rel="prev" href="Big500users.html" title="Chapter 4. The 500-User Office"><link rel="next" href="2000users.html" title="Chapter 6. A Distributed 2000-User Network"></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 5. Making Happy Users</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="Big500users.html">Prev</a> </td><th width="60%" align="center">Part I. Example Network Configurations</th><td width="20%" align="right"> <a accesskey="n" href="2000users.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 5. Making Happy Users"><div class="titlepage"><div><div><h2 class="title"><a name="happy"></a>Chapter 5. Making Happy Users</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="happy.html#id2577106">Regarding LDAP Directories and Windows Computer Accounts</a></span></dt><dt><span class="sect1"><a href="happy.html#id2577248">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="happy.html#id2577346">Assignment Tasks</a></span></dt></dl></dd><dt><span class="sect1"><a href="happy.html#id2577483">Dissection and Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="happy.html#id2577941">Technical Issues</a></span></dt><dt><span class="sect2"><a href="happy.html#id2579819">Political Issues</a></span></dt><dt><span class="sect2"><a href="happy.html#id2579834">Installation Checklist</a></span></dt></dl></dd><dt><span class="sect1"><a href="happy.html#id2580015">Samba Server Implementation</a></span></dt><dd><dl><dt><span class="sect2"><a href="happy.html#ldapsetup">OpenLDAP Server Configuration</a></span></dt><dt><span class="sect2"><a href="happy.html#sbehap-PAM-NSS">PAM and NSS Client Configuration</a></span></dt><dt><span class="sect2"><a href="happy.html#sbehap-massive">Samba-3 PDC Configuration</a></span></dt><dt><span class="sect2"><a href="happy.html#sbeidealx">Install and Configure Idealx smbldap-tools Scripts</a></span></dt><dt><span class="sect2"><a href="happy.html#id2582912">LDAP Initialization and Creation of User and Group Accounts</a></span></dt><dt><span class="sect2"><a href="happy.html#sbehap-ptrcfg">Printer Configuration</a></span></dt></dl></dd><dt><span class="sect1"><a href="happy.html#sbehap-bldg1">Samba-3 BDC Configuration</a></span></dt><dt><span class="sect1"><a href="happy.html#id2586862">Miscellaneous Server Preparation Tasks</a></span></dt><dd><dl><dt><span class="sect2"><a href="happy.html#id2586882">Configuring Directory Share Point Roots</a></span></dt><dt><span class="sect2"><a href="happy.html#id2586977">Configuring Profile Directories</a></span></dt><dt><span class="sect2"><a href="happy.html#id2587221">Preparation of Logon Scripts</a></span></dt><dt><span class="sect2"><a href="happy.html#id2587332">Assigning User Rights and Privileges</a></span></dt></dl></dd><dt><span class="sect1"><a href="happy.html#id2587466">Windows Client Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="happy.html#redirfold">Configuration of Default Profile with Folder Redirection</a></span></dt><dt><span class="sect2"><a href="happy.html#id2588220">Configuration of MS Outlook to Relocate PST File</a></span></dt><dt><span class="sect2"><a href="happy.html#id2588536">Configure Delete Cached Profiles on Logout</a></span></dt><dt><span class="sect2"><a href="happy.html#id2588716">Uploading Printer Drivers to Samba Servers</a></span></dt><dt><span class="sect2"><a href="happy.html#id2589218">Software Installation</a></span></dt><dt><span class="sect2"><a href="happy.html#id2589254">Roll-out Image Creation</a></span></dt></dl></dd><dt><span class="sect1"><a href="happy.html#id2589288">Key Points Learned</a></span></dt><dt><span class="sect1"><a href="happy.html#id2589403">Questions and Answers</a></span></dt></dl></div><p>
     2        It is said that <span class="quote">&#8220;<span class="quote">a day that is without troubles is not fulfilling.  Rather, give
     3        me a day of troubles well handled so that I can be content with my achievements.</span>&#8221;</span>
    44        </p><p>
    55        In the world of computer networks, problems are as varied as the people who create them
     
    77        may create problems for some network users. The following lists some of the problems that
    88        may occur:
    9         </p><a class="indexterm" name="id2570626"></a><a class="indexterm" name="id2570632"></a><a class="indexterm" name="id2570642"></a><a class="indexterm" name="id2570648"></a><a class="indexterm" name="id2570655"></a><div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Caution</h3><p>
     9        </p><a class="indexterm" name="id2576684"></a><a class="indexterm" name="id2576691"></a><a class="indexterm" name="id2576700"></a><a class="indexterm" name="id2576707"></a><a class="indexterm" name="id2576714"></a><div class="caution" title="Caution" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Caution</h3><p>
    1010A significant number of network administrators have responded to the guidance given
    1111here. It should be noted that there are sites that have a single PDC for many hundreds of
     
    2020clients is conservative and if followed will minimize problems  but it is not absolute.
    2121</p></div><div class="variablelist"><dl><dt><span class="term">Users experiencing difficulty logging onto the network</span></dt><dd><p>
    22                 <a class="indexterm" name="id2570700"></a>
    23                 <a class="indexterm" name="id2570710"></a>
     22                <a class="indexterm" name="id2576759"></a>
     23                <a class="indexterm" name="id2576768"></a>
    2424                When a Windows client logs onto the network, many data packets are exchanged
    2525                between the client and the server that is providing the network logon services.
     
    3131                characteristics.
    3232                </p><p>
    33                 <a class="indexterm" name="id2570730"></a>
    34                 <a class="indexterm" name="id2570736"></a>
    35                 <a class="indexterm" name="id2570743"></a>
     33                <a class="indexterm" name="id2576788"></a>
     34                <a class="indexterm" name="id2576795"></a>
     35                <a class="indexterm" name="id2576801"></a>
    3636                If the domain controller provides only network logon services
    3737                and all file and print activity is handled by domain member servers, one domain
     
    4747                the Samba server as well as network bandwidth utilization.
    4848                </p></dd><dt><span class="term">Slow logons and log-offs</span></dt><dd><p>
    49                 <a class="indexterm" name="id2570776"></a>
     49                <a class="indexterm" name="id2576835"></a>
    5050                Slow logons and log-offs may be caused by many factors that include:
    5151
    52                         </p><div class="itemizedlist"><ul type="disc"><li><p>
    53                                 <a class="indexterm" name="id2570790"></a>
    54                                 <a class="indexterm" name="id2570802"></a>
     52                        </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
     53                                <a class="indexterm" name="id2576848"></a>
     54                                <a class="indexterm" name="id2576860"></a>
    5555                                Excessive delays in the resolution of a NetBIOS name to its IP
    5656                                address. This may be observed when an overloaded domain controller
    5757                                is also the WINS server. Another cause may be the failure to use
    5858                                a WINS server (this assumes that there is a single network segment).
    59                                 </p></li><li><p>
    60                                 <a class="indexterm" name="id2570820"></a>
    61                                 <a class="indexterm" name="id2570827"></a>
    62                                 <a class="indexterm" name="id2570834"></a>
     59                                </p></li><li class="listitem"><p>
     60                                <a class="indexterm" name="id2576879"></a>
     61                                <a class="indexterm" name="id2576886"></a>
     62                                <a class="indexterm" name="id2576892"></a>
    6363                                Network traffic collisions due to overloading of the network
    6464                                segment. One short-term workaround to this may be to replace
    6565                                network HUBs with Ethernet switches.
    66                                 </p></li><li><p>
    67                                 <a class="indexterm" name="id2570848"></a>
     66                                </p></li><li class="listitem"><p>
     67                                <a class="indexterm" name="id2576907"></a>
    6868                                Defective networking hardware. Over the past few years, we have seen
    6969                                on the Samba mailing list a significant increase in the number of
     
    7272                                it was the erratic nature of the problem that ultimately pointed to
    7373                                the cause of the problem.
    74                                 </p></li><li><p>
    75                                 <a class="indexterm" name="id2570869"></a>
    76                                 <a class="indexterm" name="id2570878"></a>
     74                                </p></li><li class="listitem"><p>
     75                                <a class="indexterm" name="id2576927"></a>
     76                                <a class="indexterm" name="id2576936"></a>
    7777                                Excessively large roaming profiles. This type of problem is typically
    7878                                the result of poor user education as well as poor network management.
     
    8181                                These are old bad habits that require much discipline and vigilance
    8282                                on the part of network management.
    83                                 </p></li><li><p>
    84                                 <a class="indexterm" name="id2570898"></a>
     83                                </p></li><li class="listitem"><p>
     84                                <a class="indexterm" name="id2576957"></a>
    8585                                You should verify that the Windows XP WebClient service is not running.
    8686                                The use of the WebClient service has been implicated in many Windows
     
    9090                Loss of access to network resources during client operation may be caused by a number
    9191                of factors, including:
    92                 </p><div class="itemizedlist"><ul type="disc"><li><p>
    93                                 <a class="indexterm" name="id2570931"></a>
     92                </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
     93                                <a class="indexterm" name="id2576989"></a>
    9494                                Network overload (typically indicated by a high network collision rate)
    95                                 </p></li><li><p>
     95                                </p></li><li class="listitem"><p>
    9696                                Server overload
    97                                 </p></li><li><p>
    98                                 <a class="indexterm" name="id2570950"></a>
     97                                </p></li><li class="listitem"><p>
     98                                <a class="indexterm" name="id2577009"></a>
    9999                                Timeout causing the client to close a connection that is in use but has
    100100                                been latent (no traffic) for some time (5 minutes or more)
    101                                 </p></li><li><p>
    102                                 <a class="indexterm" name="id2570966"></a>
     101                                </p></li><li class="listitem"><p>
     102                                <a class="indexterm" name="id2577025"></a>
    103103                                Defective networking hardware
    104104                                </p></li></ul></div><p>
    105                 <a class="indexterm" name="id2570981"></a>
     105                <a class="indexterm" name="id2577039"></a>
    106106                No matter what the cause, a sudden loss of access to network resources can
    107107                result in BSOD (blue screen of death) situations that necessitate rebooting of the client
     
    110110                problem, data corruption.
    111111                </p></dd><dt><span class="term">Potential data corruption</span></dt><dd><p>
    112                 <a class="indexterm" name="id2571014"></a>
     112                <a class="indexterm" name="id2577073"></a>
    113113                Data corruption is one of the most serious problems. It leads to uncertainty, anger, and
    114114                frustration, and generally precipitates immediate corrective demands. Management response
     
    124124        methods to improve the reliability of your network environment, but be warned that all such steps
    125125        demand the price of complexity.
    126         </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2571048"></a>Regarding LDAP Directories and Windows Computer Accounts</h2></div></div></div><p>
    127         <a class="indexterm" name="id2571056"></a>
     126        </p><div class="sect1" title="Regarding LDAP Directories and Windows Computer Accounts"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2577106"></a>Regarding LDAP Directories and Windows Computer Accounts</h2></div></div></div><p>
     127        <a class="indexterm" name="id2577115"></a>
    128128        Computer (machine) accounts can be placed wherever you like in an LDAP directory subject to some
    129129        constraints that are described in this section.
    130130        </p><p>
    131         <a class="indexterm" name="id2571071"></a>
    132         <a class="indexterm" name="id2571078"></a>
    133         <a class="indexterm" name="id2571085"></a>
    134         <a class="indexterm" name="id2571092"></a>
     131        <a class="indexterm" name="id2577130"></a>
     132        <a class="indexterm" name="id2577136"></a>
     133        <a class="indexterm" name="id2577143"></a>
     134        <a class="indexterm" name="id2577150"></a>
    135135        The POSIX and SambaSAMAccount components of computer (machine) accounts are both used by Samba.
    136136        That is, machine  accounts are treated inside Samba in the same way that Windows NT4/200X treats
     
    138138        the machine account ends in a $ character, as do trust accounts.
    139139        </p><p>
    140         <a class="indexterm" name="id2571108"></a>
    141         <a class="indexterm" name="id2571115"></a>
     140        <a class="indexterm" name="id2577167"></a>
     141        <a class="indexterm" name="id2577173"></a>
    142142        The need for Windows user, group, machine, trust, and other such accounts to be tied to a valid UNIX UID
    143143        is a design decision that was made a long way back in the history of Samba development. It is
     
    145145        Samba-3.x series.
    146146        </p><p>
    147         <a class="indexterm" name="id2571130"></a>
    148         <a class="indexterm" name="id2571136"></a>
     147        <a class="indexterm" name="id2577188"></a>
     148        <a class="indexterm" name="id2577195"></a>
    149149        The resolution of a UID from the Windows SID is achieved within Samba through a mechanism that
    150150        must refer back to the host operating system on which Samba is running. The name service
     
    152152        need to know everything about every host OS it runs on.
    153153        </p><p>
    154         Samba asks the host OS to provide a UID via the &#8220;<span class="quote">passwd</span>&#8221;, &#8220;<span class="quote">shadow</span>&#8221;
    155         and &#8220;<span class="quote">group</span>&#8221; facilities in the NSS control (configuration) file. The best tool
     154        Samba asks the host OS to provide a UID via the <span class="quote">&#8220;<span class="quote">passwd</span>&#8221;</span>, <span class="quote">&#8220;<span class="quote">shadow</span>&#8221;</span>
     155        and <span class="quote">&#8220;<span class="quote">group</span>&#8221;</span> facilities in the NSS control (configuration) file. The best tool
    156156        for achieving this is left up to the UNIX administrator to determine. It is not imposed by
    157157        Samba. Samba provides winbindd together with its support libraries as one method. It is
     
    159159        all account entities can be located in an LDAP directory.
    160160        </p><p>
    161         <a class="indexterm" name="id2571174"></a>
     161        <a class="indexterm" name="id2577232"></a>
    162162        For many the weapon of choice is to use the PADL nss_ldap utility. This utility must
    163163        be configured so that computer accounts can be resolved to a POSIX/UNIX account UID. That
     
    165165        in the documentation is directed at providing working examples only. The design
    166166        of an LDAP directory is a complex subject that is beyond the scope of this documentation.
    167         </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2571190"></a>Introduction</h2></div></div></div><p>
     167        </p></div><div class="sect1" title="Introduction"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2577248"></a>Introduction</h2></div></div></div><p>
    168168        You just opened an email from Christine that reads:
    169169        </p><p>
     
    194194        </p></td><td width="10%" valign="top"> </td></tr><tr><td width="10%" valign="top"> </td><td colspan="2" align="right" valign="top">--<span class="attribution">Christine</span></td></tr></table></div><p>
    195195        </p><p>
    196         <a class="indexterm" name="id2571252"></a>     
    197         <a class="indexterm" name="id2571259"></a>
     196        <a class="indexterm" name="id2577310"></a>     
     197        <a class="indexterm" name="id2577318"></a>
    198198        Every compromise has consequences. Having a large routed (i.e., multisegment) network with only a
    199199        single domain controller is a poor design that has obvious operational effects that may
     
    205205        Please let Stan know what the estimated cost will be so I can approve the expense. Do not wait
    206206        for approval; I appreciate the urgency.
    207         </p></td><td width="10%" valign="top"> </td></tr><tr><td width="10%" valign="top"> </td><td colspan="2" align="right" valign="top">--<span class="attribution">Bob</span></td></tr></table></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2571288"></a>Assignment Tasks</h3></div></div></div><p>
     207        </p></td><td width="10%" valign="top"> </td></tr><tr><td width="10%" valign="top"> </td><td colspan="2" align="right" valign="top">--<span class="attribution">Bob</span></td></tr></table></div><div class="sect2" title="Assignment Tasks"><div class="titlepage"><div><div><h3 class="title"><a name="id2577346"></a>Assignment Tasks</h3></div></div></div><p>
    208208                The priority of assigned tasks in this chapter is:
    209                 </p><div class="orderedlist"><ol type="1"><li><p>
    210                         <a class="indexterm" name="id2571308"></a>
    211                         <a class="indexterm" name="id2571317"></a>
    212                         <a class="indexterm" name="id2571323"></a>
    213                         <a class="indexterm" name="id2571330"></a><a class="indexterm" name="id2571336"></a>
     209                </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>
     210                        <a class="indexterm" name="id2577366"></a>
     211                        <a class="indexterm" name="id2577375"></a>
     212                        <a class="indexterm" name="id2577382"></a>
     213                        <a class="indexterm" name="id2577389"></a><a class="indexterm" name="id2577394"></a>
    214214                        Implement Backup Domain Controllers (BDCs) in each building. This involves
    215215                        a change from a <span class="emphasis"><em>tdbsam</em></span> backend that was used in the previous
     
    217217                        </p><p>
    218218                        You can implement a single central LDAP server for this purpose.
    219                         </p></li><li><p>
    220                         <a class="indexterm" name="id2571358"></a>
    221                         <a class="indexterm" name="id2571365"></a>
    222                         <a class="indexterm" name="id2571372"></a>
    223                         <a class="indexterm" name="id2571379"></a>
     219                        </p></li><li class="listitem"><p>
     220                        <a class="indexterm" name="id2577417"></a>
     221                        <a class="indexterm" name="id2577424"></a>
     222                        <a class="indexterm" name="id2577430"></a>
     223                        <a class="indexterm" name="id2577437"></a>
    224224                        Rectify the problem of excessive logon times. This involves redirection of
    225225                        folders to network shares as well as modification of all user desktops to
     
    227227                        create a new default profile that can be used for all new users.
    228228                        </p></li></ol></div><p>
    229                 <a class="indexterm" name="id2571398"></a>
     229                <a class="indexterm" name="id2577456"></a>
    230230                You configure a new MS Windows XP Professional workstation disk image that you roll out
    231231                to all desktop users. The instructions you have created are followed on a staging machine
    232232                from which all changes can be carefully tested before inflicting them on your network users.
    233233                </p><p>
    234                 <a class="indexterm" name="id2571412"></a>
     234                <a class="indexterm" name="id2577471"></a>
    235235                This is the last network example in which specific mention of printing is made. The example
    236236                again makes use of the CUPS printing system.
    237                 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2571425"></a>Dissection and Discussion</h2></div></div></div><p>
    238         <a class="indexterm" name="id2571433"></a>
    239         <a class="indexterm" name="id2571439"></a>
    240         <a class="indexterm" name="id2571446"></a>
     237                </p></div></div><div class="sect1" title="Dissection and Discussion"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2577483"></a>Dissection and Discussion</h2></div></div></div><p>
     238        <a class="indexterm" name="id2577491"></a>
     239        <a class="indexterm" name="id2577498"></a>
     240        <a class="indexterm" name="id2577505"></a>
    241241        The implementation of Samba BDCs necessitates the installation and configuration of LDAP.
    242242        For this site, you use OpenLDAP, the open source software LDAP server platform. Commercial
    243243        LDAP servers in current use with Samba-3 include:
    244         </p><div class="itemizedlist"><ul type="disc"><li><p>
    245                 <a class="indexterm" name="id2571464"></a>
     244        </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
     245                <a class="indexterm" name="id2577522"></a>
    246246                Novell <a class="ulink" href="http://www.novell.com/products/edirectory/" target="_top">eDirectory</a>
    247247                is being successfully used by some sites. Information on how to use eDirectory can be
    248248                obtained from the Samba mailing lists or from Novell.
    249                 </p></li><li><p>
    250                 <a class="indexterm" name="id2571484"></a>
     249                </p></li><li class="listitem"><p>
     250                <a class="indexterm" name="id2577542"></a>
    251251                IBM <a class="ulink" href="http://www-306.ibm.com/software/tivoli/products/directory-server/" target="_top">Tivoli
    252252                Directory Server</a> can be used to provide the Samba LDAP backend. Example schema
    253253                files are provided in the Samba source code tarball under the directory
    254254                <code class="filename">~samba/example/LDAP.</code>
    255                 </p></li><li><p>
    256                 <a class="indexterm" name="id2571511"></a>
     255                </p></li><li class="listitem"><p>
     256                <a class="indexterm" name="id2577570"></a>
    257257                Sun <a class="ulink" href="http://www.sun.com/software/software/products/identity_srvr/home_identity.xml" target="_top">ONE Identity
    258258                Server product suite</a> provides an LDAP server that can be used for Samba.
     
    265265        help you to get OpenLDAP and Samba-3 running as required, albeit with some learning curve challenges.
    266266        </p><p>
    267         <a class="indexterm" name="id2571548"></a>
     267        <a class="indexterm" name="id2577607"></a>
    268268        For most sites, the deployment of Microsoft Active Directory from the shrink-wrapped installation is quite
    269269        adequate. If you are migrating from Microsoft Active Directory, be warned that OpenLDAP does not include
     
    271271        requires an understanding of what you are doing, why you are doing it, and the tools that you must use.
    272272        </p><p>
    273         <a class="indexterm" name="id2571566"></a>
    274         <a class="indexterm" name="id2571573"></a>
    275         <a class="indexterm" name="id2571580"></a>
    276         <a class="indexterm" name="id2571589"></a>
    277         <a class="indexterm" name="id2571598"></a>
    278         <a class="indexterm" name="id2571605"></a>
    279         <a class="indexterm" name="id2571614"></a>
     273        <a class="indexterm" name="id2577624"></a>
     274        <a class="indexterm" name="id2577631"></a>
     275        <a class="indexterm" name="id2577638"></a>
     276        <a class="indexterm" name="id2577647"></a>
     277        <a class="indexterm" name="id2577657"></a>
     278        <a class="indexterm" name="id2577663"></a>
     279        <a class="indexterm" name="id2577673"></a>
    280280        When installed and configured, an OpenLDAP Identity Management backend for Samba functions well.
    281281        High availability operation may be obtained through directory replication/synchronization and
     
    287287        with Microsoft Active Directory.
    288288        </p><p>
    289         <a class="indexterm" name="id2571639"></a>
    290         <a class="indexterm" name="id2571649"></a>
    291         <a class="indexterm" name="id2571656"></a>
    292         <a class="indexterm" name="id2571663"></a>
     289        <a class="indexterm" name="id2577698"></a>
     290        <a class="indexterm" name="id2577707"></a>
     291        <a class="indexterm" name="id2577714"></a>
     292        <a class="indexterm" name="id2577721"></a>
    293293        A comparison of OpenLDAP with Microsoft Active Directory does not do justice to either. OpenLDAP is an LDAP directory
    294294        tool-set. Microsoft Active Directory Server is an implementation of an LDAP server that is largely preconfigured
     
    301301        of OpenLDAP.
    302302        </p><p>
    303         <a class="indexterm" name="id2571692"></a>
    304         <a class="indexterm" name="id2571701"></a>
     303        <a class="indexterm" name="id2577751"></a>
     304        <a class="indexterm" name="id2577760"></a>
    305305        You may wish to consider outsourcing the development of your OpenLDAP directory to an expert, particularly
    306306        if you find the challenge of learning about LDAP directories, schemas, configuration, and management
     
    310310        that is required for use as a passdb backend.
    311311        </p><p>
    312         <a class="indexterm" name="id2571719"></a>
     312        <a class="indexterm" name="id2577778"></a>
    313313        For those who are willing to brave the process of installing and configuring LDAP and Samba-3 interoperability,
    314314        there are a few nice Web-based tools that may help you to manage your users and groups more effectively.
     
    324324        <a class="ulink" href="http://www.jxplorer.org/" target="_top">; JXplorer</a> (by Computer Associates);
    325325        and <a class="ulink" href="http://phpldapadmin.sourceforge.net/" target="_top">phpLDAPadmin</a>.
    326         </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     326        </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    327327        The following prescriptive guidance is not an LDAP tutorial. The LDAP implementation expressly uses minimal
    328328        security controls. No form of secure LDAP communications is attempted. The LDAP configuration information provided
     
    335335        by Jerry Carter quite useful.
    336336        </p><p>
    337         <a class="indexterm" name="id2571817"></a>
    338         <a class="indexterm" name="id2571824"></a>
    339         <a class="indexterm" name="id2571833"></a>
    340         <a class="indexterm" name="id2571840"></a>
     337        <a class="indexterm" name="id2577876"></a>
     338        <a class="indexterm" name="id2577882"></a>
     339        <a class="indexterm" name="id2577892"></a>
     340        <a class="indexterm" name="id2577898"></a>
    341341        Mary's problems are due to two factors. First, the absence of a domain controller on the local network is the
    342342        main cause of the errors that result in blue screen crashes. Second, Mary has a large profile that must
     
    346346        staff morale. The following procedures solve this problem.
    347347        </p><p>
    348         <a class="indexterm" name="id2571862"></a>
     348        <a class="indexterm" name="id2577921"></a>
    349349        There is also an opportunity to implement smart printing features. You add this to the Samba configuration
    350350        so that future printer changes can be managed without need to change desktop configurations.
     
    353353        in the default desktop profile. Only one example of printing configuration is given. It is assumed that
    354354        you can extrapolate the principles and use them to install all printers that may be needed.
    355         </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2571882"></a>Technical Issues</h3></div></div></div><p>
    356         <a class="indexterm" name="id2571890"></a>
    357         <a class="indexterm" name="id2571899"></a>
    358         <a class="indexterm" name="id2571908"></a>
     355        </p><div class="sect2" title="Technical Issues"><div class="titlepage"><div><div><h3 class="title"><a name="id2577941"></a>Technical Issues</h3></div></div></div><p>
     356        <a class="indexterm" name="id2577949"></a>
     357        <a class="indexterm" name="id2577958"></a>
     358        <a class="indexterm" name="id2577967"></a>
    359359        The solution provided is a minimal approach to getting OpenLDAP running as an identity management directory
    360360        server for UNIX system accounts as well as for Samba. From the OpenLDAP perspective, UNIX system
    361361        accounts are stored POSIX schema extensions. Samba provides its own schema to permit storage of account
    362362        attributes Samba needs. Samba-3 can use the LDAP backend to store:
    363         </p><div class="itemizedlist"><ul type="disc"><li><p>Windows Networking User Accounts</p></li><li><p>Windows NT Group Accounts</p></li><li><p>Mapping Information between UNIX Groups and Windows NT Groups</p></li><li><p>ID Mappings for SIDs to UIDs (also for foreign Domain SIDs)</p></li></ul></div><p>
    364         <a class="indexterm" name="id2571949"></a>
    365         <a class="indexterm" name="id2571956"></a>
    366         <a class="indexterm" name="id2571963"></a>
    367         <a class="indexterm" name="id2571970"></a>
    368         <a class="indexterm" name="id2571977"></a>
    369         <a class="indexterm" name="id2571984"></a>
    370         <a class="indexterm" name="id2571993"></a>
    371         <a class="indexterm" name="id2571999"></a>
    372         <a class="indexterm" name="id2572006"></a>
     363        </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Windows Networking User Accounts</p></li><li class="listitem"><p>Windows NT Group Accounts</p></li><li class="listitem"><p>Mapping Information between UNIX Groups and Windows NT Groups</p></li><li class="listitem"><p>ID Mappings for SIDs to UIDs (also for foreign Domain SIDs)</p></li></ul></div><p>
     364        <a class="indexterm" name="id2578008"></a>
     365        <a class="indexterm" name="id2578015"></a>
     366        <a class="indexterm" name="id2578022"></a>
     367        <a class="indexterm" name="id2578028"></a>
     368        <a class="indexterm" name="id2578035"></a>
     369        <a class="indexterm" name="id2578042"></a>
     370        <a class="indexterm" name="id2578051"></a>
     371        <a class="indexterm" name="id2578058"></a>
     372        <a class="indexterm" name="id2578064"></a>
    373373        The use of LDAP with Samba-3 makes it necessary to store UNIX accounts as well as Windows Networking
    374374        accounts in the LDAP backend. This implies the need to use the
     
    379379        of the UNIX username to the UID. The relationships are demonstrated in <a class="link" href="happy.html#sbehap-LDAPdiag" title="Figure 5.1. The Interaction of LDAP, UNIX Posix Accounts and Samba Accounts">&#8220;The Interaction of LDAP, UNIX Posix Accounts and Samba Accounts&#8221;</a>.
    380380        </p><div class="figure"><a name="sbehap-LDAPdiag"></a><p class="title"><b>Figure 5.1. The Interaction of LDAP, UNIX Posix Accounts and Samba Accounts</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/UNIX-Samba-and-LDAP.png" width="270" alt="The Interaction of LDAP, UNIX Posix Accounts and Samba Accounts"></div></div></div><br class="figure-break"><p>
    381         <a class="indexterm" name="id2572091"></a>
    382         <a class="indexterm" name="id2572098"></a>
     381        <a class="indexterm" name="id2578150"></a>
     382        <a class="indexterm" name="id2578157"></a>
    383383        You configure OpenLDAP so that it is operational. Before deploying the OpenLDAP, you really
    384384        ought to learn how to configure secure communications over LDAP so that site security is not
    385385        at risk. This is not covered in the following guidance.
    386386        </p><p>
    387         <a class="indexterm" name="id2572115"></a>
    388         <a class="indexterm" name="id2572121"></a>
    389         <a class="indexterm" name="id2572131"></a>
    390         <a class="indexterm" name="id2572138"></a>
     387        <a class="indexterm" name="id2578173"></a>
     388        <a class="indexterm" name="id2578180"></a>
     389        <a class="indexterm" name="id2578189"></a>
     390        <a class="indexterm" name="id2578196"></a>
    391391        When OpenLDAP has been made operative, you configure the PDC called <code class="constant">MASSIVE</code>.
    392392        You initialize the Samba <code class="filename">secrets.tdb<sub></sub></code> file. Then you
     
    396396        that help to manage user and group configuration.
    397397        </p><p>
    398         <a class="indexterm" name="id2572172"></a>
    399         <a class="indexterm" name="id2572178"></a>
    400         <a class="indexterm" name="id2572185"></a>
     398        <a class="indexterm" name="id2578230"></a>
     399        <a class="indexterm" name="id2578237"></a>
     400        <a class="indexterm" name="id2578244"></a>
    401401        In order to effect folder redirection and to add robustness to the implementation,
    402402        create a network default profile. All network users workstations are configured to use
     
    404404        when the user logs off.
    405405        </p><p>
    406         <a class="indexterm" name="id2572205"></a>
     406        <a class="indexterm" name="id2578263"></a>
    407407        The profile is configured so that users cannot change the appearance
    408408        of their desktop. This is known as a mandatory profile. You make certain that users
    409409        are able to use their computers efficiently.
    410410        </p><p>
    411         <a class="indexterm" name="id2572218"></a>
     411        <a class="indexterm" name="id2578277"></a>
    412412        A network logon script is used to deliver flexible but consistent network drive
    413413        connections.
    414         </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="sbehap-ppc"></a>Addition of Machines to the Domain</h4></div></div></div><p>
    415                 <a class="indexterm" name="id2572240"></a>
    416                 <a class="indexterm" name="id2572245"></a>
    417                 <a class="indexterm" name="id2572251"></a>
    418                 <a class="indexterm" name="id2572256"></a>
     414        </p><div class="sect3" title="Addition of Machines to the Domain"><div class="titlepage"><div><div><h4 class="title"><a name="sbehap-ppc"></a>Addition of Machines to the Domain</h4></div></div></div><p>
     415                <a class="indexterm" name="id2578299"></a>
     416                <a class="indexterm" name="id2578304"></a>
     417                <a class="indexterm" name="id2578309"></a>
     418                <a class="indexterm" name="id2578315"></a>
    419419                Samba versions prior to 3.0.11 necessitated the use of a domain administrator account
    420420                that maps to the UNIX UID=0. The UNIX operating system permits only the <code class="constant">root</code>
     
    426426                how any user can now be given the ability to add machines to the domain using a normal user account
    427427                that has been given the appropriate privileges.
    428                 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2572394"></a>Roaming Profile Background</h4></div></div></div><p>
     428                </p></div><div class="sect3" title="Roaming Profile Background"><div class="titlepage"><div><div><h4 class="title"><a name="id2578452"></a>Roaming Profile Background</h4></div></div></div><p>
    429429                As XP roaming profiles grow, so does the amount of time it takes to log in and out.
    430430                </p><p>
    431                 <a class="indexterm" name="id2572407"></a>
    432                 <a class="indexterm" name="id2572414"></a>
    433                 <a class="indexterm" name="id2572420"></a>
    434                 <a class="indexterm" name="id2572427"></a>
     431                <a class="indexterm" name="id2578465"></a>
     432                <a class="indexterm" name="id2578472"></a>
     433                <a class="indexterm" name="id2578479"></a>
     434                <a class="indexterm" name="id2578486"></a>
    435435                An XP roaming profile consists of the <code class="constant">HKEY_CURRENT_USER</code> hive file
    436436                <code class="filename">NTUSER.DAT</code> and a number of folders (My Documents, Application Data,
     
    454454                instead of the <code class="filename">My Documents</code> folder for saving documents.
    455455                </p><p>
    456                 <a class="indexterm" name="id2572506"></a>
     456                <a class="indexterm" name="id2578565"></a>
    457457                Using a folder other than <code class="filename">My Documents</code> is a nuisance for
    458458                some users, since many applications use it by default.
    459459                </p><p>
    460                 <a class="indexterm" name="id2572524"></a>
    461                 <a class="indexterm" name="id2572531"></a>
    462                 <a class="indexterm" name="id2572538"></a>
     460                <a class="indexterm" name="id2578583"></a>
     461                <a class="indexterm" name="id2578590"></a>
     462                <a class="indexterm" name="id2578597"></a>
    463463                The secret to rapid loading of roaming profiles is to prevent unnecessary data from
    464464                being copied back and forth, without losing any functionality. This is not difficult;
     
    466466                as changing some paths in each user's <code class="filename">NTUSER.DAT</code> hive.
    467467                </p><p>
    468                 <a class="indexterm" name="id2572559"></a>
    469                 <a class="indexterm" name="id2572566"></a>
     468                <a class="indexterm" name="id2578618"></a>
     469                <a class="indexterm" name="id2578625"></a>
    470470                Every user profile has its own <code class="filename">NTUSER.DAT</code> file. This means
    471471                you need to edit every user's profile, unless a better method can be
     
    475475                necessary to copy all files from redirected folders to the network share to which
    476476                they are redirected.
    477                 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="sbehap-locgrppol"></a>The Local Group Policy</h4></div></div></div><p>
    478                 <a class="indexterm" name="id2572607"></a>
    479                 <a class="indexterm" name="id2572614"></a>
    480                 <a class="indexterm" name="id2572620"></a>
    481                 <a class="indexterm" name="id2572627"></a>
     477                </p></div><div class="sect3" title="The Local Group Policy"><div class="titlepage"><div><div><h4 class="title"><a name="sbehap-locgrppol"></a>The Local Group Policy</h4></div></div></div><p>
     478                <a class="indexterm" name="id2578665"></a>
     479                <a class="indexterm" name="id2578672"></a>
     480                <a class="indexterm" name="id2578679"></a>
     481                <a class="indexterm" name="id2578686"></a>
    482482                Without an Active Directory PDC, you cannot take full advantage of Group Policy
    483483                Objects. However, you can still make changes to the Local Group Policy by using
     
    488488                <span class="guimenu">User Configuration</span> &#8594; <span class="guimenuitem">Administrative Templates</span> &#8594; <span class="guimenuitem">System</span> &#8594; <span class="guimenuitem">User Profiles</span>.
    489489                By default this setting contains
    490                 &#8220;<span class="quote">Local Settings; Temporary Internet Files; History; Temp</span>&#8221;.
     490                <span class="quote">&#8220;<span class="quote">Local Settings; Temporary Internet Files; History; Temp</span>&#8221;</span>.
    491491                </p><p>
    492492                Simply add the folders you do not wish to be copied back and forth to this
    493493                semicolon-separated list. Note that this change must be made on all clients
    494494                that are using roaming profiles.
    495                 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2572694"></a>Profile Changes</h4></div></div></div><p>
    496                 <a class="indexterm" name="id2572702"></a>
    497                 <a class="indexterm" name="id2572709"></a>
     495                </p></div><div class="sect3" title="Profile Changes"><div class="titlepage"><div><div><h4 class="title"><a name="id2578753"></a>Profile Changes</h4></div></div></div><p>
     496                <a class="indexterm" name="id2578761"></a>
     497                <a class="indexterm" name="id2578768"></a>
    498498                There are two changes that should be done to each user's profile. Move each of
    499499                the directories that you have excluded from being copied back and forth out of
     
    502502                path (<code class="filename">C:\Documents and Settings\%USERNAME%</code>).
    503503                </p><p>
    504                 <a class="indexterm" name="id2572737"></a>
    505                 <a class="indexterm" name="id2572744"></a>
     504                <a class="indexterm" name="id2578795"></a>
     505                <a class="indexterm" name="id2578802"></a>
    506506                The above modifies existing user profiles. So that newly created profiles have
    507507                these settings, you need to modify the <code class="filename">NTUSER.DAT</code> in
     
    510510                <code class="filename">NTUSER.DAT</code> to a Linux box and using <code class="literal">regedt32</code>.
    511511                The basic method is described under <a class="link" href="happy.html#redirfold" title="Configuration of Default Profile with Folder Redirection">&#8220;Configuration of Default Profile with Folder Redirection&#8221;</a>.
    512                 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2572788"></a>Using a Network Default User Profile</h4></div></div></div><p>
    513                 <a class="indexterm" name="id2572797"></a>
    514                 <a class="indexterm" name="id2572804"></a>
     512                </p></div><div class="sect3" title="Using a Network Default User Profile"><div class="titlepage"><div><div><h4 class="title"><a name="id2578847"></a>Using a Network Default User Profile</h4></div></div></div><p>
     513                <a class="indexterm" name="id2578855"></a>
     514                <a class="indexterm" name="id2578862"></a>
    515515                If you are using Samba as your PDC, you should create a file share called
    516516                <code class="constant">NETLOGON</code> and within that create a directory called
     
    521521                See also <a class="ulink" href="http://isg.ee.ethz.ch/tools/realmen/det/skel.en.html" target="_top">
    522522                the Real Men Don't Click</a> Web site.
    523                 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2572847"></a>Installation of Printer Driver Auto-Download</h4></div></div></div><p>
    524                 <a class="indexterm" name="id2572855"></a>
    525                 <a class="indexterm" name="id2572865"></a>
    526                 <a class="indexterm" name="id2572872"></a>
     523                </p></div><div class="sect3" title="Installation of Printer Driver Auto-Download"><div class="titlepage"><div><div><h4 class="title"><a name="id2578906"></a>Installation of Printer Driver Auto-Download</h4></div></div></div><p>
     524                <a class="indexterm" name="id2578914"></a>
     525                <a class="indexterm" name="id2578923"></a>
     526                <a class="indexterm" name="id2578930"></a>
    527527                The subject of printing is quite topical. Printing problems run second place to name
    528528                resolution issues today. So far in this book, you have experienced only what is generally
    529                 known as &#8220;<span class="quote">dumb</span>&#8221; printing. Dumb printing is the arrangement by which all drivers
     529                known as <span class="quote">&#8220;<span class="quote">dumb</span>&#8221;</span> printing. Dumb printing is the arrangement by which all drivers
    530530                are manually installed on each client and the printing subsystems perform no filtering
    531531                or intelligent processing. Dumb printing is easily understood. It usually works without
     
    533533                <code class="literal">Raw-Print-Through</code> printing.
    534534                </p><p>
    535                 <a class="indexterm" name="id2572900"></a>
    536                 <a class="indexterm" name="id2572910"></a>
     535                <a class="indexterm" name="id2578959"></a>
     536                <a class="indexterm" name="id2578968"></a>
    537537                Samba permits the configuration of <code class="literal">smart</code> printing using the Microsoft
    538538                Windows point-and-click (also called drag-and-drop) printing. What this provides is
     
    548548                suited to the printer to which the job is dispatched.
    549549                </p><p>
    550                 <a class="indexterm" name="id2572957"></a>
    551                 <a class="indexterm" name="id2572963"></a>
    552                 <a class="indexterm" name="id2572970"></a>
     550                <a class="indexterm" name="id2579015"></a>
     551                <a class="indexterm" name="id2579022"></a>
     552                <a class="indexterm" name="id2579029"></a>
    553553                The CUPS printing subsystem is capable of intelligent printing. It has the capacity to
    554554                detect the data format and apply a print filter. This means that it is feasible to install
     
    567567                style of installation. Those interested in further information regarding intelligent
    568568                printing should review documentation on the Easy Software Products Web site.
    569                 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="sbeavoid"></a>Avoiding Failures: Solving Problems Before They Happen</h4></div></div></div><p>
     569                </p></div><div class="sect3" title="Avoiding Failures: Solving Problems Before They Happen"><div class="titlepage"><div><div><h4 class="title"><a name="sbeavoid"></a>Avoiding Failures: Solving Problems Before They Happen</h4></div></div></div><p>
    570570                It has often been said that there are three types of people in the world: those who
    571571                have sharp minds and those who forget things. Please do not ask what the third group
     
    575575                </p><p>
    576576                Here are some diagnostic guidelines that can be referred to when things go wrong:
    577                 </p><div class="sect4" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id2573037"></a>Preliminary Advice: Dangers Can Be Avoided</h5></div></div></div><p>
    578                 The best advice regarding how to mend a broken leg is &#8220;<span class="quote">Never break a leg!</span>&#8221;
    579                 </p><p>
    580                 <a class="indexterm" name="id2573053"></a>
     577                </p><div class="sect4" title="Preliminary Advice: Dangers Can Be Avoided"><div class="titlepage"><div><div><h5 class="title"><a name="id2579096"></a>Preliminary Advice: Dangers Can Be Avoided</h5></div></div></div><p>
     578                The best advice regarding how to mend a broken leg is <span class="quote">&#8220;<span class="quote">Never break a leg!</span>&#8221;</span>
     579                </p><p>
     580                <a class="indexterm" name="id2579112"></a>
    581581                Newcomers to Samba and LDAP seem to struggle a great deal at first.  If you want advice
    582                 regarding the best way to remedy LDAP and Samba problems: &#8220;<span class="quote">Avoid them like the plague!</span>&#8221;
     582                regarding the best way to remedy LDAP and Samba problems: <span class="quote">&#8220;<span class="quote">Avoid them like the plague!</span>&#8221;</span>
    583583                </p><p>
    584584                If you are now asking yourself how problems can be avoided, the best advice is to start
     
    590590                that they could serve as the kick-off point for your journey through fields of knowledge.
    591591                Use this resource carefully; we hope it serves you well.
    592                 </p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
     592                </p><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
    593593                Do not be lulled into thinking that you can easily adopt the examples in this
    594594                book and adapt them without first working through the examples provided. A little
    595595                thing overlooked can cause untold pain and may permanently tarnish your experience.
    596                 </p></div></div><div class="sect4" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id2573097"></a>The Name Service Caching Daemon</h5></div></div></div><p>
     596                </p></div></div><div class="sect4" title="The Name Service Caching Daemon"><div class="titlepage"><div><div><h5 class="title"><a name="id2579156"></a>The Name Service Caching Daemon</h5></div></div></div><p>
    597597                The name service caching daemon (nscd) is a primary cause of difficulties with name
    598598                resolution, particularly where <code class="literal">winbind</code> is used. Winbind does its
     
    661661<code class="prompt">root# </code> rcnscd off
    662662</pre><p>
    663                 </p></div><div class="sect4" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id2573271"></a>Debugging LDAP</h5></div></div></div><p>
    664                 <a class="indexterm" name="id2573279"></a>
    665                 <a class="indexterm" name="id2573286"></a>
    666                 <a class="indexterm" name="id2573293"></a>
     663                </p></div><div class="sect4" title="Debugging LDAP"><div class="titlepage"><div><div><h5 class="title"><a name="id2579330"></a>Debugging LDAP</h5></div></div></div><p>
     664                <a class="indexterm" name="id2579338"></a>
     665                <a class="indexterm" name="id2579345"></a>
     666                <a class="indexterm" name="id2579351"></a>
    667667                In the example <code class="filename">/etc/openldap/slapd.conf</code> control file
    668668                (see <a class="link" href="happy.html#sbehap-dbconf" title="Example 5.1. LDAP DB_CONFIG File">&#8220;LDAP DB_CONFIG File&#8221;</a>) there is an entry for <code class="constant">loglevel      256</code>.
     
    670670                and restart <code class="literal">slapd</code>.
    671671                </p><p>
    672                 <a class="indexterm" name="id2573328"></a>
    673                 <a class="indexterm" name="id2573335"></a>
     672                <a class="indexterm" name="id2579387"></a>
     673                <a class="indexterm" name="id2579394"></a>
    674674                LDAP log information can be directed into a file that is separate from the normal system
    675675                log files by changing the <code class="filename">/etc/syslog.conf</code> file so it has the following
     
    690690                customization with the intent that LDAP log files will be stored at a location
    691691                that meets local site needs and wishes more fully.
    692                 </p></div><div class="sect4" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id2573377"></a>Debugging NSS_LDAP</h5></div></div></div><p>
     692                </p></div><div class="sect4" title="Debugging NSS_LDAP"><div class="titlepage"><div><div><h5 class="title"><a name="id2579436"></a>Debugging NSS_LDAP</h5></div></div></div><p>
    693693                The basic mechanism for diagnosing problems with the nss_ldap utility involves adding to the
    694694                <code class="filename">/etc/ldap.conf</code> file the following parameters:
     
    703703                </p><p>
    704704                The diagnostic process should follow these steps:
    705                 </p><div class="procedure"><a name="id2573421"></a><p class="title"><b>Procedure 5.1. NSS_LDAP Diagnostic Steps</b></p><ol type="1"><li><p>
     705                </p><div class="procedure" title="Procedure 5.1. NSS_LDAP Diagnostic Steps"><a name="id2579479"></a><p class="title"><b>Procedure 5.1. NSS_LDAP Diagnostic Steps</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    706706                        Verify the <code class="constant">nss_base_passwd, nss_base_shadow, nss_base_group</code> entries
    707707                        in the <code class="filename">/etc/ldap.conf</code> file and compare them closely with the directory
     
    740740                        has been implemented:
    741741                        </p><p>
    742                         </p><div class="itemizedlist"><ul type="disc"><li><p>User accounts are stored under the DIT: ou=Users, dc=abmas, dc=biz</p></li><li><p>User login accounts are under the DIT: ou=People, ou-Users, dc=abmas, dc=biz</p></li><li><p>Computer accounts are under the DIT: ou=Computers, ou=Users, dc=abmas, dc=biz</p></li></ul></div><p>
     742                        </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>User accounts are stored under the DIT: ou=Users, dc=abmas, dc=biz</p></li><li class="listitem"><p>User login accounts are under the DIT: ou=People, ou-Users, dc=abmas, dc=biz</p></li><li class="listitem"><p>Computer accounts are under the DIT: ou=Computers, ou=Users, dc=abmas, dc=biz</p></li></ul></div><p>
    743743                        </p><p>
    744744                        The appropriate multiple entry for the <code class="constant">nss_base_passwd</code> directive
     
    748748nss_base_passwd ou=Computers,ou=Users,dc=abmas,dc=org?one
    749749</pre><p>
    750                         </p></li><li><p>
     750                        </p></li><li class="step" title="Step 2"><p>
    751751                        Perform lookups such as:
    752752</p><pre class="screen">
     
    756756                        for each such process executed. The contents of each file created in this directory
    757757                        may provide a hint as to the cause of the a problem that is under investigation.
    758                         </p></li><li><p>
     758                        </p></li><li class="step" title="Step 3"><p>
    759759                        For additional diagnostic information, check the contents of the <code class="filename">/var/log/messages</code>
    760760                        to see what error messages are being generated as a result of the LDAP lookups. Here is an example of
     
    789789
    790790</pre><p>
    791                         </p></li><li><p>
     791                        </p></li><li class="step" title="Step 4"><p>
    792792                        Check that the bindpw entry in the <code class="filename">/etc/ldap.conf</code> or in the
    793793                        <code class="filename">/etc/ldap.secrets</code> file is correct, as specified in the
    794794                        <code class="filename">/etc/openldap/slapd.conf</code> file.
    795                         </p></li></ol></div></div><div class="sect4" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id2573672"></a>Debugging Samba</h5></div></div></div><p>
     795                        </p></li></ol></div></div><div class="sect4" title="Debugging Samba"><div class="titlepage"><div><div><h5 class="title"><a name="id2579730"></a>Debugging Samba</h5></div></div></div><p>
    796796                The following parameters in the <code class="filename">smb.conf</code> file can be useful in tracking down Samba-related problems:
    797797</p><pre class="screen">
     
    823823                Search for hints of what may have failed by looking for the words <span class="emphasis"><em>fail</em></span>
    824824                and <span class="emphasis"><em>error</em></span>.
    825                 </p></div><div class="sect4" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id2573743"></a>Debugging on the Windows Client</h5></div></div></div><p>
     825                </p></div><div class="sect4" title="Debugging on the Windows Client"><div class="titlepage"><div><div><h5 class="title"><a name="id2579801"></a>Debugging on the Windows Client</h5></div></div></div><p>
    826826                MS Windows 2000 Professional and Windows  XP Professional clients can be configured
    827827                to create a netlogon.log file that can be very helpful in diagnosing network logon problems. Search
    828828                the Microsoft knowledge base for detailed instructions. The techniques vary a little with each
    829829                version of MS Windows.
    830                 </p></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2573760"></a>Political Issues</h3></div></div></div><p>
     830                </p></div></div></div><div class="sect2" title="Political Issues"><div class="titlepage"><div><div><h3 class="title"><a name="id2579819"></a>Political Issues</h3></div></div></div><p>
    831831                MS Windows network users are generally very sensitive to limits that may be imposed when
    832832                confronted with locked-down workstation configurations. The challenge you face must
    833833                be promoted as a choice between reliable, fast network operation and a constant flux   
    834834                of problems that result in user irritation.
    835                 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2573776"></a>Installation Checklist</h3></div></div></div><p>
     835                </p></div><div class="sect2" title="Installation Checklist"><div class="titlepage"><div><div><h3 class="title"><a name="id2579834"></a>Installation Checklist</h3></div></div></div><p>
    836836        You are starting a complex project. Even though you went through the installation of a complex
    837837        network in <a class="link" href="Big500users.html" title="Chapter 4. The 500-User Office">&#8220;The 500-User Office&#8221;</a>, this network is a bigger challenge because of the
     
    841841        been completed. The following task list may help you to keep track of the task items
    842842        that are covered:
    843         </p><div class="itemizedlist"><ul type="disc"><li><p>Samba-3 PDC Server Configuration</p><div class="orderedlist"><ol type="1"><li><p>DHCP and DNS servers</p></li><li><p>OpenLDAP server</p></li><li><p>PAM and NSS client tools</p></li><li><p>Samba-3 PDC</p></li><li><p>Idealx smbldap scripts</p></li><li><p>LDAP initialization</p></li><li><p>Create user and group accounts</p></li><li><p>Printers</p></li><li><p>Share point directory roots</p></li><li><p>Profile directories</p></li><li><p>Logon scripts</p></li><li><p>Configuration of user rights and privileges</p></li></ol></div></li><li><p>Samba-3 BDC Server Configuration</p><div class="orderedlist"><ol type="1"><li><p>DHCP and DNS servers</p></li><li><p>PAM and NSS client tools</p></li><li><p>Printers</p></li><li><p>Share point directory roots</p></li><li><p>Profiles directories</p></li></ol></div></li><li><p>Windows XP Client Configuration</p><div class="orderedlist"><ol type="1"><li><p>Default profile folder redirection</p></li><li><p>MS Outlook PST file relocation</p></li><li><p>Delete roaming profile on logout</p></li><li><p>Upload printer drivers to Samba servers</p></li><li><p>Install software</p></li><li><p>Creation of roll-out images</p></li></ol></div></li></ul></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2573956"></a>Samba Server Implementation</h2></div></div></div><p>
    844         <a class="indexterm" name="id2573964"></a>
    845         <a class="indexterm" name="id2573971"></a>
     843        </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Samba-3 PDC Server Configuration</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>DHCP and DNS servers</p></li><li class="listitem"><p>OpenLDAP server</p></li><li class="listitem"><p>PAM and NSS client tools</p></li><li class="listitem"><p>Samba-3 PDC</p></li><li class="listitem"><p>Idealx smbldap scripts</p></li><li class="listitem"><p>LDAP initialization</p></li><li class="listitem"><p>Create user and group accounts</p></li><li class="listitem"><p>Printers</p></li><li class="listitem"><p>Share point directory roots</p></li><li class="listitem"><p>Profile directories</p></li><li class="listitem"><p>Logon scripts</p></li><li class="listitem"><p>Configuration of user rights and privileges</p></li></ol></div></li><li class="listitem"><p>Samba-3 BDC Server Configuration</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>DHCP and DNS servers</p></li><li class="listitem"><p>PAM and NSS client tools</p></li><li class="listitem"><p>Printers</p></li><li class="listitem"><p>Share point directory roots</p></li><li class="listitem"><p>Profiles directories</p></li></ol></div></li><li class="listitem"><p>Windows XP Client Configuration</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>Default profile folder redirection</p></li><li class="listitem"><p>MS Outlook PST file relocation</p></li><li class="listitem"><p>Delete roaming profile on logout</p></li><li class="listitem"><p>Upload printer drivers to Samba servers</p></li><li class="listitem"><p>Install software</p></li><li class="listitem"><p>Creation of roll-out images</p></li></ol></div></li></ul></div></div></div><div class="sect1" title="Samba Server Implementation"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2580015"></a>Samba Server Implementation</h2></div></div></div><p>
     844        <a class="indexterm" name="id2580023"></a>
     845        <a class="indexterm" name="id2580030"></a>
    846846        The network design shown in <a class="link" href="happy.html#chap6net" title="Figure 5.2. Network Topology 500 User Network Using ldapsam passdb backend">&#8220;Network Topology  500 User Network Using ldapsam passdb backend&#8221;</a> is not comprehensive. It is assumed
    847847        that you will install additional file servers and possibly additional BDCs.
    848848        </p><div class="figure"><a name="chap6net"></a><p class="title"><b>Figure 5.2. Network Topology  500 User Network Using ldapsam passdb backend</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/chap6-net.png" width="270" alt="Network Topology 500 User Network Using ldapsam passdb backend"></div></div></div><br class="figure-break"><p>
    849         <a class="indexterm" name="id2574034"></a>
    850         <a class="indexterm" name="id2574041"></a>
     849        <a class="indexterm" name="id2580092"></a>
     850        <a class="indexterm" name="id2580099"></a>
    851851        All configuration files and locations are shown for SUSE Linux 9.2 and are equally valid for SUSE
    852852        Linux Enterprise Server 9. The file locations for Red Hat Linux are similar. You may need to
    853853        adjust the locations for your particular Linux system distribution/implementation.
    854         </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     854        </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    855855The following information applies to Samba-3.0.20 when used with the Idealx smbldap-tools
    856856scripts version 0.9.1. If using a different version of Samba or of the smbldap-tools tarball,
     
    868868        with newly installed Linux servers, you must complete the steps shown in
    869869        <a class="link" href="Big500users.html#ch5-dnshcp-setup" title="Installation of DHCP, DNS, and Samba Control Files">&#8220;Installation of DHCP, DNS, and Samba Control Files&#8221;</a> before commencing at <a class="link" href="happy.html#ldapsetup" title="OpenLDAP Server Configuration">&#8220;OpenLDAP Server Configuration&#8221;</a>.
    870         </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ldapsetup"></a>OpenLDAP Server Configuration</h3></div></div></div><p>
    871         <a class="indexterm" name="id2574122"></a>
    872         <a class="indexterm" name="id2574129"></a>
    873         <a class="indexterm" name="id2574136"></a>
     870        </p><div class="sect2" title="OpenLDAP Server Configuration"><div class="titlepage"><div><div><h3 class="title"><a name="ldapsetup"></a>OpenLDAP Server Configuration</h3></div></div></div><p>
     871        <a class="indexterm" name="id2580181"></a>
     872        <a class="indexterm" name="id2580187"></a>
     873        <a class="indexterm" name="id2580194"></a>
    874874        Confirm that the packages shown in <a class="link" href="happy.html#oldapreq" title="Table 5.2. Required OpenLDAP Linux Packages">&#8220;Required OpenLDAP Linux Packages&#8221;</a> are installed on your system.
    875875        </p><div class="table"><a name="oldapreq"></a><p class="title"><b>Table 5.2. Required OpenLDAP Linux Packages</b></p><div class="table-contents"><table summary="Required OpenLDAP Linux Packages" border="1"><colgroup><col align="left"><col align="left"><col align="left"></colgroup><thead><tr><th align="center">SUSE Linux 8.x</th><th align="center">SUSE Linux 9.x</th><th align="center">Red Hat Linux</th></tr></thead><tbody><tr><td align="left">nss_ldap</td><td align="left">nss_ldap</td><td align="left">nss_ldap</td></tr><tr><td align="left">pam_ldap</td><td align="left">pam_ldap</td><td align="left">pam_ldap</td></tr><tr><td align="left">openldap2</td><td align="left">openldap2</td><td align="left">openldap</td></tr><tr><td align="left">openldap2-client</td><td align="left">openldap2-client</td><td align="left"> </td></tr></tbody></table></div></div><br class="table-break"><p>
     
    877877        for bootstrapping the LDAP and Samba-3 configuration is relatively straightforward. If you
    878878        follow these guidelines, the resulting system should work fine.
    879         </p><div class="procedure"><a name="id2574268"></a><p class="title"><b>Procedure 5.2. OpenLDAP Server Configuration Steps</b></p><ol type="1"><li><p>
    880                 <a class="indexterm" name="id2574279"></a>
     879        </p><div class="procedure" title="Procedure 5.2. OpenLDAP Server Configuration Steps"><a name="id2580326"></a><p class="title"><b>Procedure 5.2. OpenLDAP Server Configuration Steps</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
     880                <a class="indexterm" name="id2580338"></a>
    881881                Install the file shown in <a class="link" href="happy.html#sbehap-slapdconf" title="Example 5.2. LDAP Master Configuration File /etc/openldap/slapd.conf Part A">&#8220;LDAP Master Configuration File  /etc/openldap/slapd.conf Part A&#8221;</a> in the directory
    882882                <code class="filename">/etc/openldap</code>.
    883                 </p></li><li><p>
    884                 <a class="indexterm" name="id2574307"></a>
    885                 <a class="indexterm" name="id2574314"></a>
    886                 <a class="indexterm" name="id2574321"></a>
     883                </p></li><li class="step" title="Step 2"><p>
     884                <a class="indexterm" name="id2580366"></a>
     885                <a class="indexterm" name="id2580373"></a>
     886                <a class="indexterm" name="id2580380"></a>
    887887                Remove all files from the directory <code class="filename">/data/ldap</code>, making certain that
    888888                the directory exists with permissions:
     
    892892</pre><p>
    893893                This may require you to add a user and a group account for LDAP if they do not exist.
    894                 </p></li><li><p>
    895                 <a class="indexterm" name="id2574357"></a>
     894                </p></li><li class="step" title="Step 3"><p>
     895                <a class="indexterm" name="id2580415"></a>
    896896                Install the file shown in <a class="link" href="happy.html#sbehap-dbconf" title="Example 5.1. LDAP DB_CONFIG File">&#8220;LDAP DB_CONFIG File&#8221;</a> in the directory
    897897                <code class="filename">/data/ldap</code>. In the event that this file is added after <code class="constant">ldap</code>
     
    899899                the <code class="constant">LDAP</code> server, executing the <code class="literal">db_recover</code> command inside the
    900900                <code class="filename">/data/ldap</code> directory, and then restarting the <code class="constant">LDAP</code> server.
    901                 </p></li><li><p>
    902                 <a class="indexterm" name="id2574410"></a>
     901                </p></li><li class="step" title="Step 4"><p>
     902                <a class="indexterm" name="id2580468"></a>
    903903                Performance logging can be enabled and should preferably be sent to a file on
    904904                a file system that is large enough to handle significantly sized logs. To enable
    905905                the logging at a verbose level to permit detailed analysis, uncomment the entry in
    906                 the <code class="filename">/etc/openldap/slapd.conf</code> shown as &#8220;<span class="quote">loglevel 256</span>&#8221;.
     906                the <code class="filename">/etc/openldap/slapd.conf</code> shown as <span class="quote">&#8220;<span class="quote">loglevel 256</span>&#8221;</span>.
    907907                </p><p>
    908908                Edit the <code class="filename">/etc/syslog.conf</code> file to add the following at the end
     
    975975index sambaDomainName       eq
    976976index default               sub
    977 </pre></div></div><br class="example-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sbehap-PAM-NSS"></a>PAM and NSS Client Configuration</h3></div></div></div><p>
    978         <a class="indexterm" name="id2574568"></a>
    979         <a class="indexterm" name="id2574575"></a>
    980         <a class="indexterm" name="id2574582"></a>
     977</pre></div></div><br class="example-break"></div><div class="sect2" title="PAM and NSS Client Configuration"><div class="titlepage"><div><div><h3 class="title"><a name="sbehap-PAM-NSS"></a>PAM and NSS Client Configuration</h3></div></div></div><p>
     978        <a class="indexterm" name="id2580627"></a>
     979        <a class="indexterm" name="id2580634"></a>
     980        <a class="indexterm" name="id2580640"></a>
    981981        The steps that follow involve configuration of LDAP, NSS LDAP-based resolution of users and
    982982        groups. Also, so that LDAP-based accounts can log onto the system, the steps ahead configure
    983983        the Pluggable Authentication Modules (PAM) to permit LDAP-based authentication.
    984984        </p><p>
    985         <a class="indexterm" name="id2574596"></a>
    986         <a class="indexterm" name="id2574606"></a>
     985        <a class="indexterm" name="id2580655"></a>
     986        <a class="indexterm" name="id2580664"></a>
    987987        Since you have chosen to put UNIX user and group accounts into the LDAP database, it is likely
    988988        that you may want to use them for UNIX system (Linux) local machine logons. This necessitates
     
    991991        module also has the ability to redirect authentication requests through LDAP.
    992992        </p><p>
    993         <a class="indexterm" name="id2574634"></a>
    994         <a class="indexterm" name="id2574641"></a>
    995         <a class="indexterm" name="id2574648"></a>
    996         <a class="indexterm" name="id2574655"></a>
     993        <a class="indexterm" name="id2580693"></a>
     994        <a class="indexterm" name="id2580699"></a>
     995        <a class="indexterm" name="id2580706"></a>
     996        <a class="indexterm" name="id2580713"></a>
    997997        You have chosen to configure these services by directly editing the system files, but of course, you
    998998        know that this configuration can be done using system tools provided by the Linux system vendor.
     
    10001000        configuration of SUSE Linux as an LDAP client. Red Hat Linux provides the <code class="literal">authconfig</code>
    10011001        tool for this.
    1002         </p><div class="procedure"><a name="id2574694"></a><p class="title"><b>Procedure 5.3. PAM and NSS Client Configuration Steps</b></p><div class="example"><a name="sbehap-nss01"></a><p class="title"><b>Example 5.4. Configuration File for NSS LDAP Support  <code class="filename">/etc/ldap.conf</code></b></p><div class="example-contents"><pre class="screen">
     1002        </p><div class="procedure" title="Procedure 5.3. PAM and NSS Client Configuration Steps"><a name="id2580753"></a><p class="title"><b>Procedure 5.3. PAM and NSS Client Configuration Steps</b></p><div class="example"><a name="sbehap-nss01"></a><p class="title"><b>Example 5.4. Configuration File for NSS LDAP Support  <code class="filename">/etc/ldap.conf</code></b></p><div class="example-contents"><pre class="screen">
    10031003host 127.0.0.1
    10041004
     
    10421042
    10431043ssl off
    1044 </pre></div></div><br class="example-break"><ol type="1"><li><p>
    1045                 <a class="indexterm" name="id2574706"></a>
    1046                 <a class="indexterm" name="id2574713"></a>
    1047                 <a class="indexterm" name="id2574720"></a>
     1044</pre></div></div><br class="example-break"><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
     1045                <a class="indexterm" name="id2580764"></a>
     1046                <a class="indexterm" name="id2580772"></a>
     1047                <a class="indexterm" name="id2580778"></a>
    10481048                Execute the following command to find where the <code class="filename">nss_ldap</code> module
    10491049                expects to find its control file:
     
    10521052</pre><p>
    10531053                The preferred and usual location is <code class="filename">/etc/ldap.conf</code>.
    1054                 </p></li><li><p>
     1054                </p></li><li class="step" title="Step 2"><p>
    10551055                On the server <code class="constant">MASSIVE</code>, install the file shown in
    10561056                <a class="link" href="happy.html#sbehap-nss01" title="Example 5.4. Configuration File for NSS LDAP Support /etc/ldap.conf">&#8220;Configuration File for NSS LDAP Support  /etc/ldap.conf&#8221;</a> into the path that was obtained from the step above.
    10571057                On the servers called <code class="constant">BLDG1</code> and <code class="constant">BLDG2</code>, install the file shown in
    10581058                <a class="link" href="happy.html#sbehap-nss02" title="Example 5.5. Configuration File for NSS LDAP Clients Support /etc/ldap.conf">&#8220;Configuration File for NSS LDAP Clients Support  /etc/ldap.conf&#8221;</a> into the path that was obtained from the step above.
    1059                 </p></li><li><p>
    1060                 <a class="indexterm" name="id2574854"></a>
     1059                </p></li><li class="step" title="Step 3"><p>
     1060                <a class="indexterm" name="id2580912"></a>
    10611061                Edit the NSS control file (<code class="filename">/etc/nsswitch.conf</code>) so that the lines that
    10621062                control user and group resolution will obtain information from the normal system files as
     
    10721072                WINS-based hostname resolution is deliberate so that all MS Windows client hostnames can be
    10731073                resolved to their IP addresses, whether or not they are DHCP clients.
    1074                 </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     1074                </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    10751075                Some Linux systems (Novell SUSE Linux in particular) add entries to the <code class="filename">nsswitch.conf</code>
    10761076                file that may cause operational problems with the configuration methods adopted in this book. It is
     
    10801080                Even at the risk of overstating the issue, incorrect and inappropriate configuration of the
    10811081                <code class="filename">nsswitch.conf</code> file is a significant cause of operational problems with LDAP.
    1082                 </p></li><li><p>
    1083                 <a class="indexterm" name="id2574929"></a>
     1082                </p></li><li class="step" title="Step 4"><p>
     1083                <a class="indexterm" name="id2580988"></a>
    10841084                For PAM LDAP configuration on this SUSE Linux 9.0 system, the simplest solution is to edit the following
    10851085                files in the <code class="filename">/etc/pam.d</code> directory: <code class="literal">login</code>, <code class="literal">password</code>,
     
    11031103</pre><p>
    11041104                </p><p>
    1105                 <a class="indexterm" name="id2575008"></a>
     1105                <a class="indexterm" name="id2581067"></a>
    11061106                On other Linux systems that do not have an LDAP-enabled <code class="literal">pam_unix2.so</code> module,
    11071107                you must edit these files by adding the <code class="literal">pam_ldap.so</code> modules as shown here:
     
    11261126                implementation, but if the <code class="literal">pam_unix2.so</code> on your system supports
    11271127                LDAP, you probably want to use it rather than add an additional module.
    1128                 </p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sbehap-massive"></a>Samba-3 PDC Configuration</h3></div></div></div><p>
    1129         <a class="indexterm" name="id2575091"></a>
     1128                </p></li></ol></div></div><div class="sect2" title="Samba-3 PDC Configuration"><div class="titlepage"><div><div><h3 class="title"><a name="sbehap-massive"></a>Samba-3 PDC Configuration</h3></div></div></div><p>
     1129        <a class="indexterm" name="id2581150"></a>
    11301130        Verify that the Samba-3.0.20 (or later) packages are installed on each SUSE Linux server
    11311131        before following the steps below. If Samba-3.0.20 (or later) is not installed, you have the
     
    11341134        Red Hat Fedora Core and Red Hat Enterprise Linux Server 3 and 4, are included on the CD-ROM that
    11351135        is included with this book.
    1136         </p><div class="procedure"><a name="id2575107"></a><p class="title"><b>Procedure 5.4. Configuration of PDC Called <code class="constant">MASSIVE</code></b></p><ol type="1"><li><p>
     1136        </p><div class="procedure" title="Procedure 5.4. Configuration of PDC Called MASSIVE"><a name="id2581166"></a><p class="title"><b>Procedure 5.4. Configuration of PDC Called <code class="constant">MASSIVE</code></b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    11371137                Install the files in <a class="link" href="happy.html#sbehap-massive-smbconfa" title="Example 5.6. LDAP Based smb.conf File, Server: MASSIVE global Section: Part A">&#8220;LDAP Based smb.conf File, Server: MASSIVE  global Section: Part A&#8221;</a>,
    11381138                <a class="link" href="happy.html#sbehap-massive-smbconfb" title="Example 5.7. LDAP Based smb.conf File, Server: MASSIVE global Section: Part B">&#8220;LDAP Based smb.conf File, Server: MASSIVE  global Section: Part B&#8221;</a>, <a class="link" href="happy.html#sbehap-shareconfa" title="Example 5.10. LDAP Based smb.conf File, Shares Section Part A">&#8220;LDAP Based smb.conf File, Shares Section  Part A&#8221;</a>,
     
    11431143                on the master file. The operational <code class="filename">smb.conf</code> is then generated as shown in
    11441144                the next step.
    1145                 </p></li><li><p>
    1146                 <a class="indexterm" name="id2575184"></a>
     1145                </p></li><li class="step" title="Step 2"><p>
     1146                <a class="indexterm" name="id2581242"></a>
    11471147                Create and verify the contents of the <code class="filename">smb.conf</code> file that is generated by:
    11481148</p><pre class="screen">
     
    11711171Press enter to see a dump of your service definitions
    11721172</pre><p>
    1173                 </p></li><li><p>
     1173                </p></li><li class="step" title="Step 3"><p>
    11741174                Delete all runtime files from prior Samba operation by executing (for SUSE
    11751175                Linux):
     
    11801180<code class="prompt">root# </code> rm /var/log/samba/*
    11811181</pre><p>
    1182                 </p></li><li><p>
    1183                 <a class="indexterm" name="id2575283"></a>
    1184                 <a class="indexterm" name="id2575290"></a>
     1182                </p></li><li class="step" title="Step 4"><p>
     1183                <a class="indexterm" name="id2581342"></a>
     1184                <a class="indexterm" name="id2581348"></a>
    11851185                Samba-3 communicates with the LDAP server. The password that it uses to
    11861186                authenticate to the LDAP server must be stored in the <code class="filename">secrets.tdb</code>
     
    11941194Setting stored password for "cn=Manager,dc=abmas,dc=biz" in secrets.tdb
    11951195</pre><p>
    1196                 </p></li><li><p>
    1197                 <a class="indexterm" name="id2575339"></a>
    1198                 <a class="indexterm" name="id2575345"></a>
     1196                </p></li><li class="step" title="Step 5"><p>
     1197                <a class="indexterm" name="id2581397"></a>
     1198                <a class="indexterm" name="id2581404"></a>
    11991199                Samba-3 generates a Windows Security Identifier (SID) only when <code class="literal">smbd</code>
    12001200                has been started. For this reason, you start Samba. After a few seconds delay,
     
    12271227                errors (the most common problem).  The use of the <code class="literal">testparm</code> is highly
    12281228                recommended to validate the contents of this file.
    1229                 </p></li><li><p>
     1229                </p></li><li class="step" title="Step 6"><p>
    12301230                When a positive domain SID has been reported, stop Samba.
    1231                 </p></li><li><p>
    1232                 <a class="indexterm" name="id2575457"></a>
    1233                 <a class="indexterm" name="id2575464"></a>
    1234                 <a class="indexterm" name="id2575471"></a>
    1235                 <a class="indexterm" name="id2575478"></a>
     1231                </p></li><li class="step" title="Step 7"><p>
     1232                <a class="indexterm" name="id2581516"></a>
     1233                <a class="indexterm" name="id2581523"></a>
     1234                <a class="indexterm" name="id2581530"></a>
     1235                <a class="indexterm" name="id2581536"></a>
    12361236                Configure the NFS server for your Linux system. So you can complete the steps that
    12371237                follow, enter into the <code class="filename">/etc/exports</code> the following entry:
     
    12511251        Your Samba-3 PDC is now ready to communicate with the LDAP password backend. Let's get on with
    12521252        configuration of the LDAP server.
    1253         </p><div class="example"><a name="sbehap-massive-smbconfa"></a><p class="title"><b>Example 5.6. LDAP Based <code class="filename">smb.conf</code> File, Server: MASSIVE  global Section: Part A</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2575564"></a><em class="parameter"><code>unix charset = LOCALE</code></em></td></tr><tr><td><a class="indexterm" name="id2575576"></a><em class="parameter"><code>workgroup = MEGANET2</code></em></td></tr><tr><td><a class="indexterm" name="id2575588"></a><em class="parameter"><code>netbios name = MASSIVE</code></em></td></tr><tr><td><a class="indexterm" name="id2575600"></a><em class="parameter"><code>interfaces = eth1, lo</code></em></td></tr><tr><td><a class="indexterm" name="id2575611"></a><em class="parameter"><code>bind interfaces only = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2575623"></a><em class="parameter"><code>passdb backend = ldapsam:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2575636"></a><em class="parameter"><code>enable privileges = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2575648"></a><em class="parameter"><code>username map = /etc/samba/smbusers</code></em></td></tr><tr><td><a class="indexterm" name="id2575660"></a><em class="parameter"><code>log level = 1</code></em></td></tr><tr><td><a class="indexterm" name="id2575671"></a><em class="parameter"><code>syslog = 0</code></em></td></tr><tr><td><a class="indexterm" name="id2575683"></a><em class="parameter"><code>log file = /var/log/samba/%m</code></em></td></tr><tr><td><a class="indexterm" name="id2575694"></a><em class="parameter"><code>max log size = 50</code></em></td></tr><tr><td><a class="indexterm" name="id2575706"></a><em class="parameter"><code>smb ports = 139</code></em></td></tr><tr><td><a class="indexterm" name="id2575718"></a><em class="parameter"><code>name resolve order = wins bcast hosts</code></em></td></tr><tr><td><a class="indexterm" name="id2575730"></a><em class="parameter"><code>time server = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2575742"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2575753"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2575766"></a><em class="parameter"><code>add user script = /opt/IDEALX/sbin/smbldap-useradd -m "%u"</code></em></td></tr><tr><td><a class="indexterm" name="id2575778"></a><em class="parameter"><code>delete user script = /opt/IDEALX/sbin/smbldap-userdel "%u"</code></em></td></tr><tr><td><a class="indexterm" name="id2575790"></a><em class="parameter"><code>add group script = /opt/IDEALX/sbin/smbldap-groupadd -p "%g"</code></em></td></tr><tr><td><a class="indexterm" name="id2575803"></a><em class="parameter"><code>delete group script = /opt/IDEALX/sbin/smbldap-groupdel "%g"</code></em></td></tr><tr><td><a class="indexterm" name="id2575815"></a><em class="parameter"><code>add user to group script = /opt/IDEALX/sbin/smbldap-groupmod -m "%u" "%g"</code></em></td></tr><tr><td><a class="indexterm" name="id2575828"></a><em class="parameter"><code>delete user from group script = /opt/IDEALX/sbin/smbldap-groupmod -x "%u" "%g"</code></em></td></tr><tr><td><a class="indexterm" name="id2575841"></a><em class="parameter"><code>set primary group script = /opt/IDEALX/sbin/smbldap-usermod -g "%g" "%u"</code></em></td></tr><tr><td><a class="indexterm" name="id2575854"></a><em class="parameter"><code>add machine script = /opt/IDEALX/sbin/smbldap-useradd -w "%u"</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="sbehap-massive-smbconfb"></a><p class="title"><b>Example 5.7. LDAP Based <code class="filename">smb.conf</code> File, Server: MASSIVE  global Section: Part B</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2575892"></a><em class="parameter"><code>logon script = scripts\logon.bat</code></em></td></tr><tr><td><a class="indexterm" name="id2575904"></a><em class="parameter"><code>logon path = \\%L\profiles\%U</code></em></td></tr><tr><td><a class="indexterm" name="id2575916"></a><em class="parameter"><code>logon drive = X:</code></em></td></tr><tr><td><a class="indexterm" name="id2575927"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2575939"></a><em class="parameter"><code>preferred master = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2575951"></a><em class="parameter"><code>wins support = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2575962"></a><em class="parameter"><code>ldap suffix = dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2575974"></a><em class="parameter"><code>ldap machine suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2575986"></a><em class="parameter"><code>ldap user suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2575998"></a><em class="parameter"><code>ldap group suffix = ou=Groups</code></em></td></tr><tr><td><a class="indexterm" name="id2576010"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr><tr><td><a class="indexterm" name="id2576022"></a><em class="parameter"><code>ldap admin dn = cn=Manager,dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2576034"></a><em class="parameter"><code>idmap backend = ldap:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2576047"></a><em class="parameter"><code>idmap uid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2576058"></a><em class="parameter"><code>idmap gid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2576070"></a><em class="parameter"><code>map acl inherit = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2576082"></a><em class="parameter"><code>printing = cups</code></em></td></tr><tr><td><a class="indexterm" name="id2576094"></a><em class="parameter"><code>printer admin = root, chrisr</code></em></td></tr></table></div></div><br class="example-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sbeidealx"></a>Install and Configure Idealx smbldap-tools Scripts</h3></div></div></div><p>
    1254         <a class="indexterm" name="id2576120"></a>
     1253        </p><div class="example"><a name="sbehap-massive-smbconfa"></a><p class="title"><b>Example 5.6. LDAP Based <code class="filename">smb.conf</code> File, Server: MASSIVE  global Section: Part A</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2581623"></a><em class="parameter"><code>unix charset = LOCALE</code></em></td></tr><tr><td><a class="indexterm" name="id2581635"></a><em class="parameter"><code>workgroup = MEGANET2</code></em></td></tr><tr><td><a class="indexterm" name="id2581646"></a><em class="parameter"><code>netbios name = MASSIVE</code></em></td></tr><tr><td><a class="indexterm" name="id2581658"></a><em class="parameter"><code>interfaces = eth1, lo</code></em></td></tr><tr><td><a class="indexterm" name="id2581670"></a><em class="parameter"><code>bind interfaces only = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2581682"></a><em class="parameter"><code>passdb backend = ldapsam:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2581694"></a><em class="parameter"><code>enable privileges = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2581706"></a><em class="parameter"><code>username map = /etc/samba/smbusers</code></em></td></tr><tr><td><a class="indexterm" name="id2581718"></a><em class="parameter"><code>log level = 1</code></em></td></tr><tr><td><a class="indexterm" name="id2581730"></a><em class="parameter"><code>syslog = 0</code></em></td></tr><tr><td><a class="indexterm" name="id2581741"></a><em class="parameter"><code>log file = /var/log/samba/%m</code></em></td></tr><tr><td><a class="indexterm" name="id2581753"></a><em class="parameter"><code>max log size = 50</code></em></td></tr><tr><td><a class="indexterm" name="id2581765"></a><em class="parameter"><code>smb ports = 139</code></em></td></tr><tr><td><a class="indexterm" name="id2581776"></a><em class="parameter"><code>name resolve order = wins bcast hosts</code></em></td></tr><tr><td><a class="indexterm" name="id2581788"></a><em class="parameter"><code>time server = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2581800"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2581812"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2581824"></a><em class="parameter"><code>add user script = /opt/IDEALX/sbin/smbldap-useradd -m "%u"</code></em></td></tr><tr><td><a class="indexterm" name="id2581836"></a><em class="parameter"><code>delete user script = /opt/IDEALX/sbin/smbldap-userdel "%u"</code></em></td></tr><tr><td><a class="indexterm" name="id2581849"></a><em class="parameter"><code>add group script = /opt/IDEALX/sbin/smbldap-groupadd -p "%g"</code></em></td></tr><tr><td><a class="indexterm" name="id2581861"></a><em class="parameter"><code>delete group script = /opt/IDEALX/sbin/smbldap-groupdel "%g"</code></em></td></tr><tr><td><a class="indexterm" name="id2581874"></a><em class="parameter"><code>add user to group script = /opt/IDEALX/sbin/smbldap-groupmod -m "%u" "%g"</code></em></td></tr><tr><td><a class="indexterm" name="id2581887"></a><em class="parameter"><code>delete user from group script = /opt/IDEALX/sbin/smbldap-groupmod -x "%u" "%g"</code></em></td></tr><tr><td><a class="indexterm" name="id2581900"></a><em class="parameter"><code>set primary group script = /opt/IDEALX/sbin/smbldap-usermod -g "%g" "%u"</code></em></td></tr><tr><td><a class="indexterm" name="id2581913"></a><em class="parameter"><code>add machine script = /opt/IDEALX/sbin/smbldap-useradd -w "%u"</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="sbehap-massive-smbconfb"></a><p class="title"><b>Example 5.7. LDAP Based <code class="filename">smb.conf</code> File, Server: MASSIVE  global Section: Part B</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id2581950"></a><em class="parameter"><code>logon script = scripts\logon.bat</code></em></td></tr><tr><td><a class="indexterm" name="id2581962"></a><em class="parameter"><code>logon path = \\%L\profiles\%U</code></em></td></tr><tr><td><a class="indexterm" name="id2581974"></a><em class="parameter"><code>logon drive = X:</code></em></td></tr><tr><td><a class="indexterm" name="id2581986"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2581997"></a><em class="parameter"><code>preferred master = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2582009"></a><em class="parameter"><code>wins support = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2582021"></a><em class="parameter"><code>ldap suffix = dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2582033"></a><em class="parameter"><code>ldap machine suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2582045"></a><em class="parameter"><code>ldap user suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2582057"></a><em class="parameter"><code>ldap group suffix = ou=Groups</code></em></td></tr><tr><td><a class="indexterm" name="id2582069"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr><tr><td><a class="indexterm" name="id2582081"></a><em class="parameter"><code>ldap admin dn = cn=Manager,dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2582093"></a><em class="parameter"><code>idmap backend = ldap:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2582105"></a><em class="parameter"><code>idmap uid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2582117"></a><em class="parameter"><code>idmap gid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2582129"></a><em class="parameter"><code>map acl inherit = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2582141"></a><em class="parameter"><code>printing = cups</code></em></td></tr><tr><td><a class="indexterm" name="id2582152"></a><em class="parameter"><code>printer admin = root, chrisr</code></em></td></tr></table></div></div><br class="example-break"></div><div class="sect2" title="Install and Configure Idealx smbldap-tools Scripts"><div class="titlepage"><div><div><h3 class="title"><a name="sbeidealx"></a>Install and Configure Idealx smbldap-tools Scripts</h3></div></div></div><p>
     1254        <a class="indexterm" name="id2582178"></a>
    12551255        The Idealx scripts, or equivalent, are necessary to permit Samba-3 to manage accounts
    12561256        on the LDAP server. You have chosen the Idealx scripts because they are the best-known
     
    12621262        <a class="ulink" href="http://samba.idealx.org/dist/smbldap-tools-0.9.1-1.src.rpm" target="_top">smbldap-tools-0.9.1-1.src.rpm</a>
    12631263        file that may be used to build an installable RPM package for your Linux system.
    1264         </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     1264        </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    12651265The smbldap-tools scripts can be installed in any convenient directory of your choice, in which case you must
    12661266change the path to them in your <code class="filename">smb.conf</code> file on the PDC (<code class="constant">MASSIVE</code>).
     
    12691269        The scripts are not needed on BDC machines because all LDAP updates are handled by
    12701270        the PDC alone.
    1271         </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2576187"></a>Installation of smbldap-tools from the Tarball</h4></div></div></div><p>
     1271        </p><div class="sect3" title="Installation of smbldap-tools from the Tarball"><div class="titlepage"><div><div><h4 class="title"><a name="id2582245"></a>Installation of smbldap-tools from the Tarball</h4></div></div></div><p>
    12721272        To perform a manual installation of the smbldap-tools scripts, the following procedure may be used:
    1273         </p><div class="procedure"><a name="idealxscript"></a><p class="title"><b>Procedure 5.5. Unpacking and Installation Steps for the <code class="constant">smbldap-tools</code> Tarball</b></p><ol type="1"><li><p>
     1273        </p><div class="procedure" title="Procedure 5.5. Unpacking and Installation Steps for the smbldap-tools Tarball"><a name="idealxscript"></a><p class="title"><b>Procedure 5.5. Unpacking and Installation Steps for the <code class="constant">smbldap-tools</code> Tarball</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    12741274                Create the <code class="filename">/opt/IDEALX/sbin</code> directory, and set its permissions
    12751275                and ownership as shown here:
     
    12821282<code class="prompt">root# </code> chmod 755 /etc/smbldap-tools
    12831283</pre><p>
    1284                 </p></li><li><p>
     1284                </p></li><li class="step" title="Step 2"><p>
    12851285                If you wish to use the downloaded tarball, unpack the smbldap-tools in a suitable temporary location.
    12861286                Change into either the directory extracted from the tarball or the smbldap-tools
    12871287                directory in your <code class="filename">/usr/share/doc/packages</code> directory tree.
    1288                 </p></li><li><p>
     1288                </p></li><li class="step" title="Step 3"><p>
    12891289                Copy all the <code class="filename">smbldap-*</code> and the <code class="filename">configure.pl</code> files into the
    12901290                <code class="filename">/opt/IDEALX/sbin</code> directory, as shown here:
     
    12981298<code class="prompt">root# </code> chmod 600 /etc/smbldap-tools/smbldap_bind.conf
    12991299</pre><p>
    1300                 </p></li><li><p>
     1300                </p></li><li class="step" title="Step 4"><p>
    13011301                The smbldap-tools scripts master control file must now be configured.
    13021302                Change to the <code class="filename">/opt/IDEALX/sbin</code> directory, then edit the
     
    13111311...
    13121312</pre><p>
    1313                 </p></li><li><p>
     1313                </p></li><li class="step" title="Step 5"><p>
    13141314                To complete the configuration of the smbldap-tools, set the permissions and ownership
    13151315                by executing the following commands:
     
    13211321                The smbldap-tools scripts are now ready for the configuration step outlined in
    13221322                <a class="link" href="happy.html#smbldap-init" title="Configuration of smbldap-tools">&#8220;Configuration of smbldap-tools&#8221;</a>.
    1323                 </p></li></ol></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2576439"></a>Installing smbldap-tools from the RPM Package</h4></div></div></div><p>
     1323                </p></li></ol></div></div><div class="sect3" title="Installing smbldap-tools from the RPM Package"><div class="titlepage"><div><div><h4 class="title"><a name="id2582498"></a>Installing smbldap-tools from the RPM Package</h4></div></div></div><p>
    13241324        In the event that you have elected to use the RPM package provided by Idealx, download the
    13251325        source RPM <code class="filename">smbldap-tools-0.9.1-1.src.rpm</code>, then follow this procedure:
    1326         </p><div class="procedure"><a name="id2576457"></a><p class="title"><b>Procedure 5.6. Installation Steps for <code class="constant">smbldap-tools</code> RPM's</b></p><ol type="1"><li><p>
     1326        </p><div class="procedure" title="Procedure 5.6. Installation Steps for smbldap-tools RPM's"><a name="id2582516"></a><p class="title"><b>Procedure 5.6. Installation Steps for <code class="constant">smbldap-tools</code> RPM's</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    13271327                Install the source RPM that has been downloaded as follows:
    13281328</p><pre class="screen">
    13291329<code class="prompt">root# </code> rpm -i smbldap-tools-0.9.1-1.src.rpm
    13301330</pre><p>
    1331                 </p></li><li><p>
     1331                </p></li><li class="step" title="Step 2"><p>
    13321332                Change into the directory in which the SPEC files are located. On SUSE Linux:
    13331333</p><pre class="screen">
     
    13381338<code class="prompt">root# </code> cd /usr/src/redhat/SPECS
    13391339</pre><p>
    1340                 </p></li><li><p>
     1340                </p></li><li class="step" title="Step 3"><p>
    13411341                Edit the <code class="filename">smbldap-tools.spec</code> file to change the value of the
    13421342                <code class="constant">_sysconfig</code> macro as shown here:
     
    13461346</pre><p>
    13471347                Note: Any suitable directory can be specified.
    1348                 </p></li><li><p>
     1348                </p></li><li class="step" title="Step 4"><p>
    13491349                Build the package by executing:
    13501350</p><pre class="screen">
     
    13531353                A build process that has completed without error will place the installable binary
    13541354                files in the directory <code class="filename">../RPMS/noarch</code>.
    1355                 </p></li><li><p>
     1355                </p></li><li class="step" title="Step 5"><p>
    13561356                Install the binary package by executing:
    13571357</p><pre class="screen">
     
    13611361        The Idealx scripts should now be ready for configuration using the steps outlined in
    13621362        <a class="link" href="happy.html#smbldap-init" title="Configuration of smbldap-tools">Configuration of smbldap-tools</a>.
    1363         </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="smbldap-init"></a>Configuration of smbldap-tools</h4></div></div></div><p>
     1363        </p></div><div class="sect3" title="Configuration of smbldap-tools"><div class="titlepage"><div><div><h4 class="title"><a name="smbldap-init"></a>Configuration of smbldap-tools</h4></div></div></div><p>
    13641364        Prior to use, the smbldap-tools must be configured to match the settings in the <code class="filename">smb.conf</code> file
    13651365        and to match the settings in the <code class="filename">/etc/openldap/slapd.conf</code> file. The assumption
     
    13691369        The smbldap-tools require that the NetBIOS name (machine name) of the Samba server be included
    13701370        in the <code class="filename">smb.conf</code> file.
    1371         </p><div class="procedure"><a name="id2576652"></a><p class="title"><b>Procedure 5.7. Configuration Steps for <code class="constant">smbldap-tools</code> to Enable Use</b></p><ol type="1"><li><p>
     1371        </p><div class="procedure" title="Procedure 5.7. Configuration Steps for smbldap-tools to Enable Use"><a name="id2582711"></a><p class="title"><b>Procedure 5.7. Configuration Steps for <code class="constant">smbldap-tools</code> to Enable Use</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    13721372                Change into the directory that contains the <code class="filename">configure.pl</code> script.
    13731373</p><pre class="screen">
    13741374<code class="prompt">root# </code> cd /opt/IDEALX/sbin
    13751375</pre><p>
    1376                 </p></li><li><p>
     1376                </p></li><li class="step" title="Step 2"><p>
    13771377                Execute the <code class="filename">configure.pl</code> script as follows:
    13781378</p><pre class="screen">
     
    14701470                address of the master LDAP server for both the master and the slave configuration
    14711471                prompts.
    1472                 </p></li><li><p>
     1472                </p></li><li class="step" title="Step 3"><p>
    14731473                Change to the directory that contains the <code class="filename">smbldap.conf</code> file,
    14741474                then verify its contents.
    14751475                </p></li></ol></div><p>
    14761476        The smbldap-tools are now ready for use.
    1477         </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2576854"></a>LDAP Initialization and Creation of User and Group Accounts</h3></div></div></div><p>
     1477        </p></div></div><div class="sect2" title="LDAP Initialization and Creation of User and Group Accounts"><div class="titlepage"><div><div><h3 class="title"><a name="id2582912"></a>LDAP Initialization and Creation of User and Group Accounts</h3></div></div></div><p>
    14781478        The LDAP database must be populated with well-known Windows domain user accounts and domain group
    14791479        accounts before Samba can be used. The following procedures step you through the process.
     
    14871487        </p><p>
    14881488        Addition of an account to the LDAP backend can be done in two ways:
    1489         </p><div class="itemizedlist"><ul type="disc"><li><p>
    1490                 <a class="indexterm" name="id2576888"></a>
    1491                 <a class="indexterm" name="id2576894"></a>
    1492                 <a class="indexterm" name="id2576901"></a>
    1493                 <a class="indexterm" name="id2576908"></a>
    1494                 <a class="indexterm" name="id2576915"></a>
    1495                 <a class="indexterm" name="id2576922"></a>
     1489        </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
     1490                <a class="indexterm" name="id2582946"></a>
     1491                <a class="indexterm" name="id2582953"></a>
     1492                <a class="indexterm" name="id2582960"></a>
     1493                <a class="indexterm" name="id2582966"></a>
     1494                <a class="indexterm" name="id2582973"></a>
     1495                <a class="indexterm" name="id2582980"></a>
    14961496                If you always have a user account in the <code class="filename">/etc/passwd</code> on every
    14971497                server or in a NIS(+) backend, it is not necessary to add POSIX accounts for them in
     
    15041504                migration tool to migrate all system accounts from either the <code class="filename">/etc/passwd</code>
    15051505                files, or from NIS, to LDAP.
    1506                 </p></li><li><p>
     1506                </p></li><li class="listitem"><p>
    15071507                If you decide that it is probably a good idea to add both the PosixAccount attributes
    15081508                as well as the SambaSamAccount attributes for each user, then a suitable script is needed.
     
    15111511                is included on the enclosed CD-ROM under <code class="filename">Chap06/Tools.</code>
    15121512                </p></li></ul></div><p>
    1513         <a class="indexterm" name="id2576982"></a>
     1513        <a class="indexterm" name="id2583040"></a>
    15141514        If you wish to have more control over how the LDAP database is initialized or
    15151515        if you don't want to use the Idealx smbldap-tools, you should refer to
    15161516        <a class="link" href="appendix.html" title="Chapter 15. A Collection of Useful Tidbits">&#8220;A Collection of Useful Tidbits&#8221;</a>, <a class="link" href="appendix.html#altldapcfg" title="Alternative LDAP Database Initialization">&#8220;Alternative LDAP Database Initialization&#8221;</a>.
    15171517        </p><p>
    1518         <a class="indexterm" name="id2577009"></a>
     1518        <a class="indexterm" name="id2583067"></a>
    15191519        The following steps initialize the LDAP database, and then you can add user and group
    15201520        accounts that Samba can use. You use the <code class="literal">smbldap-populate</code> to
    15211521        seed the LDAP database. You then manually add the accounts shown in <a class="link" href="happy.html#sbehap-bigacct" title="Table 5.3. Abmas Network Users and Groups">&#8220;Abmas Network Users and Groups&#8221;</a>.
    15221522        The list of users does not cover all 500 network users; it provides examples only.
    1523         </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    1524         <a class="indexterm" name="id2577038"></a>
    1525         <a class="indexterm" name="id2577047"></a>
    1526         <a class="indexterm" name="id2577056"></a>
     1523        </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     1524        <a class="indexterm" name="id2583097"></a>
     1525        <a class="indexterm" name="id2583106"></a>
     1526        <a class="indexterm" name="id2583115"></a>
    15271527        In the following examples, as the LDAP database is initialized, we do create a container
    15281528        for Computer (machine) accounts. In the Samba-3 <code class="filename">smb.conf</code> files, specific use is made
     
    15411541        are able to sidestep this limitation. This is the simpler solution that has been adopted
    15421542        in this chapter.
    1543         </p></div><div class="table"><a name="sbehap-bigacct"></a><p class="title"><b>Table 5.3. Abmas Network Users and Groups</b></p><div class="table-contents"><table summary="Abmas Network Users and Groups" border="1"><colgroup><col align="left"><col align="left"><col align="left"><col align="left"></colgroup><thead><tr><th align="center">Account Name</th><th align="center">Type</th><th align="center">ID</th><th align="center">Password</th></tr></thead><tbody><tr><td align="left">Robert Jordan</td><td align="left">User</td><td align="left">bobj</td><td align="left">n3v3r2l8</td></tr><tr><td align="left">Stanley Soroka</td><td align="left">User</td><td align="left">stans</td><td align="left">impl13dst4r</td></tr><tr><td align="left">Christine Roberson</td><td align="left">User</td><td align="left">chrisr</td><td align="left">S9n0nw4ll</td></tr><tr><td align="left">Mary Vortexis</td><td align="left">User</td><td align="left">maryv</td><td align="left">kw13t0n3</td></tr><tr><td align="left">Accounts</td><td align="left">Group</td><td align="left">Accounts</td><td align="left"> </td></tr><tr><td align="left">Finances</td><td align="left">Group</td><td align="left">Finances</td><td align="left"> </td></tr><tr><td align="left">Insurance</td><td align="left">Group</td><td align="left">PIOps</td><td align="left"> </td></tr></tbody></table></div></div><br class="table-break"><div class="procedure"><a name="creatacc"></a><p class="title"><b>Procedure 5.8. LDAP Directory Initialization Steps</b></p><ol type="1"><li><p>
     1543        </p></div><div class="table"><a name="sbehap-bigacct"></a><p class="title"><b>Table 5.3. Abmas Network Users and Groups</b></p><div class="table-contents"><table summary="Abmas Network Users and Groups" border="1"><colgroup><col align="left"><col align="left"><col align="left"><col align="left"></colgroup><thead><tr><th align="center">Account Name</th><th align="center">Type</th><th align="center">ID</th><th align="center">Password</th></tr></thead><tbody><tr><td align="left">Robert Jordan</td><td align="left">User</td><td align="left">bobj</td><td align="left">n3v3r2l8</td></tr><tr><td align="left">Stanley Soroka</td><td align="left">User</td><td align="left">stans</td><td align="left">impl13dst4r</td></tr><tr><td align="left">Christine Roberson</td><td align="left">User</td><td align="left">chrisr</td><td align="left">S9n0nw4ll</td></tr><tr><td align="left">Mary Vortexis</td><td align="left">User</td><td align="left">maryv</td><td align="left">kw13t0n3</td></tr><tr><td align="left">Accounts</td><td align="left">Group</td><td align="left">Accounts</td><td align="left"> </td></tr><tr><td align="left">Finances</td><td align="left">Group</td><td align="left">Finances</td><td align="left"> </td></tr><tr><td align="left">Insurance</td><td align="left">Group</td><td align="left">PIOps</td><td align="left"> </td></tr></tbody></table></div></div><br class="table-break"><div class="procedure" title="Procedure 5.8. LDAP Directory Initialization Steps"><a name="creatacc"></a><p class="title"><b>Procedure 5.8. LDAP Directory Initialization Steps</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    15441544                Start the LDAP server by executing:
    15451545</p><pre class="screen">
     
    15471547Starting ldap-server                           done
    15481548</pre><p>
    1549                 </p></li><li><p>
     1549                </p></li><li class="step" title="Step 2"><p>
    15501550                Change to the <code class="filename">/opt/IDEALX/sbin</code> directory.
    1551                 </p></li><li><p>
     1551                </p></li><li class="step" title="Step 3"><p>
    15521552                Execute the script that will populate the LDAP database as shown here:
    15531553</p><pre class="screen">
     
    15801580adding new entry: cn=Replicators,ou=Groups,dc=abmas,dc=biz
    15811581</pre><p>
    1582                 </p></li><li><p>
     1582                </p></li><li class="step" title="Step 4"><p>
    15831583                Edit the <code class="filename">/etc/smbldap-tools/smbldap.conf</code> file so that the following
    15841584                information is changed from:
     
    15931593sambaUnixIdPooldn="sambaDomainName=MEGANET2,dc=abmas,dc=biz"
    15941594</pre><p>
    1595                 </p></li><li><p>
     1595                </p></li><li class="step" title="Step 5"><p>
    15961596                It is necessary to restart the LDAP server as shown here:
    15971597</p><pre class="screen">
     
    16001600Starting ldap-server                                 done
    16011601</pre><p>
    1602                 </p></li><li><p>
    1603                 <a class="indexterm" name="id2577476"></a>
     1602                </p></li><li class="step" title="Step 6"><p>
     1603                <a class="indexterm" name="id2583535"></a>
    16041604                So that we can use a global IDMAP repository, the LDAP directory must have a container object for IDMAP data.
    16051605                There are several ways you can check that your LDAP database is able to receive IDMAP information. One of
     
    16101610ou: idmap
    16111611</pre><p>
    1612                 <a class="indexterm" name="id2577500"></a>
     1612                <a class="indexterm" name="id2583558"></a>
    16131613                If the execution of this command does not return IDMAP entries, you need to create an LDIF
    16141614                template file (see <a class="link" href="happy.html#sbehap-ldifadd" title="Example 5.12. LDIF IDMAP Add-On Load File File: /etc/openldap/idmap.LDIF">&#8220;LDIF IDMAP Add-On Load File  File: /etc/openldap/idmap.LDIF&#8221;</a>). You can add the required entries using
     
    16191619</pre><p>
    16201620                Samba automatically populates this LDAP directory container when it needs to.
    1621                 </p></li><li><p>
    1622                 <a class="indexterm" name="id2577540"></a>
     1621                </p></li><li class="step" title="Step 7"><p>
     1622                <a class="indexterm" name="id2583598"></a>
    16231623                It looks like all has gone well, as expected. Let's confirm that this is the case
    16241624                by running a few tests. First we check the contents of the database directly
     
    16571657</pre><p>
    16581658                This looks good so far.
    1659                 </p></li><li><p>
    1660                 <a class="indexterm" name="id2577591"></a>
     1659                </p></li><li class="step" title="Step 8"><p>
     1660                <a class="indexterm" name="id2583649"></a>
    16611661                The next step is to prove that the LDAP server is running and responds to a
    16621662                search request. Execute the following as shown (output has been cut to save space):
     
    17021702</pre><p>
    17031703                Good. It is all working just fine.
    1704                 </p></li><li><p>
    1705                 <a class="indexterm" name="id2577648"></a>
     1704                </p></li><li class="step" title="Step 9"><p>
     1705                <a class="indexterm" name="id2583706"></a>
    17061706                You must now make certain that the NSS resolver can interrogate LDAP also.
    17071707                Execute the following commands:
     
    17161716Domain Computers:x:553:
    17171717</pre><p>
    1718                 <a class="indexterm" name="id2577677"></a>
     1718                <a class="indexterm" name="id2583736"></a>
    17191719                This demonstrates that the <code class="literal">nss_ldap</code> library is functioning
    17201720                as it should. If these two steps fail to produce this information, refer to
     
    17221722                isolate the cause of the problem. Proceed to the next step only when the previous steps
    17231723                have been successfully completed.
    1724                 </p></li><li><p>
    1725                 <a class="indexterm" name="id2577708"></a>
    1726                 <a class="indexterm" name="id2577715"></a>
    1727                 <a class="indexterm" name="id2577722"></a>
     1724                </p></li><li class="step" title="Step 10"><p>
     1725                <a class="indexterm" name="id2583766"></a>
     1726                <a class="indexterm" name="id2583773"></a>
     1727                <a class="indexterm" name="id2583780"></a>
    17281728                Our database is now ready for the addition of network users. For each user for
    17291729                whom an account must be created, execute the following:
     
    17401740</pre><p>
    17411741                where <code class="constant">username</code> is the login ID for each user.
    1742                 </p></li><li><p>
    1743                 <a class="indexterm" name="id2577783"></a>
     1742                </p></li><li class="step" title="Step 11"><p>
     1743                <a class="indexterm" name="id2583841"></a>
    17441744                Now verify that the UNIX (POSIX) accounts can be resolved via NSS by executing the
    17451745                following:
     
    17571757</pre><p>
    17581758                This demonstrates that user account resolution via LDAP is working.
    1759                 </p></li><li><p>
     1759                </p></li><li class="step" title="Step 12"><p>
    17601760                This step will determine whether or not identity resolution is working correctly.
    17611761                Do not procede is this step fails, rather find the cause of the failure. The
     
    17681768                This confirms that the UNIX (POSIX) user account information can be resolved from LDAP
    17691769                by system tools that make a getentpw() system call.
    1770                 </p></li><li><p>
    1771                 <a class="indexterm" name="id2577849"></a>
     1770                </p></li><li class="step" title="Step 13"><p>
     1771                <a class="indexterm" name="id2583907"></a>
    17721772                The root account must have UID=0; if not, this means that operations conducted from
    17731773                a Windows client using tools such as the Domain User Manager fails under UNIX because
     
    17801780<code class="prompt">root# </code> ./smbldap-usermod -u 0 -d /root -s /bin/bash root
    17811781</pre><p>
    1782                 </p></li><li><p>
     1782                </p></li><li class="step" title="Step 14"><p>
    17831783                Verify that the changes just made to the <code class="constant">root</code> account were
    17841784                accepted by executing:
     
    17891789</pre><p>
    17901790                This demonstrates that the changes were accepted.
    1791                 </p></li><li><p>
     1791                </p></li><li class="step" title="Step 15"><p>
    17921792                Make certain that a home directory has been created for every user by listing the
    17931793                directories in <code class="filename">/home</code> as follows:
     
    18021802</pre><p>
    18031803                This is precisely what we want to see.
    1804                 </p></li><li><p>
    1805                 <a class="indexterm" name="id2577948"></a>
    1806                 <a class="indexterm" name="id2577955"></a>
     1804                </p></li><li class="step" title="Step 16"><p>
     1805                <a class="indexterm" name="id2584006"></a>
     1806                <a class="indexterm" name="id2584013"></a>
    18071807                The final validation step involves making certain that Samba-3 can obtain the user
    18081808                accounts from the LDAP ldapsam passwd backend. Execute the following command as shown:
     
    18341834</pre><p>
    18351835                This looks good. Of course, you fully expected that it would all work, didn't you?
    1836                 </p></li><li><p>
    1837                 <a class="indexterm" name="id2578000"></a>
     1836                </p></li><li class="step" title="Step 17"><p>
     1837                <a class="indexterm" name="id2584058"></a>
    18381838                Now you add the group accounts that are used on the Abmas network. Execute
    18391839                the following exactly as shown:
     
    18451845                The addition of groups does not involve keyboard interaction, so the lack of console
    18461846                output is of no concern.
    1847                 </p></li><li><p>
    1848                 <a class="indexterm" name="id2578042"></a>
     1847                </p></li><li class="step" title="Step 18"><p>
     1848                <a class="indexterm" name="id2584100"></a>
    18491849                You really do want to confirm that UNIX group resolution from LDAP is functioning
    18501850                as it should. Let's do this as shown here:
     
    18621862                The well-known special accounts (Domain Admins, Domain Users, Domain Guests), as well
    18631863                as our own site-specific group accounts, are correctly listed. This is looking good.
    1864                 </p></li><li><p>
    1865                 <a class="indexterm" name="id2578075"></a>
     1864                </p></li><li class="step" title="Step 19"><p>
     1865                <a class="indexterm" name="id2584133"></a>
    18661866                The final step we need to validate is that Samba can see all the Windows domain groups
    18671867                and that they are correctly mapped to the respective UNIX group account. To do this,
     
    18801880                the lines were shortened by replacing the middle value (1010554828) of the SID with the
    18811881                ellipsis (...).
    1882                 </p></li><li><p>
     1882                </p></li><li class="step" title="Step 20"><p>
    18831883                The server you have so carefully built is now ready for another important step. You
    18841884                start the Samba-3 server and validate its operation. Execute the following to render all
     
    18961896<code class="prompt">root# </code> rcwinbind start
    18971897</pre><p>
    1898                 </p></li><li><p>
     1898                </p></li><li class="step" title="Step 21"><p>
    18991899                The next step might seem a little odd at this point, but take note that you are about to
    19001900                start <code class="literal">winbindd</code>, which must be able to authenticate to the PDC via the
     
    19111911</pre><p>
    19121912                This indicates that the domain security account for the PDC has been correctly created.
    1913                 </p></li><li><p>
     1913                </p></li><li class="step" title="Step 22"><p>
    19141914                At this time it is necessary to restart <code class="literal">winbindd</code> so that it can
    19151915                correctly authenticate to the PDC. The following command achieves that:
     
    19171917<code class="prompt">root# </code> rcwinbind restart
    19181918</pre><p>
    1919                 </p></li><li><p>
    1920                 <a class="indexterm" name="id2578290"></a>
     1919                </p></li><li class="step" title="Step 23"><p>
     1920                <a class="indexterm" name="id2584348"></a>
    19211921                You may now check Samba-3 operation as follows:
    19221922</p><pre class="screen">
     
    19441944</pre><p>
    19451945        This shows that an anonymous connection is working.
    1946                 </p></li><li><p>
     1946                </p></li><li class="step" title="Step 24"><p>
    19471947                For your finale, let's try an authenticated connection:
    19481948</p><pre class="screen">
     
    19631963                </p></li></ol></div><p>
    19641964        The server <code class="constant">MASSIVE</code> is now configured, and it is time to move onto the next task.
    1965         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sbehap-ptrcfg"></a>Printer Configuration</h3></div></div></div><p>
    1966         <a class="indexterm" name="id2578401"></a>
     1965        </p></div><div class="sect2" title="Printer Configuration"><div class="titlepage"><div><div><h3 class="title"><a name="sbehap-ptrcfg"></a>Printer Configuration</h3></div></div></div><p>
     1966        <a class="indexterm" name="id2584459"></a>
    19671967        The configuration for Samba-3 to enable CUPS raw-print-through printing has already been
    19681968        taken care of in the <code class="filename">smb.conf</code> file. The only preparation needed for <code class="constant">smart</code>
    19691969        printing to be possible involves creation of the directories in which Samba-3 stores
    19701970        Windows printing driver files.
    1971         </p><div class="procedure"><a name="id2578423"></a><p class="title"><b>Procedure 5.9. Printer Configuration Steps</b></p><ol type="1"><li><p>
     1971        </p><div class="procedure" title="Procedure 5.9. Printer Configuration Steps"><a name="id2584481"></a><p class="title"><b>Procedure 5.9. Printer Configuration Steps</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    19721972                Configure all network-attached printers to have a fixed IP address.
    1973                 </p></li><li><p>
     1973                </p></li><li class="step" title="Step 2"><p>
    19741974                Create an entry in the DNS database on the server <code class="constant">MASSIVE</code>
    19751975                in both the forward lookup database for the zone <code class="constant">abmas.biz.hosts</code>
     
    19771977                be located in. Example configuration files for similar zones were presented in <a class="link" href="secure.html" title="Chapter 3. Secure Office Networking">&#8220;Secure Office Networking&#8221;</a>,
    19781978                <a class="link" href="secure.html#abmasbiz" title="Example 3.14. DNS Abmas.biz Forward Zone File">&#8220;DNS Abmas.biz Forward Zone File&#8221;</a> and in <a class="link" href="secure.html#eth2zone" title="Example 3.13. DNS 192.168.2 Reverse Zone File">&#8220;DNS 192.168.2 Reverse Zone File&#8221;</a>.
    1979                 </p></li><li><p>
     1979                </p></li><li class="step" title="Step 3"><p>
    19801980                Follow the instructions in the printer manufacturers' manuals to permit printing
    19811981                to port 9100.  Use any other port the manufacturer specifies for direct mode,
    19821982                raw printing.  This allows the CUPS spooler to print using raw mode protocols.
    1983                 <a class="indexterm" name="id2578484"></a>
    1984                 <a class="indexterm" name="id2578491"></a>
    1985                 </p></li><li><p>
    1986                 <a class="indexterm" name="id2578504"></a>
    1987                 <a class="indexterm" name="id2578511"></a>
     1983                <a class="indexterm" name="id2584542"></a>
     1984                <a class="indexterm" name="id2584549"></a>
     1985                </p></li><li class="step" title="Step 4"><p>
     1986                <a class="indexterm" name="id2584563"></a>
     1987                <a class="indexterm" name="id2584569"></a>
    19881988                Only on the server to which the printer is attached, configure the CUPS Print
    19891989                Queues as follows:
     
    19921992         -v socket://<em class="parameter"><code>printer-name</code></em>.abmas.biz:9100 -E
    19931993</pre><p>
    1994                 <a class="indexterm" name="id2578546"></a>
     1994                <a class="indexterm" name="id2584605"></a>
    19951995                This step creates the necessary print queue to use no assigned print filter. This
    19961996                is ideal for raw printing, that is, printing without use of filters.
    19971997                The name <em class="parameter"><code>printque</code></em> is the name you have assigned for
    19981998                the particular printer.
    1999                 </p></li><li><p>
     1999                </p></li><li class="step" title="Step 5"><p>
    20002000                Print queues may not be enabled at creation. Make certain that the queues
    20012001                you have just created are enabled by executing the following:
     
    20032003<code class="prompt">root# </code> /usr/bin/enable <em class="parameter"><code>printque</code></em>
    20042004</pre><p>
    2005                 </p></li><li><p>
     2005                </p></li><li class="step" title="Step 6"><p>
    20062006                Even though your print queue may be enabled, it is still possible that it
    20072007                may not accept print jobs. A print queue will service incoming printing
     
    20112011<code class="prompt">root# </code> /usr/bin/accept <em class="parameter"><code>printque</code></em>
    20122012</pre><p>
    2013                 </p></li><li><p>
    2014                 <a class="indexterm" name="id2578628"></a>
    2015                 <a class="indexterm" name="id2578635"></a>
    2016                 <a class="indexterm" name="id2578642"></a>
     2013                </p></li><li class="step" title="Step 7"><p>
     2014                <a class="indexterm" name="id2584686"></a>
     2015                <a class="indexterm" name="id2584693"></a>
     2016                <a class="indexterm" name="id2584700"></a>
    20172017                Edit the file <code class="filename">/etc/cups/mime.convs</code> to uncomment the line:
    20182018</p><pre class="screen">
    20192019application/octet-stream     application/vnd.cups-raw      0     -
    20202020</pre><p>
    2021                 </p></li><li><p>
    2022                  <a class="indexterm" name="id2578670"></a>
     2021                </p></li><li class="step" title="Step 8"><p>
     2022                 <a class="indexterm" name="id2584729"></a>
    20232023                 Edit the file <code class="filename">/etc/cups/mime.types</code> to uncomment the line:
    20242024</p><pre class="screen">
    20252025application/octet-stream
    20262026</pre><p>
    2027                 </p></li><li><p>
     2027                </p></li><li class="step" title="Step 9"><p>
    20282028                Refer to the CUPS printing manual for instructions regarding how to configure
    20292029                CUPS so that print queues that reside on CUPS servers on remote networks
     
    20312031                on your CUPS server may automatically discover remotely installed printers and
    20322032                may permit this functionality without requiring specific configuration.
    2033                 </p></li><li><p>
     2033                </p></li><li class="step" title="Step 10"><p>
    20342034                The following action creates the necessary directory subsystem. Follow these
    20352035                steps to printing heaven:
     
    20392039<code class="prompt">root# </code> chmod -R ug=rwx,o=rx /var/lib/samba/drivers
    20402040</pre><p>
    2041                 </p></li></ol></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sbehap-bldg1"></a>Samba-3 BDC Configuration</h2></div></div></div><div class="procedure"><a name="id2578754"></a><p class="title"><b>Procedure 5.10. Configuration of BDC Called: <code class="constant">BLDG1</code></b></p><ol type="1"><li><p>
     2041                </p></li></ol></div></div></div><div class="sect1" title="Samba-3 BDC Configuration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sbehap-bldg1"></a>Samba-3 BDC Configuration</h2></div></div></div><div class="procedure" title="Procedure 5.10. Configuration of BDC Called: BLDG1"><a name="id2584812"></a><p class="title"><b>Procedure 5.10. Configuration of BDC Called: <code class="constant">BLDG1</code></b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    20422042                Install the files in <a class="link" href="happy.html#sbehap-bldg1-smbconf" title="Example 5.8. LDAP Based smb.conf File, Server: BLDG1">&#8220;LDAP Based smb.conf File, Server: BLDG1&#8221;</a>,
    20432043                <a class="link" href="happy.html#sbehap-shareconfa" title="Example 5.10. LDAP Based smb.conf File, Shares Section Part A">&#8220;LDAP Based smb.conf File, Shares Section  Part A&#8221;</a>, and <a class="link" href="happy.html#sbehap-shareconfb" title="Example 5.11. LDAP Based smb.conf File, Shares Section Part B">&#8220;LDAP Based smb.conf File, Shares Section  Part B&#8221;</a>
    20442044                into the <code class="filename">/etc/samba/</code> directory. The three files
    20452045                should be added together to form the <code class="filename">smb.conf</code> file.
    2046                 </p></li><li><p>
     2046                </p></li><li class="step" title="Step 2"><p>
    20472047                Verify the <code class="filename">smb.conf</code> file as in step 2 of <a class="link" href="happy.html#sbehap-massive" title="Samba-3 PDC Configuration">&#8220;Samba-3 PDC Configuration&#8221;</a>.
    2048                 </p></li><li><p>
     2048                </p></li><li class="step" title="Step 3"><p>
    20492049                Carefully follow the steps outlined in <a class="link" href="happy.html#sbehap-PAM-NSS" title="PAM and NSS Client Configuration">&#8220;PAM and NSS Client Configuration&#8221;</a>, taking
    20502050                particular note to install the correct <code class="filename">ldap.conf</code>.
    2051                 </p></li><li><p>
     2051                </p></li><li class="step" title="Step 4"><p>
    20522052                Verify that the NSS resolver is working. You may need to cycle the run level
    20532053                to 1 and back to 5 before the NSS LDAP resolver functions. Follow these
     
    20812081</pre><p>
    20822082                This is the correct output. If the accounts that have UIDs above 512 are not shown, there is a problem.
    2083                 </p></li><li><p>
    2084                 <a class="indexterm" name="id2578914"></a>
     2083                </p></li><li class="step" title="Step 5"><p>
     2084                <a class="indexterm" name="id2584972"></a>
    20852085                The next step in the verification process involves testing the operation of UNIX group
    20862086                resolution via the NSS LDAP resolver. Execute these commands:
     
    21112111                This is also the correct and desired output, because it demonstrates that the LDAP client
    21122112                is able to communicate correctly with the LDAP server (<code class="constant">MASSIVE</code>).
    2113                 </p></li><li><p>
    2114                 <a class="indexterm" name="id2578955"></a>
     2113                </p></li><li class="step" title="Step 6"><p>
     2114                <a class="indexterm" name="id2585013"></a>
    21152115                You must now set the LDAP administrative password into the Samba-3 <code class="filename">secrets.tdb</code>
    21162116                file by executing this command:
     
    21192119Setting stored password for "cn=Manager,dc=abmas,dc=biz" in secrets.tdb
    21202120</pre><p>
    2121                 </p></li><li><p>
     2121                </p></li><li class="step" title="Step 7"><p>
    21222122                Now you must obtain the domain SID from the PDC and store it into the
    21232123                <code class="filename">secrets.tdb</code> file also. This step is not necessary with an LDAP
     
    21362136                thus requiring that the BDC should be joined to the domain. The process of joining
    21372137                the domain creates the necessary authentication accounts.
    2138                 </p></li><li><p>
     2138                </p></li><li class="step" title="Step 8"><p>
    21392139                To join the Samba BDC to the domain, execute the following:
    21402140</p><pre class="screen">
     
    21432143</pre><p>
    21442144                This indicates that the domain security account for the BDC has been correctly created.
    2145                 </p></li><li><p>
    2146                 <a class="indexterm" name="id2579056"></a>
     2145                </p></li><li class="step" title="Step 9"><p>
     2146                <a class="indexterm" name="id2585114"></a>
    21472147                Verify that user and group account resolution works via Samba-3 tools as follows:
    21482148</p><pre class="screen">
     
    21702170</pre><p>
    21712171                These results show that all things are in order.
    2172                 </p></li><li><p>
     2172                </p></li><li class="step" title="Step 10"><p>
    21732173                The server you have so carefully built is now ready for another important step. Now
    21742174                start the Samba-3 server and validate its operation. Execute the following to render all
     
    21862186</pre><p>
    21872187                Samba-3 should now be running and is ready for a quick test. But not quite yet!
    2188                 </p></li><li><p>
     2188                </p></li><li class="step" title="Step 11"><p>
    21892189                Your new <code class="constant">BLDG1, BLDG2</code> servers do not have home directories for users.
    21902190                To rectify this using the SUSE yast2 utility or by manually editing the <code class="filename">/etc/fstab</code>
     
    22062206massive:/home         29532988    283388  29249600   1% /home
    22072207</pre><p>
    2208                 </p></li><li><p>
     2208                </p></li><li class="step" title="Step 12"><p>
    22092209                Implement a quick check using one of the users that is in the LDAP database. Here you go:
    22102210</p><pre class="screen">
     
    22252225        Now that the first BDC (<code class="constant">BDLG1</code>) has been configured it is time to build
    22262226        and configure the second BDC server (<code class="constant">BLDG2</code>) as follows:
    2227         </p><div class="procedure"><a name="sbehap-bldg2"></a><p class="title"><b>Procedure 5.11. Configuration of BDC Called <code class="constant">BLDG2</code></b></p><ol type="1"><li><p>
     2227        </p><div class="procedure" title="Procedure 5.11. Configuration of BDC Called BLDG2"><a name="sbehap-bldg2"></a><p class="title"><b>Procedure 5.11. Configuration of BDC Called <code class="constant">BLDG2</code></b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    22282228                Install the files in <a class="link" href="happy.html#sbehap-bldg2-smbconf" title="Example 5.9. LDAP Based smb.conf File, Server: BLDG2">&#8220;LDAP Based smb.conf File, Server: BLDG2&#8221;</a>,
    22292229                <a class="link" href="happy.html#sbehap-shareconfa" title="Example 5.10. LDAP Based smb.conf File, Shares Section Part A">&#8220;LDAP Based smb.conf File, Shares Section  Part A&#8221;</a>, and <a class="link" href="happy.html#sbehap-shareconfb" title="Example 5.11. LDAP Based smb.conf File, Shares Section Part B">&#8220;LDAP Based smb.conf File, Shares Section  Part B&#8221;</a>
    22302230                into the <code class="filename">/etc/samba/</code> directory. The three files
    22312231                should be added together to form the <code class="filename">smb.conf</code> file.
    2232                 </p></li><li><p>
     2232                </p></li><li class="step" title="Step 2"><p>
    22332233                Follow carefully the steps shown in <a class="link" href="happy.html#sbehap-bldg1" title="Samba-3 BDC Configuration">&#8220;Samba-3 BDC Configuration&#8221;</a>, starting at step 2.
    2234                 </p></li></ol></div><div class="example"><a name="sbehap-bldg1-smbconf"></a><p class="title"><b>Example 5.8. LDAP Based <code class="filename">smb.conf</code> File, Server: BLDG1</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2579402"></a><em class="parameter"><code>unix charset = LOCALE</code></em></td></tr><tr><td><a class="indexterm" name="id2579413"></a><em class="parameter"><code>workgroup = MEGANET2</code></em></td></tr><tr><td><a class="indexterm" name="id2579425"></a><em class="parameter"><code>netbios name = BLDG1</code></em></td></tr><tr><td><a class="indexterm" name="id2579437"></a><em class="parameter"><code>passdb backend = ldapsam:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2579449"></a><em class="parameter"><code>enable privileges = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2579461"></a><em class="parameter"><code>username map = /etc/samba/smbusers</code></em></td></tr><tr><td><a class="indexterm" name="id2579473"></a><em class="parameter"><code>log level = 1</code></em></td></tr><tr><td><a class="indexterm" name="id2579485"></a><em class="parameter"><code>syslog = 0</code></em></td></tr><tr><td><a class="indexterm" name="id2579496"></a><em class="parameter"><code>log file = /var/log/samba/%m</code></em></td></tr><tr><td><a class="indexterm" name="id2579508"></a><em class="parameter"><code>max log size = 50</code></em></td></tr><tr><td><a class="indexterm" name="id2579520"></a><em class="parameter"><code>smb ports = 139</code></em></td></tr><tr><td><a class="indexterm" name="id2579531"></a><em class="parameter"><code>name resolve order = wins bcast hosts</code></em></td></tr><tr><td><a class="indexterm" name="id2579544"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2579555"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2579568"></a><em class="parameter"><code>logon script = scripts\logon.bat</code></em></td></tr><tr><td><a class="indexterm" name="id2579580"></a><em class="parameter"><code>logon path = \\%L\profiles\%U</code></em></td></tr><tr><td><a class="indexterm" name="id2579591"></a><em class="parameter"><code>logon drive = X:</code></em></td></tr><tr><td><a class="indexterm" name="id2579603"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2579615"></a><em class="parameter"><code>domain master = No</code></em></td></tr><tr><td><a class="indexterm" name="id2579626"></a><em class="parameter"><code>wins server = 172.16.0.1</code></em></td></tr><tr><td><a class="indexterm" name="id2579638"></a><em class="parameter"><code>ldap suffix = dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2579650"></a><em class="parameter"><code>ldap machine suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2579662"></a><em class="parameter"><code>ldap user suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2579674"></a><em class="parameter"><code>ldap group suffix = ou=Groups</code></em></td></tr><tr><td><a class="indexterm" name="id2579686"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr><tr><td><a class="indexterm" name="id2579698"></a><em class="parameter"><code>ldap admin dn = cn=Manager,dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2579710"></a><em class="parameter"><code>idmap backend = ldap:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2579722"></a><em class="parameter"><code>idmap uid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2579734"></a><em class="parameter"><code>idmap gid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2579746"></a><em class="parameter"><code>printing = cups</code></em></td></tr><tr><td><a class="indexterm" name="id2579758"></a><em class="parameter"><code>printer admin = root, chrisr</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="sbehap-bldg2-smbconf"></a><p class="title"><b>Example 5.9. LDAP Based <code class="filename">smb.conf</code> File, Server: BLDG2</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2579804"></a><em class="parameter"><code>unix charset = LOCALE</code></em></td></tr><tr><td><a class="indexterm" name="id2579816"></a><em class="parameter"><code>workgroup = MEGANET2</code></em></td></tr><tr><td><a class="indexterm" name="id2579828"></a><em class="parameter"><code>netbios name = BLDG2</code></em></td></tr><tr><td><a class="indexterm" name="id2579840"></a><em class="parameter"><code>passdb backend = ldapsam:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2579852"></a><em class="parameter"><code>enable privileges = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2579864"></a><em class="parameter"><code>username map = /etc/samba/smbusers</code></em></td></tr><tr><td><a class="indexterm" name="id2579876"></a><em class="parameter"><code>log level = 1</code></em></td></tr><tr><td><a class="indexterm" name="id2579887"></a><em class="parameter"><code>syslog = 0</code></em></td></tr><tr><td><a class="indexterm" name="id2579899"></a><em class="parameter"><code>log file = /var/log/samba/%m</code></em></td></tr><tr><td><a class="indexterm" name="id2579911"></a><em class="parameter"><code>max log size = 50</code></em></td></tr><tr><td><a class="indexterm" name="id2579922"></a><em class="parameter"><code>smb ports = 139</code></em></td></tr><tr><td><a class="indexterm" name="id2579934"></a><em class="parameter"><code>name resolve order = wins bcast hosts</code></em></td></tr><tr><td><a class="indexterm" name="id2579946"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2579958"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2579970"></a><em class="parameter"><code>logon script = scripts\logon.bat</code></em></td></tr><tr><td><a class="indexterm" name="id2579982"></a><em class="parameter"><code>logon path = \\%L\profiles\%U</code></em></td></tr><tr><td><a class="indexterm" name="id2579994"></a><em class="parameter"><code>logon drive = X:</code></em></td></tr><tr><td><a class="indexterm" name="id2580006"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2580017"></a><em class="parameter"><code>domain master = No</code></em></td></tr><tr><td><a class="indexterm" name="id2580029"></a><em class="parameter"><code>wins server = 172.16.0.1</code></em></td></tr><tr><td><a class="indexterm" name="id2580041"></a><em class="parameter"><code>ldap suffix = dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2580053"></a><em class="parameter"><code>ldap machine suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2580065"></a><em class="parameter"><code>ldap user suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2580077"></a><em class="parameter"><code>ldap group suffix = ou=Groups</code></em></td></tr><tr><td><a class="indexterm" name="id2580089"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr><tr><td><a class="indexterm" name="id2580101"></a><em class="parameter"><code>ldap admin dn = cn=Manager,dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2580113"></a><em class="parameter"><code>idmap backend = ldap:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2580125"></a><em class="parameter"><code>idmap uid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2580137"></a><em class="parameter"><code>idmap gid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2580148"></a><em class="parameter"><code>printing = cups</code></em></td></tr><tr><td><a class="indexterm" name="id2580160"></a><em class="parameter"><code>printer admin = root, chrisr</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="sbehap-shareconfa"></a><p class="title"><b>Example 5.10. LDAP Based <code class="filename">smb.conf</code> File, Shares Section  Part A</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[accounts]</code></em></td></tr><tr><td><a class="indexterm" name="id2580206"></a><em class="parameter"><code>comment = Accounting Files</code></em></td></tr><tr><td><a class="indexterm" name="id2580218"></a><em class="parameter"><code>path = /data/accounts</code></em></td></tr><tr><td><a class="indexterm" name="id2580230"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[service]</code></em></td></tr><tr><td><a class="indexterm" name="id2580250"></a><em class="parameter"><code>comment = Financial Services Files</code></em></td></tr><tr><td><a class="indexterm" name="id2580262"></a><em class="parameter"><code>path = /data/service</code></em></td></tr><tr><td><a class="indexterm" name="id2580274"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[pidata]</code></em></td></tr><tr><td><a class="indexterm" name="id2580294"></a><em class="parameter"><code>comment = Property Insurance Files</code></em></td></tr><tr><td><a class="indexterm" name="id2580306"></a><em class="parameter"><code>path = /data/pidata</code></em></td></tr><tr><td><a class="indexterm" name="id2580318"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[homes]</code></em></td></tr><tr><td><a class="indexterm" name="id2580338"></a><em class="parameter"><code>comment = Home Directories</code></em></td></tr><tr><td><a class="indexterm" name="id2580350"></a><em class="parameter"><code>valid users = %S</code></em></td></tr><tr><td><a class="indexterm" name="id2580362"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2580373"></a><em class="parameter"><code>browseable = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2580394"></a><em class="parameter"><code>comment = SMB Print Spool</code></em></td></tr><tr><td><a class="indexterm" name="id2580405"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2580417"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2580429"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2580440"></a><em class="parameter"><code>browseable = No</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="sbehap-shareconfb"></a><p class="title"><b>Example 5.11. LDAP Based <code class="filename">smb.conf</code> File, Shares Section  Part B</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[apps]</code></em></td></tr><tr><td><a class="indexterm" name="id2580486"></a><em class="parameter"><code>comment = Application Files</code></em></td></tr><tr><td><a class="indexterm" name="id2580498"></a><em class="parameter"><code>path = /apps</code></em></td></tr><tr><td><a class="indexterm" name="id2580509"></a><em class="parameter"><code>admin users = bjordan</code></em></td></tr><tr><td><a class="indexterm" name="id2580521"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[netlogon]</code></em></td></tr><tr><td><a class="indexterm" name="id2580542"></a><em class="parameter"><code>comment = Network Logon Service</code></em></td></tr><tr><td><a class="indexterm" name="id2580553"></a><em class="parameter"><code>path = /var/lib/samba/netlogon</code></em></td></tr><tr><td><a class="indexterm" name="id2580565"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2580577"></a><em class="parameter"><code>locking = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[profiles]</code></em></td></tr><tr><td><a class="indexterm" name="id2580597"></a><em class="parameter"><code>comment = Profile Share</code></em></td></tr><tr><td><a class="indexterm" name="id2580609"></a><em class="parameter"><code>path = /var/lib/samba/profiles</code></em></td></tr><tr><td><a class="indexterm" name="id2580621"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2580633"></a><em class="parameter"><code>profile acls = Yes</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[profdata]</code></em></td></tr><tr><td><a class="indexterm" name="id2580653"></a><em class="parameter"><code>comment = Profile Data Share</code></em></td></tr><tr><td><a class="indexterm" name="id2580665"></a><em class="parameter"><code>path = /var/lib/samba/profdata</code></em></td></tr><tr><td><a class="indexterm" name="id2580677"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2580689"></a><em class="parameter"><code>profile acls = Yes</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[print$]</code></em></td></tr><tr><td><a class="indexterm" name="id2580709"></a><em class="parameter"><code>comment = Printer Drivers</code></em></td></tr><tr><td><a class="indexterm" name="id2580721"></a><em class="parameter"><code>path = /var/lib/samba/drivers</code></em></td></tr><tr><td><a class="indexterm" name="id2580733"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2580744"></a><em class="parameter"><code>guest ok = no</code></em></td></tr><tr><td><a class="indexterm" name="id2580756"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2580768"></a><em class="parameter"><code>write list = root, chrisr</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="sbehap-ldifadd"></a><p class="title"><b>Example 5.12. LDIF IDMAP Add-On Load File  File: /etc/openldap/idmap.LDIF</b></p><div class="example-contents"><pre class="screen">
     2234                </p></li></ol></div><div class="example"><a name="sbehap-bldg1-smbconf"></a><p class="title"><b>Example 5.8. LDAP Based <code class="filename">smb.conf</code> File, Server: BLDG1</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2585460"></a><em class="parameter"><code>unix charset = LOCALE</code></em></td></tr><tr><td><a class="indexterm" name="id2585472"></a><em class="parameter"><code>workgroup = MEGANET2</code></em></td></tr><tr><td><a class="indexterm" name="id2585484"></a><em class="parameter"><code>netbios name = BLDG1</code></em></td></tr><tr><td><a class="indexterm" name="id2585496"></a><em class="parameter"><code>passdb backend = ldapsam:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2585508"></a><em class="parameter"><code>enable privileges = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2585520"></a><em class="parameter"><code>username map = /etc/samba/smbusers</code></em></td></tr><tr><td><a class="indexterm" name="id2585532"></a><em class="parameter"><code>log level = 1</code></em></td></tr><tr><td><a class="indexterm" name="id2585543"></a><em class="parameter"><code>syslog = 0</code></em></td></tr><tr><td><a class="indexterm" name="id2585555"></a><em class="parameter"><code>log file = /var/log/samba/%m</code></em></td></tr><tr><td><a class="indexterm" name="id2585567"></a><em class="parameter"><code>max log size = 50</code></em></td></tr><tr><td><a class="indexterm" name="id2585578"></a><em class="parameter"><code>smb ports = 139</code></em></td></tr><tr><td><a class="indexterm" name="id2585590"></a><em class="parameter"><code>name resolve order = wins bcast hosts</code></em></td></tr><tr><td><a class="indexterm" name="id2585602"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2585614"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2585626"></a><em class="parameter"><code>logon script = scripts\logon.bat</code></em></td></tr><tr><td><a class="indexterm" name="id2585638"></a><em class="parameter"><code>logon path = \\%L\profiles\%U</code></em></td></tr><tr><td><a class="indexterm" name="id2585650"></a><em class="parameter"><code>logon drive = X:</code></em></td></tr><tr><td><a class="indexterm" name="id2585662"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2585673"></a><em class="parameter"><code>domain master = No</code></em></td></tr><tr><td><a class="indexterm" name="id2585685"></a><em class="parameter"><code>wins server = 172.16.0.1</code></em></td></tr><tr><td><a class="indexterm" name="id2585697"></a><em class="parameter"><code>ldap suffix = dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2585709"></a><em class="parameter"><code>ldap machine suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2585721"></a><em class="parameter"><code>ldap user suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2585733"></a><em class="parameter"><code>ldap group suffix = ou=Groups</code></em></td></tr><tr><td><a class="indexterm" name="id2585745"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr><tr><td><a class="indexterm" name="id2585757"></a><em class="parameter"><code>ldap admin dn = cn=Manager,dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2585769"></a><em class="parameter"><code>idmap backend = ldap:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2585781"></a><em class="parameter"><code>idmap uid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2585793"></a><em class="parameter"><code>idmap gid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2585804"></a><em class="parameter"><code>printing = cups</code></em></td></tr><tr><td><a class="indexterm" name="id2585816"></a><em class="parameter"><code>printer admin = root, chrisr</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="sbehap-bldg2-smbconf"></a><p class="title"><b>Example 5.9. LDAP Based <code class="filename">smb.conf</code> File, Server: BLDG2</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2585863"></a><em class="parameter"><code>unix charset = LOCALE</code></em></td></tr><tr><td><a class="indexterm" name="id2585874"></a><em class="parameter"><code>workgroup = MEGANET2</code></em></td></tr><tr><td><a class="indexterm" name="id2585886"></a><em class="parameter"><code>netbios name = BLDG2</code></em></td></tr><tr><td><a class="indexterm" name="id2585898"></a><em class="parameter"><code>passdb backend = ldapsam:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2585910"></a><em class="parameter"><code>enable privileges = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2585922"></a><em class="parameter"><code>username map = /etc/samba/smbusers</code></em></td></tr><tr><td><a class="indexterm" name="id2585934"></a><em class="parameter"><code>log level = 1</code></em></td></tr><tr><td><a class="indexterm" name="id2585946"></a><em class="parameter"><code>syslog = 0</code></em></td></tr><tr><td><a class="indexterm" name="id2585957"></a><em class="parameter"><code>log file = /var/log/samba/%m</code></em></td></tr><tr><td><a class="indexterm" name="id2585969"></a><em class="parameter"><code>max log size = 50</code></em></td></tr><tr><td><a class="indexterm" name="id2585981"></a><em class="parameter"><code>smb ports = 139</code></em></td></tr><tr><td><a class="indexterm" name="id2585992"></a><em class="parameter"><code>name resolve order = wins bcast hosts</code></em></td></tr><tr><td><a class="indexterm" name="id2586005"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2586016"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2586029"></a><em class="parameter"><code>logon script = scripts\logon.bat</code></em></td></tr><tr><td><a class="indexterm" name="id2586041"></a><em class="parameter"><code>logon path = \\%L\profiles\%U</code></em></td></tr><tr><td><a class="indexterm" name="id2586052"></a><em class="parameter"><code>logon drive = X:</code></em></td></tr><tr><td><a class="indexterm" name="id2586064"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2586076"></a><em class="parameter"><code>domain master = No</code></em></td></tr><tr><td><a class="indexterm" name="id2586088"></a><em class="parameter"><code>wins server = 172.16.0.1</code></em></td></tr><tr><td><a class="indexterm" name="id2586099"></a><em class="parameter"><code>ldap suffix = dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2586111"></a><em class="parameter"><code>ldap machine suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2586123"></a><em class="parameter"><code>ldap user suffix = ou=People</code></em></td></tr><tr><td><a class="indexterm" name="id2586135"></a><em class="parameter"><code>ldap group suffix = ou=Groups</code></em></td></tr><tr><td><a class="indexterm" name="id2586147"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr><tr><td><a class="indexterm" name="id2586159"></a><em class="parameter"><code>ldap admin dn = cn=Manager,dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id2586171"></a><em class="parameter"><code>idmap backend = ldap:ldap://massive.abmas.biz</code></em></td></tr><tr><td><a class="indexterm" name="id2586184"></a><em class="parameter"><code>idmap uid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2586195"></a><em class="parameter"><code>idmap gid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id2586207"></a><em class="parameter"><code>printing = cups</code></em></td></tr><tr><td><a class="indexterm" name="id2586219"></a><em class="parameter"><code>printer admin = root, chrisr</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="sbehap-shareconfa"></a><p class="title"><b>Example 5.10. LDAP Based <code class="filename">smb.conf</code> File, Shares Section  Part A</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td> </td></tr><tr><td><em class="parameter"><code>[accounts]</code></em></td></tr><tr><td><a class="indexterm" name="id2586265"></a><em class="parameter"><code>comment = Accounting Files</code></em></td></tr><tr><td><a class="indexterm" name="id2586277"></a><em class="parameter"><code>path = /data/accounts</code></em></td></tr><tr><td><a class="indexterm" name="id2586288"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[service]</code></em></td></tr><tr><td><a class="indexterm" name="id2586309"></a><em class="parameter"><code>comment = Financial Services Files</code></em></td></tr><tr><td><a class="indexterm" name="id2586320"></a><em class="parameter"><code>path = /data/service</code></em></td></tr><tr><td><a class="indexterm" name="id2586332"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[pidata]</code></em></td></tr><tr><td><a class="indexterm" name="id2586353"></a><em class="parameter"><code>comment = Property Insurance Files</code></em></td></tr><tr><td><a class="indexterm" name="id2586365"></a><em class="parameter"><code>path = /data/pidata</code></em></td></tr><tr><td><a class="indexterm" name="id2586376"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[homes]</code></em></td></tr><tr><td><a class="indexterm" name="id2586397"></a><em class="parameter"><code>comment = Home Directories</code></em></td></tr><tr><td><a class="indexterm" name="id2586408"></a><em class="parameter"><code>valid users = %S</code></em></td></tr><tr><td><a class="indexterm" name="id2586420"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2586432"></a><em class="parameter"><code>browseable = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2586452"></a><em class="parameter"><code>comment = SMB Print Spool</code></em></td></tr><tr><td><a class="indexterm" name="id2586464"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2586476"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2586487"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2586499"></a><em class="parameter"><code>browseable = No</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="sbehap-shareconfb"></a><p class="title"><b>Example 5.11. LDAP Based <code class="filename">smb.conf</code> File, Shares Section  Part B</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td> </td></tr><tr><td><em class="parameter"><code>[apps]</code></em></td></tr><tr><td><a class="indexterm" name="id2586545"></a><em class="parameter"><code>comment = Application Files</code></em></td></tr><tr><td><a class="indexterm" name="id2586557"></a><em class="parameter"><code>path = /apps</code></em></td></tr><tr><td><a class="indexterm" name="id2586568"></a><em class="parameter"><code>admin users = bjordan</code></em></td></tr><tr><td><a class="indexterm" name="id2586580"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[netlogon]</code></em></td></tr><tr><td><a class="indexterm" name="id2586600"></a><em class="parameter"><code>comment = Network Logon Service</code></em></td></tr><tr><td><a class="indexterm" name="id2586612"></a><em class="parameter"><code>path = /var/lib/samba/netlogon</code></em></td></tr><tr><td><a class="indexterm" name="id2586624"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2586635"></a><em class="parameter"><code>locking = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[profiles]</code></em></td></tr><tr><td><a class="indexterm" name="id2586656"></a><em class="parameter"><code>comment = Profile Share</code></em></td></tr><tr><td><a class="indexterm" name="id2586668"></a><em class="parameter"><code>path = /var/lib/samba/profiles</code></em></td></tr><tr><td><a class="indexterm" name="id2586680"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2586691"></a><em class="parameter"><code>profile acls = Yes</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[profdata]</code></em></td></tr><tr><td><a class="indexterm" name="id2586712"></a><em class="parameter"><code>comment = Profile Data Share</code></em></td></tr><tr><td><a class="indexterm" name="id2586724"></a><em class="parameter"><code>path = /var/lib/samba/profdata</code></em></td></tr><tr><td><a class="indexterm" name="id2586736"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2586747"></a><em class="parameter"><code>profile acls = Yes</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[print$]</code></em></td></tr><tr><td><a class="indexterm" name="id2586768"></a><em class="parameter"><code>comment = Printer Drivers</code></em></td></tr><tr><td><a class="indexterm" name="id2586780"></a><em class="parameter"><code>path = /var/lib/samba/drivers</code></em></td></tr><tr><td><a class="indexterm" name="id2586791"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2586803"></a><em class="parameter"><code>guest ok = no</code></em></td></tr><tr><td><a class="indexterm" name="id2586815"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2586826"></a><em class="parameter"><code>write list = root, chrisr</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="sbehap-ldifadd"></a><p class="title"><b>Example 5.12. LDIF IDMAP Add-On Load File  File: /etc/openldap/idmap.LDIF</b></p><div class="example-contents"><pre class="screen">
    22352235dn: ou=Idmap,dc=abmas,dc=biz
    22362236objectClass: organizationalUnit
    22372237ou: idmap
    22382238structuralObjectClass: organizationalUnit
    2239 </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="id2580803"></a>Miscellaneous Server Preparation Tasks</h2></div></div></div><p>
    2240         My father would say, &#8220;<span class="quote">Dinner is not over until the dishes have been done.</span>&#8221;
     2239</pre></div></div><br class="example-break"></div><div class="sect1" title="Miscellaneous Server Preparation Tasks"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2586862"></a>Miscellaneous Server Preparation Tasks</h2></div></div></div><p>
     2240        My father would say, <span class="quote">&#8220;<span class="quote">Dinner is not over until the dishes have been done.</span>&#8221;</span>
    22412241        The makings of a great network environment take a lot of effort and attention to detail.
    22422242        So far, you have completed most of the complex (and to many administrators, the interesting
     
    22442244        a few more steps that must be completed so that your network runs like a well-rehearsed
    22452245        orchestra.
    2246         </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2580823"></a>Configuring Directory Share Point Roots</h3></div></div></div><p>
     2246        </p><div class="sect2" title="Configuring Directory Share Point Roots"><div class="titlepage"><div><div><h3 class="title"><a name="id2586882"></a>Configuring Directory Share Point Roots</h3></div></div></div><p>
    22472247        In your <code class="filename">smb.conf</code> file, you have specified Windows shares. Each has a <em class="parameter"><code>path</code></em>
    22482248        parameter. Even though it is obvious to all, one of the common Samba networking problems is
     
    22622262<code class="prompt">root# </code> chmod -R ug+rwx,o+rx-w /apps
    22632263</pre><p>
    2264         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2580918"></a>Configuring Profile Directories</h3></div></div></div><p>
     2264        </p></div><div class="sect2" title="Configuring Profile Directories"><div class="titlepage"><div><div><h3 class="title"><a name="id2586977"></a>Configuring Profile Directories</h3></div></div></div><p>
    22652265        You made a conscious decision to do everything it would take to improve network client
    22662266        performance. One of your decisions was to implement folder redirection. This means that Windows
     
    22872287</pre><p>
    22882288        </p><p>
    2289         <a class="indexterm" name="id2581034"></a>
    2290         <a class="indexterm" name="id2581041"></a>
     2289        <a class="indexterm" name="id2587093"></a>
     2290        <a class="indexterm" name="id2587100"></a>
    22912291        You have three options insofar as the dynamically loaded portion of the roaming profile
    22922292        is concerned:
    2293         </p><div class="itemizedlist"><ul type="disc"><li><p>You may permit the user to obtain a default profile.</p></li><li><p>You can create a mandatory profile.</p></li><li><p>You can create a group profile (which is almost always a mandatory profile).</p></li></ul></div><p>
     2293        </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>You may permit the user to obtain a default profile.</p></li><li class="listitem"><p>You can create a mandatory profile.</p></li><li class="listitem"><p>You can create a group profile (which is almost always a mandatory profile).</p></li></ul></div><p>
    22942294        Mandatory profiles cannot be overwritten by a user. The change from a user profile to a mandatory
    22952295        profile is effected by renaming the <code class="filename">NTUSER.DAT</code> to <code class="filename">NTUSER.MAN</code>,
    22962296        that is, just by changing the filename extension.
    22972297        </p><p>
    2298         <a class="indexterm" name="id2581091"></a>
    2299         <a class="indexterm" name="id2581098"></a>
     2298        <a class="indexterm" name="id2587150"></a>
     2299        <a class="indexterm" name="id2587156"></a>
    23002300        The location of the profile that a user can obtain is set in the user's account in the LDAP passdb backend.
    23012301        You can manage this using the Idealx smbldap-tools or using the
     
    23102310<code class="prompt">root# </code> chmod 700  /var/lib/samba/profiles/<span class="emphasis"><em>username</em></span>
    23112311</pre><p>
    2312         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2581163"></a>Preparation of Logon Scripts</h3></div></div></div><p>
    2313         <a class="indexterm" name="id2581171"></a>
     2312        </p></div><div class="sect2" title="Preparation of Logon Scripts"><div class="titlepage"><div><div><h3 class="title"><a name="id2587221"></a>Preparation of Logon Scripts</h3></div></div></div><p>
     2313        <a class="indexterm" name="id2587229"></a>
    23142314        The use of a logon script with Windows XP Professional is an option that every site should consider.
    23152315        Unless you have locked down the desktop so the user cannot change anything, there is risk that
     
    23362336        Section 24.4. A quick Web search will bring up a host of options. One of the most popular logon
    23372337        facilities in use today is called <a class="ulink" href="http://www.kixtart.org" target="_top">KiXtart</a>.
    2338         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2581274"></a>Assigning User Rights and Privileges</h3></div></div></div><p>
     2338        </p></div><div class="sect2" title="Assigning User Rights and Privileges"><div class="titlepage"><div><div><h3 class="title"><a name="id2587332"></a>Assigning User Rights and Privileges</h3></div></div></div><p>
    23392339        The ability to perform tasks such as joining Windows clients to the domain can be assigned to
    23402340        normal user accounts. By default, only the domain administrator account (<code class="constant">root</code> on UNIX
     
    23482348        are granted rights can be restricted to particular machines. It is left to the network administrator
    23492349        to determine which rights should be provided and to whom.
    2350         </p><div class="procedure"><a name="id2581309"></a><p class="title"><b>Procedure 5.12. Steps for Assignment of User Rights and Privileges</b></p><ol type="1"><li><p>
     2350        </p><div class="procedure" title="Procedure 5.12. Steps for Assignment of User Rights and Privileges"><a name="id2587368"></a><p class="title"><b>Procedure 5.12. Steps for Assignment of User Rights and Privileges</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    23512351                Log onto the PDC as the <code class="constant">root</code> account.
    2352                 </p></li><li><p>
     2352                </p></li><li class="step" title="Step 2"><p>
    23532353                Execute the following command to grant the <code class="constant">Domain Admins</code> group all
    23542354                rights and privileges:
     
    23622362                Repeat this step on each domain controller, in each case substituting the name of the server
    23632363                (e.g., BLDG1, BLDG2) in place of the PDC called MASSIVE.
    2364                 </p></li><li><p>
     2364                </p></li><li class="step" title="Step 3"><p>
    23652365                In this step the privilege will be granted to Bob Jordan (bobj) to add Windows workstations
    23662366                to the domain. Execute the following only on the PDC. It is not necessary to do this on
     
    23712371Successfully granted rights.
    23722372</pre><p>
    2373                 </p></li><li><p>
     2373                </p></li><li class="step" title="Step 4"><p>
    23742374                Verify that privilege assignments have been correctly applied by executing:
    23752375</p><pre class="screen">
     
    24062406SeDiskOperatorPrivilege
    24072407</pre><p>
    2408                 </p></li></ol></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2581407"></a>Windows Client Configuration</h2></div></div></div><p>
    2409         <a class="indexterm" name="id2581416"></a>
     2408                </p></li></ol></div></div></div><div class="sect1" title="Windows Client Configuration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2587466"></a>Windows Client Configuration</h2></div></div></div><p>
     2409        <a class="indexterm" name="id2587474"></a>
    24102410        In the next few sections, you can configure a new Windows XP Professional disk image on a staging
    24112411        machine. You will configure all software, printer settings, profile and policy handling, and desktop
     
    24192419        Base Profile for All Users."</a>
    24202420
    2421         </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="redirfold"></a>Configuration of Default Profile with Folder Redirection</h3></div></div></div><p>
    2422         <a class="indexterm" name="id2581466"></a>
     2421        </p><div class="sect2" title="Configuration of Default Profile with Folder Redirection"><div class="titlepage"><div><div><h3 class="title"><a name="redirfold"></a>Configuration of Default Profile with Folder Redirection</h3></div></div></div><p>
     2422        <a class="indexterm" name="id2587524"></a>
    24232423        Log onto the Windows XP Professional workstation as the local <code class="constant">Administrator</code>.
    24242424        It is necessary to expose folders that are generally hidden to provide access to the
    24252425        <code class="constant">Default User</code> folder.
    2426         </p><div class="procedure"><a name="id2581484"></a><p class="title"><b>Procedure 5.13. Expose Hidden Folders</b></p><ol type="1"><li><p>
     2426        </p><div class="procedure" title="Procedure 5.13. Expose Hidden Folders"><a name="id2587542"></a><p class="title"><b>Procedure 5.13. Expose Hidden Folders</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    24272427                Launch the Windows Explorer by clicking
    24282428                        <span class="guimenu">Start</span> &#8594; <span class="guimenuitem">My Computer</span> &#8594; <span class="guimenuitem">Tools</span> &#8594; <span class="guimenuitem">Folder Options</span> &#8594; <span class="guimenuitem">View Tab</span>.
    24292429                Select <span class="guilabel">Show hidden files and folders</span>,
    24302430                and click <span class="guibutton">OK</span>.  Exit Windows Explorer.
    2431                 </p></li><li><p>
    2432                 <a class="indexterm" name="id2581550"></a>
     2431                </p></li><li class="step" title="Step 2"><p>
     2432                <a class="indexterm" name="id2587609"></a>
    24332433                Launch the Registry Editor. Click
    24342434                <span class="guimenu">Start</span> &#8594; <span class="guimenuitem">Run</span>. Key in <code class="literal">regedt32</code>, and click
    24352435                <span class="guibutton">OK</span>.
    24362436                </p></li></ol></div><p>
    2437         </p><div class="procedure"><a name="sbehap-rdrfldr"></a><p class="title"><b>Procedure 5.14. Redirect Folders in Default System User Profile</b></p><ol type="1"><li><p>
    2438                 <a class="indexterm" name="id2581608"></a>
    2439                 <a class="indexterm" name="id2581615"></a>
     2437        </p><div class="procedure" title="Procedure 5.14. Redirect Folders in Default System User Profile"><a name="sbehap-rdrfldr"></a><p class="title"><b>Procedure 5.14. Redirect Folders in Default System User Profile</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
     2438                <a class="indexterm" name="id2587667"></a>
     2439                <a class="indexterm" name="id2587673"></a>
    24402440                Give focus to <code class="constant">HKEY_LOCAL_MACHINE</code> hive entry in the left panel.
    24412441                Click <span class="guimenu">File</span> &#8594; <span class="guimenuitem">Load Hive...</span> &#8594; <span class="guimenuitem">Documents and Settings</span> &#8594; <span class="guimenuitem">Default User</span> &#8594; <span class="guimenuitem">NTUSER</span> &#8594; <span class="guimenuitem">Open</span>. In the dialog box that opens, enter the key name
    24422442                <code class="constant">Default</code> and click <span class="guibutton">OK</span>.
    2443                 </p></li><li><p>
     2443                </p></li><li class="step" title="Step 2"><p>
    24442444                Browse inside the newly loaded Default folder to:
    24452445</p><pre class="screen">
     
    24482448</pre><p>
    24492449                The right panel reveals the contents as shown in <a class="link" href="happy.html#XP-screen001" title="Figure 5.3. Windows XP Professional User Shared Folders">&#8220;Windows XP Professional  User Shared Folders&#8221;</a>.
    2450                 </p></li><li><p>
    2451                 <a class="indexterm" name="id2581708"></a>
    2452                 <a class="indexterm" name="id2581714"></a>
     2450                </p></li><li class="step" title="Step 3"><p>
     2451                <a class="indexterm" name="id2587766"></a>
     2452                <a class="indexterm" name="id2587773"></a>
    24532453                You edit hive keys. Acceptable values to replace the
    24542454                <code class="constant">%USERPROFILE%</code> variable includes:
    24552455
    2456                 </p><div class="itemizedlist"><ul type="disc"><li><p>A drive letter such as <code class="constant">U:</code></p></li><li><p>A direct network path such as
    2457                                 <code class="constant">\\MASSIVE\profdata</code></p></li><li><p>A network redirection (UNC name) that contains a macro such as </p><p><code class="constant">%LOGONSERVER%\profdata\</code></p></li></ul></div><p>
    2458                 </p></li><li><p>
    2459                 <a class="indexterm" name="id2581761"></a>
     2456                </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>A drive letter such as <code class="constant">U:</code></p></li><li class="listitem"><p>A direct network path such as
     2457                                <code class="constant">\\MASSIVE\profdata</code></p></li><li class="listitem"><p>A network redirection (UNC name) that contains a macro such as </p><p><code class="constant">%LOGONSERVER%\profdata\</code></p></li></ul></div><p>
     2458                </p></li><li class="step" title="Step 4"><p>
     2459                <a class="indexterm" name="id2587820"></a>
    24602460                Set the registry keys as shown in <a class="link" href="happy.html#proffold" title="Table 5.4. Default Profile Redirections">&#8220;Default Profile Redirections&#8221;</a>. Your implementation makes the assumption
    24612461                that users have statically located machines. Notebook computers (mobile users) need to be
    24622462                accommodated using local profiles. This is not an uncommon assumption.
    2463                 </p></li><li><p>
     2463                </p></li><li class="step" title="Step 5"><p>
    24642464                Click back to the root of the loaded hive <code class="constant">Default</code>.
    24652465                Click <span class="guimenu">File</span> &#8594; <span class="guimenuitem">Unload Hive...</span> &#8594; <span class="guimenuitem">Yes</span>.
    2466                 </p></li><li><p>
    2467                 <a class="indexterm" name="id2581816"></a>
     2466                </p></li><li class="step" title="Step 6"><p>
     2467                <a class="indexterm" name="id2587875"></a>
    24682468                Click <span class="guimenu">File</span> &#8594; <span class="guimenuitem">Exit</span>. This exits the
    24692469                Registry Editor.
    2470                 </p></li><li><p>
     2470                </p></li><li class="step" title="Step 7"><p>
    24712471                Now follow the procedure given in <a class="link" href="happy.html#sbehap-locgrppol" title="The Local Group Policy">&#8220;The Local Group Policy&#8221;</a>. Make sure that each folder you
    24722472                have redirected is in the exclusion list.
    2473                 </p></li><li><p>
    2474                 You are now ready to copy<sup>[<a name="id2581860" href="#ftn.id2581860" class="footnote">11</a>]</sup>
     2473                </p></li><li class="step" title="Step 8"><p>
     2474                You are now ready to copy<sup>[<a name="id2587919" href="#ftn.id2587919" class="footnote">11</a>]</sup>
    24752475                the Default User profile to the Samba domain controllers. Launch Microsoft Windows Explorer,
    24762476                and use it to copy the full contents of the directory <code class="filename">Default User</code> that
     
    24832483        desktop behavior should be returned to the original Microsoft settings. The following steps achieve
    24842484        that ojective:
    2485         </p><div class="procedure"><a name="id2581927"></a><p class="title"><b>Procedure 5.15. Reset Folder Display to Original Behavior</b></p><ul><li><p>
     2485        </p><div class="procedure" title="Procedure 5.15. Reset Folder Display to Original Behavior"><a name="id2587986"></a><p class="title"><b>Procedure 5.15. Reset Folder Display to Original Behavior</b></p><ul class="procedure"><li class="step" title="Step 1"><p>
    24862486                To launch the Windows Explorer, click
    24872487                        <span class="guimenu">Start</span> &#8594; <span class="guimenuitem">My Computer</span> &#8594; <span class="guimenuitem">Tools</span> &#8594; <span class="guimenuitem">Folder Options</span> &#8594; <span class="guimenuitem">View Tab</span>.
    24882488                Deselect <span class="guilabel">Show hidden files and folders</span>, and click <span class="guibutton">OK</span>.
    24892489                Exit Windows Explorer.
    2490                 </p></li></ul></div><div class="figure"><a name="XP-screen001"></a><p class="title"><b>Figure 5.3. Windows XP Professional  User Shared Folders</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/XP-screen001.png" width="351" alt="Windows XP Professional User Shared Folders"></div></div></div><br class="figure-break"><div class="table"><a name="proffold"></a><p class="title"><b>Table 5.4. Default Profile Redirections</b></p><div class="table-contents"><table summary="Default Profile Redirections" border="1"><colgroup><col align="left"><col align="left"></colgroup><thead><tr><th align="left">Registry Key</th><th align="left">Redirected Value</th></tr></thead><tbody><tr><td align="left">Cache</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\InternetFiles</td></tr><tr><td align="left">Cookies</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\Cookies</td></tr><tr><td align="left">History</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\History</td></tr><tr><td align="left">Local AppData</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\AppData</td></tr><tr><td align="left">Local Settings</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\LocalSettings</td></tr><tr><td align="left">My Pictures</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\MyPictures</td></tr><tr><td align="left">Personal</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\MyDocuments</td></tr><tr><td align="left">Recent</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\Recent</td></tr></tbody></table></div></div><br class="table-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2582162"></a>Configuration of MS Outlook to Relocate PST File</h3></div></div></div><p>
    2491         <a class="indexterm" name="id2582170"></a>
    2492         <a class="indexterm" name="id2582180"></a>
     2490                </p></li></ul></div><div class="figure"><a name="XP-screen001"></a><p class="title"><b>Figure 5.3. Windows XP Professional  User Shared Folders</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/XP-screen001.png" width="351" alt="Windows XP Professional User Shared Folders"></div></div></div><br class="figure-break"><div class="table"><a name="proffold"></a><p class="title"><b>Table 5.4. Default Profile Redirections</b></p><div class="table-contents"><table summary="Default Profile Redirections" border="1"><colgroup><col align="left"><col align="left"></colgroup><thead><tr><th align="left">Registry Key</th><th align="left">Redirected Value</th></tr></thead><tbody><tr><td align="left">Cache</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\InternetFiles</td></tr><tr><td align="left">Cookies</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\Cookies</td></tr><tr><td align="left">History</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\History</td></tr><tr><td align="left">Local AppData</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\AppData</td></tr><tr><td align="left">Local Settings</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\LocalSettings</td></tr><tr><td align="left">My Pictures</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\MyPictures</td></tr><tr><td align="left">Personal</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\MyDocuments</td></tr><tr><td align="left">Recent</td><td align="left">%LOGONSERVER%\profdata\%USERNAME%\Recent</td></tr></tbody></table></div></div><br class="table-break"></div><div class="sect2" title="Configuration of MS Outlook to Relocate PST File"><div class="titlepage"><div><div><h3 class="title"><a name="id2588220"></a>Configuration of MS Outlook to Relocate PST File</h3></div></div></div><p>
     2491        <a class="indexterm" name="id2588229"></a>
     2492        <a class="indexterm" name="id2588238"></a>
    24932493        Microsoft Outlook can store a Personal Storage file, generally known as a PST file.
    24942494        It is the nature of email storage that this file grows, at times quite rapidly.
     
    24992499        To redirect the Outlook PST file in Outlook 2003 (older versions of Outlook behave
    25002500        slightly differently), follow these steps:
    2501         </p><div class="procedure"><a name="id2582202"></a><p class="title"><b>Procedure 5.16. Outlook PST File Relocation</b></p><ol type="1"><li><p>
     2501        </p><div class="procedure" title="Procedure 5.16. Outlook PST File Relocation"><a name="id2588260"></a><p class="title"><b>Procedure 5.16. Outlook PST File Relocation</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    25022502                Close Outlook if it is open.
    2503                 </p></li><li><p>
     2503                </p></li><li class="step" title="Step 2"><p>
    25042504                From the <span class="guimenu">Control Panel</span>, launch the Mail icon.
    2505                 </p></li><li><p>
     2505                </p></li><li class="step" title="Step 3"><p>
    25062506                Click <span class="guimenu">Email Accounts.</span>
    2507                 </p></li><li><p>
     2507                </p></li><li class="step" title="Step 4"><p>
    25082508                Make a note of the location of the PST file(s). From this location, move
    25092509                the files to the desired new target location. The most desired new target location
    25102510                may well be the users' home directory.
    2511                 </p></li><li><p>
     2511                </p></li><li class="step" title="Step 5"><p>
    25122512                Add a new data file, selecting the PST file in the new desired target location.
    2513                 Give this entry (not the filename) a new name such as &#8220;<span class="quote">Personal Mail Folders.</span>&#8221;
     2513                Give this entry (not the filename) a new name such as <span class="quote">&#8220;<span class="quote">Personal Mail Folders.</span>&#8221;</span>
    25142514                </p><p>
    25152515                Note: If MS Outlook has been configured to use an IMAP account configuration there may be problems
     
    25192519                used please email <code class="literal">jht@samba.org</code> with useful tips and suggestions so that
    25202520                this warning can be removed or modified.
    2521                 </p></li><li><p>
     2521                </p></li><li class="step" title="Step 6"><p>
    25222522                Close the <span class="guimenu">Date Files</span> windows, then click <span class="guimenu">Email Accounts</span>.
    2523                 </p></li><li><p>
     2523                </p></li><li class="step" title="Step 7"><p>
    25242524                Select <span class="guimenu">View of Change</span> exiting email accounts, click <span class="guibutton">Next.</span>
    2525                 </p></li><li><p>
     2525                </p></li><li class="step" title="Step 8"><p>
    25262526                Change the <span class="guimenu">Mail Delivery Location</span> so as to use the data file in the new
    25272527                target location.
    2528                 </p></li><li><p>
     2528                </p></li><li class="step" title="Step 9"><p>
    25292529                Go back to the <span class="guimenu">Data Files</span> window, then delete the old data file entry.
    2530                 </p></li></ol></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    2531         <a class="indexterm" name="id2582352"></a>
     2530                </p></li></ol></div><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     2531        <a class="indexterm" name="id2588410"></a>
    25322532        You may have to remove and reinstall the Outlook Address Book (Contacts) entries, otherwise
    25332533        the user may be not be able to retrieve contacts when addressing a new email message.
    2534         </p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    2535         <a class="indexterm" name="id2582366"></a>
     2534        </p></div><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     2535        <a class="indexterm" name="id2588425"></a>
    25362536        Outlook Express is not at all like MS OutLook. It stores file very differently also. Outlook
    25372537        Express storage files can not be redirected to network shares. The options panel will not permit
     
    25422542        registry, experience has shown that data corruption and loss of email messages will result.
    25432543        </p><p>
    2544         <a class="indexterm" name="id2582389"></a>
    2545         <a class="indexterm" name="id2582396"></a>
     2544        <a class="indexterm" name="id2588448"></a>
     2545        <a class="indexterm" name="id2588454"></a>
    25462546        In the same vane as MS Outlook, Outlook Express data stores can become very large. When used with
    25472547        roaming profiles this can result in excruciatingly long login and logout behavior will files are
     
    25492549        profiles are used.
    25502550        </p></div><p>
    2551         <a class="indexterm" name="id2582412"></a>
     2551        <a class="indexterm" name="id2588470"></a>
    25522552        Microsoft does not support storing PST files on network shares, although the practice does appear
    25532553        to be rather popular. Anyone who does relocation the PST file to a network resource should refer
     
    25552555        understand the issues.
    25562556        </p><p>
    2557         <a class="indexterm" name="id2582432"></a>
     2557        <a class="indexterm" name="id2588491"></a>
    25582558        Apart from manually moving PST files to a network share, it is possible to set the default PST
    25592559        location for new accounts by following the instructions at the WindowsITPro <a class="ulink" href="http://www.windowsitpro.com/Windows/Article/ArticleID/48228/48228.html" target="_top">web</a> site.
    25602560        </p><p>
    2561         <a class="indexterm" name="id2582452"></a>
     2561        <a class="indexterm" name="id2588511"></a>
    25622562        User feedback suggests that disabling of oplocks on PST files will significantly improve
    25632563        network performance by reducing locking overheads. One way this can be done is to add to the
     
    25662566veto oplock files = /*.pdf/*.PST/
    25672567</pre><p>
    2568         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2582477"></a>Configure Delete Cached Profiles on Logout</h3></div></div></div><p>
     2568        </p></div><div class="sect2" title="Configure Delete Cached Profiles on Logout"><div class="titlepage"><div><div><h3 class="title"><a name="id2588536"></a>Configure Delete Cached Profiles on Logout</h3></div></div></div><p>
    25692569        Configure the Windows XP Professional client to auto-delete roaming profiles on logout:
    25702570        </p><p>
    2571         <a class="indexterm" name="id2582490"></a>
     2571        <a class="indexterm" name="id2588549"></a>
    25722572        Click
    25732573        <span class="guimenu">Start</span> &#8594; <span class="guimenuitem">Run</span>. In the dialog box, enter <code class="literal">MMC</code> and click <span class="guibutton">OK</span>.
     
    25772577        <span class="guimenu">File</span> &#8594; <span class="guimenuitem">Add/Remove Snap-in</span> &#8594; <span class="guimenuitem">Add</span> &#8594; <span class="guimenuitem">Group Policy</span> &#8594; <span class="guimenuitem">Add</span> &#8594; <span class="guimenuitem">Finish</span> &#8594; <span class="guimenuitem">Close</span> &#8594; <span class="guimenuitem">OK</span>.
    25782578        </p><p>
    2579         <a class="indexterm" name="id2582586"></a>
     2579        <a class="indexterm" name="id2588645"></a>
    25802580        The Microsoft Management Console now shows the <span class="guimenu">Group Policy</span>
    25812581        utility that enables you to set the policies needed. In the left panel, click
    25822582        <span class="guimenuitem">Local Computer Policy</span> &#8594; <span class="guimenuitem">Administrative Templates</span> &#8594; <span class="guimenuitem">System</span> &#8594; <span class="guimenuitem">User Profiles</span>. In the right panel, set the properties shown here by double-clicking on each
    25832583        item as shown:
    2584         </p><div class="itemizedlist"><ul type="disc"><li><p>Do not check for user ownership of Roaming Profile Folders = Enabled</p></li><li><p>Delete cached copies of roaming profiles = Enabled</p></li></ul></div><p>
     2584        </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Do not check for user ownership of Roaming Profile Folders = Enabled</p></li><li class="listitem"><p>Delete cached copies of roaming profiles = Enabled</p></li></ul></div><p>
    25852585        Close the Microsoft Management Console. The settings take immediate effect and persist onto all image copies
    25862586        made of this system to deploy the new standard desktop system.
    2587         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2582657"></a>Uploading Printer Drivers to Samba Servers</h3></div></div></div><p>
    2588         <a class="indexterm" name="id2582665"></a>
     2587        </p></div><div class="sect2" title="Uploading Printer Drivers to Samba Servers"><div class="titlepage"><div><div><h3 class="title"><a name="id2588716"></a>Uploading Printer Drivers to Samba Servers</h3></div></div></div><p>
     2588        <a class="indexterm" name="id2588724"></a>
    25892589        Users want to be able to use network printers. You have a vested interest in making
    25902590        it easy for them to print. You have chosen to install the printer drivers onto the Samba
     
    25932593        print to the printer chosen. The following procedure must be followed for every network
    25942594        printer:
    2595         </p><div class="procedure"><a name="id2582684"></a><p class="title"><b>Procedure 5.17. Steps to Install Printer Drivers on the Samba Servers</b></p><ol type="1"><li><p>
     2595        </p><div class="procedure" title="Procedure 5.17. Steps to Install Printer Drivers on the Samba Servers"><a name="id2588742"></a><p class="title"><b>Procedure 5.17. Steps to Install Printer Drivers on the Samba Servers</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    25962596                Join your Windows XP Professional workstation (the staging machine) to the
    25972597                <code class="constant">MEGANET2</code> domain. If you are not sure of the procedure,
    25982598                follow the guidance given in <a class="link" href="appendix.html" title="Chapter 15. A Collection of Useful Tidbits">&#8220;A Collection of Useful Tidbits&#8221;</a>, <a class="link" href="appendix.html#domjoin" title="Joining a Domain: Windows 200x/XP Professional">&#8220;Joining a Domain: Windows 200x/XP Professional&#8221;</a>.
    2599                 </p></li><li><p>
     2599                </p></li><li class="step" title="Step 2"><p>
    26002600                After the machine has rebooted, log onto the workstation as the domain
    26012601                <code class="constant">root</code> (this is the Administrator account for the
    26022602                operating system that is the host platform for this implementation of Samba.
    2603                 </p></li><li><p>
     2603                </p></li><li class="step" title="Step 3"><p>
    26042604                Launch MS Windows Explorer. Navigate in the left panel. Click
    26052605                <span class="guimenu">My Network Places</span> &#8594; <span class="guimenuitem">Entire Network</span> &#8594; <span class="guimenuitem">Microsoft Windows Network</span> &#8594; <span class="guimenuitem">Meganet2</span> &#8594; <span class="guimenuitem">Massive</span>. Click on <span class="guimenu">Massive</span>
    26062606                        <span class="guimenu">Printers and Faxes</span>.
    2607                 </p></li><li><p>
     2607                </p></li><li class="step" title="Step 4"><p>
    26082608                Identify a printer that is shown in the right panel. Let us assume the printer is called
    26092609                <code class="constant">ps01-color</code>. Right-click on the <span class="guimenu">ps01-color</span> icon
    26102610                and select the <span class="guimenu">Properties</span> entry. This opens a dialog box that indicates
    2611                 that &#8220;<span class="quote">The printer driver is not installed on this computer. Some printer properties
     2611                that <span class="quote">&#8220;<span class="quote">The printer driver is not installed on this computer. Some printer properties
    26122612                will not be accessible unless you install the printer driver. Do you want to install the
    2613                 driver now?</span>&#8221; It is important at this point you answer <span class="guimenu">No</span>.
    2614                 </p></li><li><p>
     2613                driver now?</span>&#8221;</span> It is important at this point you answer <span class="guimenu">No</span>.
     2614                </p></li><li class="step" title="Step 5"><p>
    26152615                The printer properties panel for the <span class="guimenu">ps01-color</span> printer on the server
    26162616                <code class="constant">MASSIVE</code> is displayed. Click the <span class="guimenu">Advanced</span> tab.
    26172617                Note that the box labeled <span class="guimenu">Driver</span> is empty. Click the <span class="guimenu">New Driver</span>
    2618                 button that is next to the <span class="guimenu">Driver</span> box. This launches the &#8220;<span class="quote">Add Printer Wizard</span>&#8221;.
    2619                 </p></li><li><p>
    2620                 <a class="indexterm" name="id2582873"></a>
    2621                 <a class="indexterm" name="id2582882"></a>
    2622                 The &#8220;<span class="quote">Add Printer Driver Wizard on <code class="constant">MASSIVE</code></span>&#8221; panel
     2618                button that is next to the <span class="guimenu">Driver</span> box. This launches the <span class="quote">&#8220;<span class="quote">Add Printer Wizard</span>&#8221;</span>.
     2619                </p></li><li class="step" title="Step 6"><p>
     2620                <a class="indexterm" name="id2588931"></a>
     2621                <a class="indexterm" name="id2588940"></a>
     2622                The <span class="quote">&#8220;<span class="quote">Add Printer Driver Wizard on <code class="constant">MASSIVE</code></span>&#8221;</span> panel
    26232623                is now presented. Click <span class="guimenu">Next</span> to continue. From the left panel, select the
    26242624                printer manufacturer. In your case, you are adding a driver for a printer manufactured by
     
    26272627                progress bar appears and instructs you as each file is being uploaded and that it is being
    26282628                directed at the network server <code class="constant">\\massive\ps01-color</code>.
    2629                 </p></li><li><p>
    2630                 <a class="indexterm" name="id2582930"></a>
    2631                 <a class="indexterm" name="id2582939"></a>
    2632                 <a class="indexterm" name="id2582949"></a>
    2633                 <a class="indexterm" name="id2582958"></a>
    2634                 <a class="indexterm" name="id2582967"></a>
    2635                 <a class="indexterm" name="id2582976"></a>
     2629                </p></li><li class="step" title="Step 7"><p>
     2630                <a class="indexterm" name="id2588989"></a>
     2631                <a class="indexterm" name="id2588998"></a>
     2632                <a class="indexterm" name="id2589007"></a>
     2633                <a class="indexterm" name="id2589016"></a>
     2634                <a class="indexterm" name="id2589025"></a>
     2635                <a class="indexterm" name="id2589035"></a>
    26362636                The driver upload completes in anywhere from a few seconds to a few minutes. When it completes,
    26372637                you are returned to the <span class="guimenu">Advanced</span> tab in the <span class="guimenu">Properties</span> panel.
    26382638                You can set the Location (under the <span class="guimenu">General</span> tab) and Security settings (under
    26392639                the <span class="guimenu">Security</span> tab). Under the <span class="guimenu">Sharing</span> tab it is possible to
    2640                 load additional printer drivers; there is also a check-box in this tab called &#8220;<span class="quote">List in the
    2641                 directory</span>&#8221;. When this box is checked, the printer will be published in Active Directory
     2640                load additional printer drivers; there is also a check-box in this tab called <span class="quote">&#8220;<span class="quote">List in the
     2641                directory</span>&#8221;</span>. When this box is checked, the printer will be published in Active Directory
    26422642                (Applicable to Active Directory use only.)
    2643                 </p></li><li><p>
    2644                 <a class="indexterm" name="id2583031"></a>
     2643                </p></li><li class="step" title="Step 8"><p>
     2644                <a class="indexterm" name="id2589090"></a>
    26452645                Click <span class="guimenu">OK</span>. It will take a minute or so to upload the settings to the server.
    26462646                You are now returned to the <span class="guimenu">Printers and Faxes on Massive</span> monitor.
     
    26482648                your requirements. BE CERTAIN TO CHANGE AT LEAST ONE SETTING and apply the changes even if
    26492649                you need to reverse the changes back to their original settings.
    2650                 </p></li><li><p>
     2650                </p></li><li class="step" title="Step 9"><p>
    26512651                This is necessary so that the printer settings are initialized in the Samba printers
    26522652                database. Click <span class="guimenu">Apply</span> to commit your settings. Revert any settings you changed
    26532653                just to initialize the Samba printers database entry for this printer. If you need to revert a setting,
    26542654                click <span class="guimenu">Apply</span> again.
    2655                 </p></li><li><p>
    2656                 <a class="indexterm" name="id2583104"></a>
     2655                </p></li><li class="step" title="Step 10"><p>
     2656                <a class="indexterm" name="id2589163"></a>
    26572657                Verify that all printer settings are at the desired configuration. When you are satisfied that they are,
    26582658                click the <span class="guimenu">General</span> tab. Now click the <span class="guimenu">Print Test Page</span> button.
     
    26602660                in the panel that is newly presented. Click <span class="guimenu">OK</span> on the <span class="guimenu">ps01-color on
    26612661                massive Properties</span> panel.
    2662                 </p></li><li><p>
     2662                </p></li><li class="step" title="Step 11"><p>
    26632663                You must repeat this process for all network printers (i.e., for every printer on each server).
    26642664                When you have finished uploading drivers to all printers, close all applications. The next task
    26652665                is to install software your users require to do their work.
    2666                 </p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2583160"></a>Software Installation</h3></div></div></div><p>
     2666                </p></li></ol></div></div><div class="sect2" title="Software Installation"><div class="titlepage"><div><div><h3 class="title"><a name="id2589218"></a>Software Installation</h3></div></div></div><p>
    26672667        Your network has both fixed desktop workstations as well as notebook computers. As a general rule, it is
    26682668        a good idea to not tamper with the operating system that is provided by the notebook computer manufacturer.
     
    26792679        and migrate that to the Samba server for later reuse when creating custom mandatory profiles, just in
    26802680        case a user may have specific needs you had not anticipated.
    2681         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2583195"></a>Roll-out Image Creation</h3></div></div></div><p>
     2681        </p></div><div class="sect2" title="Roll-out Image Creation"><div class="titlepage"><div><div><h3 class="title"><a name="id2589254"></a>Roll-out Image Creation</h3></div></div></div><p>
    26822682        The final steps before preparing the distribution Norton Ghost image file you might follow are:
    26832683        </p><div class="blockquote"><blockquote class="blockquote"><p>
     
    26882688        in better performance and often significantly reduces the size of the compressed disk image. That
    26892689        also means it will take less time to deploy the image onto 500 workstations.
    2690         </p></blockquote></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2583229"></a>Key Points Learned</h2></div></div></div><p>
     2690        </p></blockquote></div></div></div><div class="sect1" title="Key Points Learned"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2589288"></a>Key Points Learned</h2></div></div></div><p>
    26912691        This chapter introduced many new concepts. Is it a sad fact that the example presented deliberately
    26922692        avoided any consideration of security. Security does not just happen; you must design it into your total
     
    26972697        of compromise.
    26982698        </p><p>
    2699         <a class="indexterm" name="id2583251"></a>
    2700         <a class="indexterm" name="id2583260"></a>
     2699        <a class="indexterm" name="id2589309"></a>
     2700        <a class="indexterm" name="id2589319"></a>
    27012701        As a minimum, the LDAP server must be protected by way of Access Control Lists (ACLs), and it must be
    27022702        configured to use secure protocols for all communications over the network. Of course, secure networking
     
    27092709        </p><p>
    27102710        The substance of this chapter that has been deserving of particular attention includes:
    2711         </p><div class="itemizedlist"><ul type="disc"><li><p>
     2711        </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
    27122712                Implementation of an OpenLDAP-based passwd backend, necessary to support distributed
    27132713                domain control.
    2714                 </p></li><li><p>
     2714                </p></li><li class="listitem"><p>
    27152715                Implementation of Samba primary and secondary domain controllers with a common LDAP backend
    27162716                for user and group accounts that is shared with the UNIX system through the PADL nss_ldap and
    27172717                pam_ldap tool-sets.
    2718                 </p></li><li><p>
     2718                </p></li><li class="listitem"><p>
    27192719                Use of the Idealx smbldap-tools scripts for UNIX (POSIX) account management as well as
    27202720                to manage Samba Windows user and group accounts.
    2721                 </p></li><li><p>
     2721                </p></li><li class="listitem"><p>
    27222722                The basics of implementation of Group Policy controls for Windows network clients.
    2723                 </p></li><li><p>
     2723                </p></li><li class="listitem"><p>
    27242724                Control over roaming profiles, with particular focus on folder redirection to network drives.
    2725                 </p></li><li><p>
     2725                </p></li><li class="listitem"><p>
    27262726                Use of the CUPS printing system together with Samba-based printer driver auto-download.
    2727                 </p></li></ul></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2583345"></a>Questions and Answers</h2></div></div></div><p>
     2727                </p></li></ul></div></div><div class="sect1" title="Questions and Answers"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2589403"></a>Questions and Answers</h2></div></div></div><p>
    27282728        Well, here we are at the end of this chapter and we have only ten questions to help you to
    27292729        remember so much. There are bound to be some sticky issues here.
    2730         </p><div class="qandaset"><dl><dt> <a href="happy.html#id2583363">
     2730        </p><div class="qandaset" title="Frequently Asked Questions"><a name="id2589415"></a><dl><dt> <a href="happy.html#id2589422">
    27312731                Why did you not cover secure practices? Isn't it rather irresponsible to instruct
    27322732                network administrators to implement insecure solutions?
    2733                 </a></dt><dt> <a href="happy.html#id2583407">
     2733                </a></dt><dt> <a href="happy.html#id2589466">
    27342734                You have focused much on SUSE Linux and little on the market leader, Red Hat. Do
    27352735                you have a problem with Red Hat Linux? Doesn't that make your guidance irrelevant
    27362736                to the Linux I might be using?
    2737                 </a></dt><dt> <a href="happy.html#id2583468">
     2737                </a></dt><dt> <a href="happy.html#id2589527">
    27382738                You did not use SWAT to configure Samba. Is there something wrong with it?
    2739                 </a></dt><dt> <a href="happy.html#id2583508">
     2739                </a></dt><dt> <a href="happy.html#id2589566">
    27402740                You have exposed a well-used password not24get. Is that
    27412741                not irresponsible?
    2742                 </a></dt><dt> <a href="happy.html#id2583533">
     2742                </a></dt><dt> <a href="happy.html#id2589591">
    27432743                The Idealx smbldap-tools create many domain group accounts that are not used. Is that
    27442744                a good thing?
    2745                 </a></dt><dt> <a href="happy.html#id2583559">
     2745                </a></dt><dt> <a href="happy.html#id2589618">
    27462746                Can I use LDAP just for Samba accounts and not for UNIX system accounts?
    2747                 </a></dt><dt> <a href="happy.html#id2583584">
     2747                </a></dt><dt> <a href="happy.html#id2589643">
    27482748                Why are the Windows domain RID portions not the same as the UNIX UID?
    2749                 </a></dt><dt> <a href="happy.html#id2583620">
     2749                </a></dt><dt> <a href="happy.html#id2589678">
    27502750                Printer configuration examples all show printing to the HP port 9100. Does this
    27512751                mean that I must have HP printers for these solutions to work?
    2752                 </a></dt><dt> <a href="happy.html#id2583649">
     2752                </a></dt><dt> <a href="happy.html#id2589708">
    27532753                Is folder redirection dangerous? I've heard that you can lose your data that way.
    2754                 </a></dt><dt> <a href="happy.html#id2583677">
     2754                </a></dt><dt> <a href="happy.html#id2589735">
    27552755                Is it really necessary to set a local Group Policy to exclude the redirected
    27562756                folders from the roaming profile?
    2757                 </a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id2583363"></a><a name="id2583366"></a></td><td align="left" valign="top"><p>
     2757                </a></dt></dl><table border="0" width="100%" summary="Q and A Set"><col align="left" width="1%"><col><tbody><tr class="question"><td align="left" valign="top"><a name="id2589422"></a><a name="id2589424"></a></td><td align="left" valign="top"><p>
    27582758                Why did you not cover secure practices? Isn't it rather irresponsible to instruct
    27592759                network administrators to implement insecure solutions?
     
    27742774                that you should implement a network without provision for data recovery and for disaster
    27752775                management? Back to our focus: The deployment of Samba has been clearly demonstrated.
    2776                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2583407"></a><a name="id2583409"></a></td><td align="left" valign="top"><p>
     2776                </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2589466"></a><a name="id2589468"></a></td><td align="left" valign="top"><p>
    27772777                You have focused much on SUSE Linux and little on the market leader, Red Hat. Do
    27782778                you have a problem with Red Hat Linux? Doesn't that make your guidance irrelevant
     
    28012801                features of both products (companies also). No bias in presentation is intended.
    28022802                Oh, before I forget, I particularly like Debian Linux; that is my favorite playground.
    2803                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2583468"></a><a name="id2583470"></a></td><td align="left" valign="top"><p>
     2803                </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2589527"></a><a name="id2589529"></a></td><td align="left" valign="top"><p>
    28042804                You did not use SWAT to configure Samba. Is there something wrong with it?
    28052805                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    28122812                and insecure. Many will not touch it with a barge-pole. By not introducing SWAT, I
    28132813                hope to have brought their interests on board. SWAT is well covered is <span class="emphasis"><em>TOSHARG2</em></span>.
    2814                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2583508"></a><a name="id2583510"></a></td><td align="left" valign="top"><p>
     2814                </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2589566"></a><a name="id2589568"></a></td><td align="left" valign="top"><p>
    28152815                You have exposed a well-used password <span class="emphasis"><em>not24get</em></span>. Is that
    28162816                not irresponsible?
     
    28192819                used throughout. I guess you can figure out that in a real deployment it would make
    28202820                sense to use a more secure and original password.
    2821                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2583533"></a><a name="id2583535"></a></td><td align="left" valign="top"><p>
     2821                </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2589591"></a><a name="id2589593"></a></td><td align="left" valign="top"><p>
    28222822                The Idealx smbldap-tools create many domain group accounts that are not used. Is that
    28232823                a good thing?
     
    28272827                and, besides, it does no harm to create accounts that are not now used  at some time
    28282828                Samba may well use them.
    2829                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2583559"></a><a name="id2583561"></a></td><td align="left" valign="top"><p>
     2829                </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2589618"></a><a name="id2589620"></a></td><td align="left" valign="top"><p>
    28302830                Can I use LDAP just for Samba accounts and not for UNIX system accounts?
    28312831                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    28352835                password files in sync? I think that having everything in LDAP makes a lot of sense
    28362836                for the UNIX administrator who is still learning the craft and is migrating from MS Windows.
    2837                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2583584"></a><a name="id2583586"></a></td><td align="left" valign="top"><p>
     2837                </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2589643"></a><a name="id2589645"></a></td><td align="left" valign="top"><p>
    28382838                Why are the Windows domain RID portions not the same as the UNIX UID?
    28392839                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    28442844                permit you to override that to some extent. See the <code class="filename">smb.conf</code> man page entry
    28452845                for <em class="parameter"><code>algorithmic rid base</code></em>.
    2846                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2583620"></a><a name="id2583622"></a></td><td align="left" valign="top"><p>
     2846                </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2589678"></a><a name="id2589681"></a></td><td align="left" valign="top"><p>
    28472847                Printer configuration examples all show printing to the HP port 9100. Does this
    28482848                mean that I must have HP printers for these solutions to work?
     
    28542854                argument to the <code class="constant">lpadmin -v</code> option that is right for your
    28552855                printer.
    2856                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2583649"></a><a name="id2583651"></a></td><td align="left" valign="top"><p>
     2856                </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2589708"></a><a name="id2589710"></a></td><td align="left" valign="top"><p>
    28572857                Is folder redirection dangerous? I've heard that you can lose your data that way.
    28582858                </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
     
    28642864                folder. That was not the case, so by declining to move the data back, he wiped out
    28652865                the data. You cannot hold the tool responsible for that. Caveat emptor still applies.
    2866                 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2583677"></a><a name="id2583679"></a></td><td align="left" valign="top"><p>
     2866                </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2589735"></a><a name="id2589737"></a></td><td align="left" valign="top"><p>
    28672867                Is it really necessary to set a local Group Policy to exclude the redirected
    28682868                folders from the roaming profile?
     
    28702870                Yes. If you do not do this, the data will still be copied from the network folder
    28712871                (share) to the local cached copy of the profile.
    2872                 </p></td></tr></tbody></table></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2581860" href="#id2581860" class="para">11</a>] </sup>
     2872                </p></td></tr></tbody></table></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2587919" href="#id2587919" class="para">11</a>] </sup>
    28732873                        There is an alternate method by which a default user profile can be added to the
    28742874                        <code class="constant">NETLOGON</code> share. This facility in the Windows System tool
Note: See TracChangeset for help on using the changeset viewer.