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-HOWTO/domain-member.html

    r274 r368  
    1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 6. Domain Membership</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="The Official Samba 3.3.x HOWTO and Reference Guide"><link rel="up" href="type.html" title="Part II. Server Configuration Basics"><link rel="prev" href="samba-bdc.html" title="Chapter 5. Backup Domain Control"><link rel="next" href="StandAloneServer.html" title="Chapter 7. Standalone Servers"></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 6. Domain Membership</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="samba-bdc.html">Prev</a> </td><th width="60%" align="center">Part II. Server Configuration Basics</th><td width="20%" align="right"> <a accesskey="n" href="StandAloneServer.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="domain-member"></a>Chapter 6. Domain Membership</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="orgname">Samba Team</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jeremy</span> <span class="orgname">Samba Team</span> <span class="surname">Allison</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jra@samba.org">jra@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Gerald</span> <span class="othername">(Jerry)</span> <span class="orgname">Samba Team</span> <span class="surname">Carter</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jerry@samba.org">jerry@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Andrew</span> <span class="orgname">Samba Team</span> <span class="surname">Tridgell</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:tridge@samba.org">tridge@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="orgname">The Samba Team</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jelmer@samba.org">jelmer@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Guenther</span> <span class="orgname">SuSE</span> <span class="surname">Deschner</span></h3><span class="contrib">LDAP updates</span> <div class="affiliation"><span class="orgname">SuSE<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:gd@suse.de">gd@suse.de</a>&gt;</code></p></div></div></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="domain-member.html#id2569122">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="domain-member.html#machine-trust-accounts">MS Windows Workstation/Server Machine Trust Accounts</a></span></dt><dd><dl><dt><span class="sect2"><a href="domain-member.html#id2569809">Manual Creation of Machine Trust Accounts</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2570246">Managing Domain Machine Accounts using NT4 Server Manager</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2570526">On-the-Fly Creation of Machine Trust Accounts</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2570632">Making an MS Windows Workstation or Server a Domain Member</a></span></dt></dl></dd><dt><span class="sect1"><a href="domain-member.html#domain-member-server">Domain Member Server</a></span></dt><dd><dl><dt><span class="sect2"><a href="domain-member.html#id2571097">Joining an NT4-type Domain with Samba-3</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2571833">Why Is This Better Than security = server?</a></span></dt></dl></dd><dt><span class="sect1"><a href="domain-member.html#ads-member">Samba ADS Domain Membership</a></span></dt><dd><dl><dt><span class="sect2"><a href="domain-member.html#id2572115">Configure smb.conf</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2572306">Configure /etc/krb5.conf</a></span></dt><dt><span class="sect2"><a href="domain-member.html#ads-create-machine-account">Create the Computer Account</a></span></dt><dt><span class="sect2"><a href="domain-member.html#ads-test-server">Testing Server Setup</a></span></dt><dt><span class="sect2"><a href="domain-member.html#ads-test-smbclient">Testing with smbclient</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2573400">Notes</a></span></dt></dl></dd><dt><span class="sect1"><a href="domain-member.html#id2573472">Sharing User ID Mappings between Samba Domain Members</a></span></dt><dt><span class="sect1"><a href="domain-member.html#id2573679">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="domain-member.html#id2573719">Cannot Add Machine Back to Domain</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2573794">Adding Machine to Domain Fails</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2574030">I Can't Join a Windows 2003 PDC</a></span></dt></dl></dd></dl></div><p>
    2 <a class="indexterm" name="id2569070"></a>
    3 <a class="indexterm" name="id2569077"></a>
    4 <a class="indexterm" name="id2569084"></a>
     1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 6. Domain Membership</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="The Official Samba 3.3.x HOWTO and Reference Guide"><link rel="up" href="type.html" title="Part II. Server Configuration Basics"><link rel="prev" href="samba-bdc.html" title="Chapter 5. Backup Domain Control"><link rel="next" href="StandAloneServer.html" title="Chapter 7. Standalone Servers"></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 6. Domain Membership</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="samba-bdc.html">Prev</a> </td><th width="60%" align="center">Part II. Server Configuration Basics</th><td width="20%" align="right"> <a accesskey="n" href="StandAloneServer.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 6. Domain Membership"><div class="titlepage"><div><div><h2 class="title"><a name="domain-member"></a>Chapter 6. Domain Membership</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jeremy</span> <span class="surname">Allison</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jra@samba.org">jra@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Gerald</span> <span class="othername">(Jerry)</span> <span class="surname">Carter</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jerry@samba.org">jerry@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Andrew</span> <span class="surname">Tridgell</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:tridge@samba.org">tridge@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jelmer@samba.org">jelmer@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Guenther</span> <span class="surname">Deschner</span></h3><span class="contrib">LDAP updates</span> <div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:gd@samba.org">gd@samba.org</a>&gt;</code></p></div></div></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="domain-member.html#id2575193">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="domain-member.html#machine-trust-accounts">MS Windows Workstation/Server Machine Trust Accounts</a></span></dt><dd><dl><dt><span class="sect2"><a href="domain-member.html#id2575880">Manual Creation of Machine Trust Accounts</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2576317">Managing Domain Machine Accounts using NT4 Server Manager</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2576597">On-the-Fly Creation of Machine Trust Accounts</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2576703">Making an MS Windows Workstation or Server a Domain Member</a></span></dt></dl></dd><dt><span class="sect1"><a href="domain-member.html#domain-member-server">Domain Member Server</a></span></dt><dd><dl><dt><span class="sect2"><a href="domain-member.html#id2577168">Joining an NT4-type Domain with Samba-3</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2577904">Why Is This Better Than <em class="parameter"><code>security = server</code></em>?</a></span></dt></dl></dd><dt><span class="sect1"><a href="domain-member.html#ads-member">Samba ADS Domain Membership</a></span></dt><dd><dl><dt><span class="sect2"><a href="domain-member.html#id2578186">Configure <code class="filename">smb.conf</code></a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2578377">Configure <code class="filename">/etc/krb5.conf</code></a></span></dt><dt><span class="sect2"><a href="domain-member.html#ads-create-machine-account">Create the Computer Account</a></span></dt><dt><span class="sect2"><a href="domain-member.html#ads-test-server">Testing Server Setup</a></span></dt><dt><span class="sect2"><a href="domain-member.html#ads-test-smbclient">Testing with <span class="application">smbclient</span></a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2579471">Notes</a></span></dt></dl></dd><dt><span class="sect1"><a href="domain-member.html#id2579543">Sharing User ID Mappings between Samba Domain Members</a></span></dt><dt><span class="sect1"><a href="domain-member.html#id2579750">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="domain-member.html#id2579789">Cannot Add Machine Back to Domain</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2579865">Adding Machine to Domain Fails</a></span></dt><dt><span class="sect2"><a href="domain-member.html#id2580101">I Can't Join a Windows 2003 PDC</a></span></dt></dl></dd></dl></div><p>
     2<a class="indexterm" name="id2575136"></a>
     3<a class="indexterm" name="id2575143"></a>
     4<a class="indexterm" name="id2575150"></a>
    55Domain membership is a subject of vital concern. Samba must be able to
    66participate as a member server in a Microsoft domain security context, and
     
    88otherwise it would not be able to offer a viable option for many users.
    99</p><p>
    10 <a class="indexterm" name="id2569099"></a>
    11 <a class="indexterm" name="id2569106"></a>
     10<a class="indexterm" name="id2575170"></a>
     11<a class="indexterm" name="id2575177"></a>
    1212This chapter covers background information pertaining to domain membership,
    1313the Samba configuration for it, and MS Windows client procedures for joining a
     
    1717misinformation, incorrect understanding, and lack of knowledge. Hopefully
    1818this chapter will fill the voids.
    19 </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2569122"></a>Features and Benefits</h2></div></div></div><p>
    20 <a class="indexterm" name="id2569130"></a>
    21 <a class="indexterm" name="id2569137"></a>
    22 <a class="indexterm" name="id2569144"></a>
     19</p><div class="sect1" title="Features and Benefits"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2575193"></a>Features and Benefits</h2></div></div></div><p>
     20<a class="indexterm" name="id2575201"></a>
     21<a class="indexterm" name="id2575208"></a>
     22<a class="indexterm" name="id2575215"></a>
    2323MS Windows workstations and servers that want to participate in domain security need to
    2424be made domain members. Participating in domain security is often called
     
    2828server) or a Samba server a member of an MS Windows domain security context.
    2929</p><p>
    30 <a class="indexterm" name="id2569176"></a>
    31 <a class="indexterm" name="id2569183"></a>
    32 <a class="indexterm" name="id2569190"></a>
    33 <a class="indexterm" name="id2569196"></a>
     30<a class="indexterm" name="id2575247"></a>
     31<a class="indexterm" name="id2575254"></a>
     32<a class="indexterm" name="id2575260"></a>
     33<a class="indexterm" name="id2575267"></a>
    3434Samba-3 can join an MS Windows NT4-style domain as a native member server, an
    3535MS Windows Active Directory domain as a native member server, or a Samba domain
    3636control network. Domain membership has many advantages:
    37 </p><div class="itemizedlist"><ul type="disc"><li><p>
    38         <a class="indexterm" name="id2569216"></a>
     37</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
     38        <a class="indexterm" name="id2575287"></a>
    3939        MS Windows workstation users get the benefit of SSO.
    40         </p></li><li><p>
    41         <a class="indexterm" name="id2569228"></a>
    42         <a class="indexterm" name="id2569235"></a>
    43         <a class="indexterm" name="id2569242"></a>
    44         <a class="indexterm" name="id2569249"></a>
     40        </p></li><li class="listitem"><p>
     41        <a class="indexterm" name="id2575299"></a>
     42        <a class="indexterm" name="id2575306"></a>
     43        <a class="indexterm" name="id2575312"></a>
     44        <a class="indexterm" name="id2575319"></a>
    4545        Domain user access rights and file ownership/access controls can be set
    4646        from the single Domain Security Account Manager (SAM) database
    4747        (works with domain member servers as well as with MS Windows workstations
    4848        that are domain members).
    49         </p></li><li><p>
    50         <a class="indexterm" name="id2569264"></a>
    51         <a class="indexterm" name="id2569270"></a>
     49        </p></li><li class="listitem"><p>
     50        <a class="indexterm" name="id2575334"></a>
     51        <a class="indexterm" name="id2575341"></a>
    5252        Only <span class="application">MS Windows NT4/200x/XP Professional</span>
    5353        workstations that are domain members can use network logon facilities.
    54         </p></li><li><p>
    55         <a class="indexterm" name="id2569289"></a>
    56         <a class="indexterm" name="id2569296"></a>
    57         <a class="indexterm" name="id2569303"></a>
    58         <a class="indexterm" name="id2569310"></a>
     54        </p></li><li class="listitem"><p>
     55        <a class="indexterm" name="id2575360"></a>
     56        <a class="indexterm" name="id2575367"></a>
     57        <a class="indexterm" name="id2575374"></a>
     58        <a class="indexterm" name="id2575381"></a>
    5959        Domain member workstations can be better controlled through the use of
    6060        policy files (<code class="filename">NTConfig.POL</code>) and desktop profiles.
    61         </p></li><li><p>
    62         <a class="indexterm" name="id2569329"></a>
    63         <a class="indexterm" name="id2569336"></a>
    64         <a class="indexterm" name="id2569343"></a>
     61        </p></li><li class="listitem"><p>
     62        <a class="indexterm" name="id2575400"></a>
     63        <a class="indexterm" name="id2575407"></a>
     64        <a class="indexterm" name="id2575414"></a>
    6565        Through the use of logon scripts, users can be given transparent access to network
    6666        applications that run off application servers.
    67         </p></li><li><p>
    68         <a class="indexterm" name="id2569357"></a>
    69         <a class="indexterm" name="id2569364"></a>
    70         <a class="indexterm" name="id2569370"></a>
    71         <a class="indexterm" name="id2569377"></a>
     67        </p></li><li class="listitem"><p>
     68        <a class="indexterm" name="id2575428"></a>
     69        <a class="indexterm" name="id2575435"></a>
     70        <a class="indexterm" name="id2575441"></a>
     71        <a class="indexterm" name="id2575448"></a>
    7272        Network administrators gain better application and user access management
    7373        abilities because there is no need to maintain user accounts on any network
     
    7575        (either NT4/Samba SAM-style domain, NT4 domain that is backend-ed with an
    7676        LDAP directory, or via an Active Directory infrastructure).
    77         </p></li></ul></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="machine-trust-accounts"></a>MS Windows Workstation/Server Machine Trust Accounts</h2></div></div></div><p>
    78 <a class="indexterm" name="id2569406"></a>
    79 <a class="indexterm" name="id2569412"></a>
    80 <a class="indexterm" name="id2569419"></a>
    81 <a class="indexterm" name="id2569426"></a>
     77        </p></li></ul></div></div><div class="sect1" title="MS Windows Workstation/Server Machine Trust Accounts"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="machine-trust-accounts"></a>MS Windows Workstation/Server Machine Trust Accounts</h2></div></div></div><p>
     78<a class="indexterm" name="id2575476"></a>
     79<a class="indexterm" name="id2575483"></a>
     80<a class="indexterm" name="id2575490"></a>
     81<a class="indexterm" name="id2575497"></a>
    8282A Machine Trust Account is an account that is used to authenticate a client machine (rather than a user) to
    83 the domain controller server. In Windows terminology, this is known as a &#8220;<span class="quote">computer account.</span>&#8221; The
     83the domain controller server. In Windows terminology, this is known as a <span class="quote">&#8220;<span class="quote">computer account.</span>&#8221;</span> The
    8484purpose of the machine trust account is to prevent a rogue user and domain controller from colluding to gain
    8585access to a domain member workstation.
    8686</p><p>
    87 <a class="indexterm" name="id2569446"></a>
    88 <a class="indexterm" name="id2569455"></a>
    89 <a class="indexterm" name="id2569462"></a>
    90 <a class="indexterm" name="id2569469"></a>
    91 <a class="indexterm" name="id2569476"></a>
     87<a class="indexterm" name="id2575516"></a>
     88<a class="indexterm" name="id2575526"></a>
     89<a class="indexterm" name="id2575533"></a>
     90<a class="indexterm" name="id2575540"></a>
     91<a class="indexterm" name="id2575547"></a>
    9292The password of a Machine Trust Account acts as the shared secret for secure communication with the domain
    9393controller. This is a security feature to prevent an unauthorized machine with the same NetBIOS name from
     
    9797possess a Machine Trust Account, and, thus, has no shared secret with the domain controller.
    9898</p><p>
    99 <a class="indexterm" name="id2569497"></a>
    100 <a class="indexterm" name="id2569504"></a>
    101 <a class="indexterm" name="id2569510"></a>
    102 <a class="indexterm" name="id2569517"></a>
     99<a class="indexterm" name="id2575568"></a>
     100<a class="indexterm" name="id2575575"></a>
     101<a class="indexterm" name="id2575581"></a>
     102<a class="indexterm" name="id2575588"></a>
    103103A Windows NT4 PDC stores each Machine Trust Account in the Windows Registry.
    104104The introduction of MS Windows 2000 saw the introduction of Active Directory,
     
    107107as follows:
    108108
    109 </p><div class="itemizedlist"><ul type="disc"><li><p>
    110         <a class="indexterm" name="id2569534"></a>
    111         <a class="indexterm" name="id2569541"></a>
    112         <a class="indexterm" name="id2569548"></a>
     109</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
     110        <a class="indexterm" name="id2575605"></a>
     111        <a class="indexterm" name="id2575612"></a>
     112        <a class="indexterm" name="id2575619"></a>
    113113        A domain security account (stored in the <a class="link" href="smb.conf.5.html#PASSDBBACKEND" target="_top">passdb backend</a>) that has been configured in
    114114        the <code class="filename">smb.conf</code> file. The precise nature of the account information that is stored depends on the type of
    115115        backend database that has been chosen.
    116116        </p><p>
    117         <a class="indexterm" name="id2569580"></a>
    118         <a class="indexterm" name="id2569587"></a>
    119         <a class="indexterm" name="id2569594"></a>
    120         <a class="indexterm" name="id2569600"></a>
    121         <a class="indexterm" name="id2569607"></a>
    122         <a class="indexterm" name="id2569614"></a>
     117        <a class="indexterm" name="id2575651"></a>
     118        <a class="indexterm" name="id2575658"></a>
     119        <a class="indexterm" name="id2575664"></a>
     120        <a class="indexterm" name="id2575671"></a>
     121        <a class="indexterm" name="id2575678"></a>
     122        <a class="indexterm" name="id2575685"></a>
    123123        The older format of this data is the <code class="filename">smbpasswd</code> database
    124124        that contains the UNIX login ID, the UNIX user identifier (UID), and the
     
    126126        this file that we do not need to concern ourselves with here.
    127127        </p><p>
    128         <a class="indexterm" name="id2569636"></a>
    129         <a class="indexterm" name="id2569643"></a>
    130         <a class="indexterm" name="id2569650"></a>
    131         <a class="indexterm" name="id2569656"></a>
     128        <a class="indexterm" name="id2575707"></a>
     129        <a class="indexterm" name="id2575714"></a>
     130        <a class="indexterm" name="id2575720"></a>
     131        <a class="indexterm" name="id2575727"></a>
    132132        The two newer database types are called ldapsam and tdbsam. Both store considerably more data than the older
    133133        <code class="filename">smbpasswd</code> file did. The extra information enables new user account controls to be
    134134        implemented.
    135         </p></li><li><p>
    136         <a class="indexterm" name="id2569677"></a>
    137         <a class="indexterm" name="id2569684"></a>
     135        </p></li><li class="listitem"><p>
     136        <a class="indexterm" name="id2575748"></a>
     137        <a class="indexterm" name="id2575755"></a>
    138138        A corresponding UNIX account, typically stored in <code class="filename">/etc/passwd</code>. Work is in progress to
    139139        allow a simplified mode of operation that does not require UNIX user accounts, but this has not been a feature
     
    141141        </p></li></ul></div><p>
    142142</p><p>
    143 <a class="indexterm" name="id2569710"></a>
     143<a class="indexterm" name="id2575781"></a>
    144144There are three ways to create Machine Trust Accounts:
    145 </p><div class="itemizedlist"><ul type="disc"><li><p>
    146         <a class="indexterm" name="id2569726"></a>
     145</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
     146        <a class="indexterm" name="id2575797"></a>
    147147        Manual creation from the UNIX/Linux command line. Here, both the Samba and
    148148        corresponding UNIX account are created by hand.
    149         </p></li><li><p>
    150         <a class="indexterm" name="id2569740"></a>
    151         <a class="indexterm" name="id2569747"></a>
     149        </p></li><li class="listitem"><p>
     150        <a class="indexterm" name="id2575811"></a>
     151        <a class="indexterm" name="id2575818"></a>
    152152        Using the MS Windows NT4 Server Manager, either from an NT4 domain member
    153153        server or using the Nexus toolkit available from the Microsoft Web site.
    154154        This tool can be run from any MS Windows machine as long as the user is
    155155        logged on as the administrator account.
    156         </p></li><li><p>
    157         <a class="indexterm" name="id2569763"></a>
    158         <a class="indexterm" name="id2569770"></a>
    159         &#8220;<span class="quote">On-the-fly</span>&#8221; creation. The Samba Machine Trust Account is automatically
     156        </p></li><li class="listitem"><p>
     157        <a class="indexterm" name="id2575833"></a>
     158        <a class="indexterm" name="id2575840"></a>
     159        <span class="quote">&#8220;<span class="quote">On-the-fly</span>&#8221;</span> creation. The Samba Machine Trust Account is automatically
    160160        created by Samba at the time the client is joined to the domain.
    161161        (For security, this is the recommended method.) The corresponding UNIX
    162162        account may be created automatically or manually.
    163163        </p></li></ul></div><p>
    164 <a class="indexterm" name="id2569789"></a>
    165 <a class="indexterm" name="id2569795"></a>
     164<a class="indexterm" name="id2575859"></a>
     165<a class="indexterm" name="id2575866"></a>
    166166Neither MS Windows NT4/200x/XP Professional, nor Samba, provide any method for enforcing the method of machine
    167167trust account creation. This is a matter of the administrator's choice.
    168 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2569809"></a>Manual Creation of Machine Trust Accounts</h3></div></div></div><p>
    169 <a class="indexterm" name="id2569817"></a>
    170 <a class="indexterm" name="id2569824"></a>
    171 <a class="indexterm" name="id2569830"></a>
    172 <a class="indexterm" name="id2569836"></a>
     168</p><div class="sect2" title="Manual Creation of Machine Trust Accounts"><div class="titlepage"><div><div><h3 class="title"><a name="id2575880"></a>Manual Creation of Machine Trust Accounts</h3></div></div></div><p>
     169<a class="indexterm" name="id2575888"></a>
     170<a class="indexterm" name="id2575895"></a>
     171<a class="indexterm" name="id2575900"></a>
     172<a class="indexterm" name="id2575907"></a>
    173173The first step in manually creating a Machine Trust Account is to manually
    174174create the corresponding UNIX account in <code class="filename">/etc/passwd</code>.
    175 This can be done using <code class="literal">vipw</code> or another &#8220;<span class="quote">adduser</span>&#8221; command
     175This can be done using <code class="literal">vipw</code> or another <span class="quote">&#8220;<span class="quote">adduser</span>&#8221;</span> command
    176176that is normally used to create new UNIX accounts. The following is an example for
    177177a Linux-based Samba server:
     
    184184</pre><p>
    185185</p><p>
    186 <a class="indexterm" name="id2569905"></a>
    187 <a class="indexterm" name="id2569912"></a>
    188 <a class="indexterm" name="id2569919"></a>
    189 In the example above there is an existing system group &#8220;<span class="quote">machines</span>&#8221; which is used
    190 as the primary group for all machine accounts. In the following examples the &#8220;<span class="quote">machines</span>&#8221; group
     186<a class="indexterm" name="id2575976"></a>
     187<a class="indexterm" name="id2575983"></a>
     188<a class="indexterm" name="id2575989"></a>
     189In the example above there is an existing system group <span class="quote">&#8220;<span class="quote">machines</span>&#8221;</span> which is used
     190as the primary group for all machine accounts. In the following examples the <span class="quote">&#8220;<span class="quote">machines</span>&#8221;</span> group
    191191numeric GID is 100.
    192192</p><p>
    193 <a class="indexterm" name="id2569939"></a>
    194 <a class="indexterm" name="id2569946"></a>
     193<a class="indexterm" name="id2576010"></a>
     194<a class="indexterm" name="id2576017"></a>
    195195On *BSD systems, this can be done using the <code class="literal">chpass</code> utility:
    196196</p><pre class="screen">
     
    199199</pre><p>
    200200</p><p>
    201 <a class="indexterm" name="id2569987"></a>
    202 <a class="indexterm" name="id2569994"></a>
    203 <a class="indexterm" name="id2570000"></a>
    204 <a class="indexterm" name="id2570007"></a>
     201<a class="indexterm" name="id2576058"></a>
     202<a class="indexterm" name="id2576064"></a>
     203<a class="indexterm" name="id2576071"></a>
     204<a class="indexterm" name="id2576078"></a>
    205205The <code class="filename">/etc/passwd</code> entry will list the machine name
    206 with a &#8220;<span class="quote">$</span>&#8221; appended, and will not have a password, will have a null shell and no
    207 home directory. For example, a machine named &#8220;<span class="quote">doppy</span>&#8221; would have an
     206with a <span class="quote">&#8220;<span class="quote">$</span>&#8221;</span> appended, and will not have a password, will have a null shell and no
     207home directory. For example, a machine named <span class="quote">&#8220;<span class="quote">doppy</span>&#8221;</span> would have an
    208208<code class="filename">/etc/passwd</code> entry like this:
    209209</p><pre class="programlisting">
     
    211211</pre><p>
    212212</p><p>
    213 <a class="indexterm" name="id2570049"></a>
    214 <a class="indexterm" name="id2570056"></a>
    215 <a class="indexterm" name="id2570063"></a>
     213<a class="indexterm" name="id2576120"></a>
     214<a class="indexterm" name="id2576127"></a>
     215<a class="indexterm" name="id2576134"></a>
    216216in which <em class="replaceable"><code>machine_nickname</code></em> can be any
    217217descriptive name for the client, such as BasementComputer.
    218218<em class="replaceable"><code>machine_name</code></em> absolutely must be the NetBIOS
    219 name of the client to be joined to the domain. The &#8220;<span class="quote">$</span>&#8221; must be
     219name of the client to be joined to the domain. The <span class="quote">&#8220;<span class="quote">$</span>&#8221;</span> must be
    220220appended to the NetBIOS name of the client or Samba will not recognize
    221221this as a Machine Trust Account.
    222222</p><p>
    223 <a class="indexterm" name="id2570089"></a>
    224 <a class="indexterm" name="id2570096"></a>
    225 <a class="indexterm" name="id2570103"></a>
     223<a class="indexterm" name="id2576160"></a>
     224<a class="indexterm" name="id2576167"></a>
     225<a class="indexterm" name="id2576174"></a>
    226226Now that the corresponding UNIX account has been created, the next step is to create
    227227the Samba account for the client containing the well-known initial
     
    233233</pre><p>
    234234</p><p>
    235 <a class="indexterm" name="id2570144"></a>
    236 <a class="indexterm" name="id2570151"></a>
    237 <a class="indexterm" name="id2570158"></a>
    238 <a class="indexterm" name="id2570165"></a>
     235<a class="indexterm" name="id2576215"></a>
     236<a class="indexterm" name="id2576222"></a>
     237<a class="indexterm" name="id2576229"></a>
     238<a class="indexterm" name="id2576235"></a>
    239239where <em class="replaceable"><code>machine_name</code></em> is the machine's NetBIOS
    240240name. The RID of the new machine account is generated from the UID of
    241241the corresponding UNIX account.
    242 </p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Join the client to the domain immediately</h3><p>
    243 <a class="indexterm" name="id2570187"></a>
    244 <a class="indexterm" name="id2570194"></a>
    245 <a class="indexterm" name="id2570200"></a>
    246 <a class="indexterm" name="id2570207"></a>
    247 <a class="indexterm" name="id2570214"></a>
     242</p><div class="warning" title="Join the client to the domain immediately" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Join the client to the domain immediately</h3><p>
     243<a class="indexterm" name="id2576257"></a>
     244<a class="indexterm" name="id2576264"></a>
     245<a class="indexterm" name="id2576271"></a>
     246<a class="indexterm" name="id2576278"></a>
     247<a class="indexterm" name="id2576285"></a>
    248248Manually creating a Machine Trust Account using this method is the
    249249equivalent of creating a Machine Trust Account on a Windows NT PDC using
    250 <a class="indexterm" name="id2570224"></a>
     250<a class="indexterm" name="id2576294"></a>
    251251the <span class="application">Server Manager</span>. From the time at which the
    252252account is created to the time the client joins the domain and
     
    255255trusts members of the domain and will serve out a large degree of user
    256256information to such clients. You have been warned!
    257 </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2570246"></a>Managing Domain Machine Accounts using NT4 Server Manager</h3></div></div></div><p>
    258 <a class="indexterm" name="id2570254"></a>
    259 <a class="indexterm" name="id2570262"></a>
    260 <a class="indexterm" name="id2570269"></a>
     257</p></div></div><div class="sect2" title="Managing Domain Machine Accounts using NT4 Server Manager"><div class="titlepage"><div><div><h3 class="title"><a name="id2576317"></a>Managing Domain Machine Accounts using NT4 Server Manager</h3></div></div></div><p>
     258<a class="indexterm" name="id2576325"></a>
     259<a class="indexterm" name="id2576332"></a>
     260<a class="indexterm" name="id2576339"></a>
    261261A working <a class="link" href="smb.conf.5.html#ADDMACHINESCRIPT" target="_top">add machine script</a> is essential
    262262for machine trust accounts to be automatically created. This applies no matter whether
    263263you use automatic account creation or the NT4 Domain Server Manager.
    264264</p><p>
    265 <a class="indexterm" name="id2570294"></a>
    266 <a class="indexterm" name="id2570301"></a>
    267 <a class="indexterm" name="id2570308"></a>
    268 <a class="indexterm" name="id2570314"></a>
     265<a class="indexterm" name="id2576365"></a>
     266<a class="indexterm" name="id2576372"></a>
     267<a class="indexterm" name="id2576378"></a>
     268<a class="indexterm" name="id2576385"></a>
    269269If the machine from which you are trying to manage the domain is an
    270270<span class="application">MS Windows NT4 workstation or MS Windows 200x/XP Professional</span>,
     
    273273and <code class="literal">UsrMgr.exe</code> (both are domain management tools for MS Windows NT4 workstation).
    274274</p><p>
    275 <a class="indexterm" name="id2570353"></a>
    276 <a class="indexterm" name="id2570360"></a>
     275<a class="indexterm" name="id2576424"></a>
     276<a class="indexterm" name="id2576430"></a>
    277277If your workstation is a <span class="application">Microsoft Windows 9x/Me</span> family product,
    278278 you should download the <code class="literal">Nexus.exe</code> package from the Microsoft Web site.
     
    284284<a class="ulink" href="http://support.microsoft.com/default.aspx?scid=kb;en-us;172540" target="_top">172540</a>
    285285</p><p>
    286 <a class="indexterm" name="id2570404"></a>
    287 <a class="indexterm" name="id2570411"></a>
     286<a class="indexterm" name="id2576475"></a>
     287<a class="indexterm" name="id2576481"></a>
    288288Launch the <code class="literal">srvmgr.exe</code> (Server Manager for Domains) and follow these steps:
    289 </p><div class="procedure"><a name="id2570426"></a><p class="title"><b>Procedure 6.1. Server Manager Account Machine Account Management</b></p><ol type="1"><li><p>
     289</p><div class="procedure" title="Procedure 6.1. Server Manager Account Machine Account Management"><a name="id2576497"></a><p class="title"><b>Procedure 6.1. Server Manager Account Machine Account Management</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
    290290        From the menu select <span class="guimenu">Computer</span>.
    291         </p></li><li><p>
     291        </p></li><li class="step" title="Step 2"><p>
    292292        Click <span class="guimenuitem">Select Domain</span>.
    293         </p></li><li><p>
     293        </p></li><li class="step" title="Step 3"><p>
    294294        Click the name of the domain you wish to administer in the
    295295        <span class="guilabel">Select Domain</span> panel and then click
    296296        <span class="guibutton">OK</span>.
    297         </p></li><li><p>
     297        </p></li><li class="step" title="Step 4"><p>
    298298        Again from the menu select <span class="guimenu">Computer</span>.
    299         </p></li><li><p>
     299        </p></li><li class="step" title="Step 5"><p>
    300300        Select <span class="guimenuitem">Add to Domain</span>.
    301         </p></li><li><p>
     301        </p></li><li class="step" title="Step 6"><p>
    302302        In the dialog box, click the radio button to
    303303        <span class="guilabel">Add NT Workstation of Server</span>, then
    304304        enter the machine name in the field provided, and click the
    305305        <span class="guibutton">Add</span> button.
    306         </p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2570526"></a>On-the-Fly Creation of Machine Trust Accounts</h3></div></div></div><p>
    307 <a class="indexterm" name="id2570535"></a>
     306        </p></li></ol></div></div><div class="sect2" title="On-the-Fly Creation of Machine Trust Accounts"><div class="titlepage"><div><div><h3 class="title"><a name="id2576597"></a>On-the-Fly Creation of Machine Trust Accounts</h3></div></div></div><p>
     307<a class="indexterm" name="id2576606"></a>
    308308The third (and recommended) way of creating Machine Trust Accounts is simply to allow the Samba server to
    309309create them as needed when the client is joined to the domain.
    310310</p><p>
    311 <a class="indexterm" name="id2570550"></a>
    312 <a class="indexterm" name="id2570560"></a>
    313 <a class="indexterm" name="id2570567"></a>
     311<a class="indexterm" name="id2576621"></a>
     312<a class="indexterm" name="id2576631"></a>
     313<a class="indexterm" name="id2576638"></a>
    314314Since each Samba Machine Trust Account requires a corresponding UNIX account, a method
    315315for automatically creating the UNIX account is usually supplied; this requires configuration of the
     
    317317accounts may also be created manually.
    318318</p><p>
    319 <a class="indexterm" name="id2570588"></a>
    320 <a class="indexterm" name="id2570595"></a>
     319<a class="indexterm" name="id2576659"></a>
     320<a class="indexterm" name="id2576666"></a>
    321321Here is an example for a Red Hat Linux system:
    322 </p><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2570617"></a><em class="parameter"><code>add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u</code></em></td></tr></table><p>
    323 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2570632"></a>Making an MS Windows Workstation or Server a Domain Member</h3></div></div></div><p>
     322</p><table border="0" summary="Simple list" class="simplelist"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2576688"></a><em class="parameter"><code>add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u</code></em></td></tr></table><p>
     323</p></div><div class="sect2" title="Making an MS Windows Workstation or Server a Domain Member"><div class="titlepage"><div><div><h3 class="title"><a name="id2576703"></a>Making an MS Windows Workstation or Server a Domain Member</h3></div></div></div><p>
    324324The procedure for making an MS Windows workstation or server a member of the domain varies
    325325with the version of Windows.
    326 </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2570643"></a>Windows 200x/XP Professional Client</h4></div></div></div><p>
    327 <a class="indexterm" name="id2570651"></a>
    328 <a class="indexterm" name="id2570658"></a>
    329 <a class="indexterm" name="id2570668"></a>
    330 <a class="indexterm" name="id2570675"></a>
     326</p><div class="sect3" title="Windows 200x/XP Professional Client"><div class="titlepage"><div><div><h4 class="title"><a name="id2576714"></a>Windows 200x/XP Professional Client</h4></div></div></div><p>
     327<a class="indexterm" name="id2576722"></a>
     328<a class="indexterm" name="id2576729"></a>
     329<a class="indexterm" name="id2576739"></a>
     330<a class="indexterm" name="id2576745"></a>
    331331        When the user elects to make the client a domain member, Windows 200x prompts for
    332332        an account and password that has privileges to create  machine accounts in the domain.
     
    335335        account is given.
    336336        </p><p>
    337 <a class="indexterm" name="id2570694"></a>
    338 <a class="indexterm" name="id2570701"></a>
     337<a class="indexterm" name="id2576765"></a>
     338<a class="indexterm" name="id2576772"></a>
    339339        For security reasons, the password for this administrator account should be set
    340340        to a password that is other than that used for the root user in <code class="filename">/etc/passwd</code>.
    341341        </p><p>
    342 <a class="indexterm" name="id2570720"></a>
    343 <a class="indexterm" name="id2570726"></a>
    344 <a class="indexterm" name="id2570733"></a>
    345 <a class="indexterm" name="id2570740"></a>
     342<a class="indexterm" name="id2576790"></a>
     343<a class="indexterm" name="id2576797"></a>
     344<a class="indexterm" name="id2576804"></a>
     345<a class="indexterm" name="id2576811"></a>
    346346        The name of the account that is used to create domain member machine trust accounts can be
    347347        anything the network administrator may choose. If it is other than <code class="constant">root</code>,
     
    349349        <a class="link" href="smb.conf.5.html#USERNAMEMAP" target="_top">username map = /etc/samba/smbusers</a>.
    350350        </p><p>
    351 <a class="indexterm" name="id2570780"></a>
    352 <a class="indexterm" name="id2570787"></a>
    353 <a class="indexterm" name="id2570793"></a>
     351<a class="indexterm" name="id2576851"></a>
     352<a class="indexterm" name="id2576858"></a>
     353<a class="indexterm" name="id2576865"></a>
    354354        The session key of the Samba administrator account acts as an encryption key for setting the password of the machine trust
    355355        account. The Machine Trust Account will be created on-the-fly, or updated if it already exists.
    356         </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2570806"></a>Windows NT4 Client</h4></div></div></div><p>
    357 <a class="indexterm" name="id2570814"></a>
    358 <a class="indexterm" name="id2570821"></a>
    359 <a class="indexterm" name="id2570828"></a>
     356        </p></div><div class="sect3" title="Windows NT4 Client"><div class="titlepage"><div><div><h4 class="title"><a name="id2576878"></a>Windows NT4 Client</h4></div></div></div><p>
     357<a class="indexterm" name="id2576886"></a>
     358<a class="indexterm" name="id2576893"></a>
     359<a class="indexterm" name="id2576900"></a>
    360360        If the Machine Trust Account was created manually, on the
    361361        Identification Changes menu enter the domain name, but do not
     
    364364        to the domain.
    365365        </p><p>
    366 <a class="indexterm" name="id2570849"></a>
    367 <a class="indexterm" name="id2570856"></a>
    368 <a class="indexterm" name="id2570862"></a>
    369 <a class="indexterm" name="id2570869"></a>
     366<a class="indexterm" name="id2576919"></a>
     367<a class="indexterm" name="id2576926"></a>
     368<a class="indexterm" name="id2576933"></a>
     369<a class="indexterm" name="id2576940"></a>
    370370        If the Machine Trust Account is to be created on the fly, on the Identification Changes menu enter the domain
    371371        name and check the box <span class="guilabel">Create a Computer Account in the Domain</span>. In this case, joining
    372372        the domain proceeds as above for Windows 2000 (i.e., you must supply a Samba administrator account when
    373373        prompted).
    374         </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2570890"></a>Samba Client</h4></div></div></div><p>
    375 <a class="indexterm" name="id2570898"></a>
     374        </p></div><div class="sect3" title="Samba Client"><div class="titlepage"><div><div><h4 class="title"><a name="id2576961"></a>Samba Client</h4></div></div></div><p>
     375<a class="indexterm" name="id2576968"></a>
    376376        Joining a Samba client to a domain is documented in <a class="link" href="domain-member.html#domain-member-server" title="Domain Member Server">the next section</a>.
    377         </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="domain-member-server"></a>Domain Member Server</h2></div></div></div><p>
    378 <a class="indexterm" name="id2570928"></a>
    379 <a class="indexterm" name="id2570935"></a>
    380 <a class="indexterm" name="id2570942"></a>
    381 <a class="indexterm" name="id2570949"></a>
     377        </p></div></div></div><div class="sect1" title="Domain Member Server"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="domain-member-server"></a>Domain Member Server</h2></div></div></div><p>
     378<a class="indexterm" name="id2576999"></a>
     379<a class="indexterm" name="id2577006"></a>
     380<a class="indexterm" name="id2577013"></a>
     381<a class="indexterm" name="id2577020"></a>
    382382This mode of server operation involves the Samba machine being made a member
    383383of a domain security context. This means by definition that all user
     
    388388</p><p>
    389389<span class="emphasis"><em>
    390 <a class="indexterm" name="id2570968"></a>
    391 <a class="indexterm" name="id2570978"></a>
    392 <a class="indexterm" name="id2570985"></a>
    393 <a class="indexterm" name="id2570991"></a>
    394 <a class="indexterm" name="id2570998"></a>
    395 <a class="indexterm" name="id2571005"></a>
    396 <a class="indexterm" name="id2571012"></a>
    397 <a class="indexterm" name="id2571018"></a>
     390<a class="indexterm" name="id2577039"></a>
     391<a class="indexterm" name="id2577048"></a>
     392<a class="indexterm" name="id2577055"></a>
     393<a class="indexterm" name="id2577062"></a>
     394<a class="indexterm" name="id2577069"></a>
     395<a class="indexterm" name="id2577076"></a>
     396<a class="indexterm" name="id2577082"></a>
     397<a class="indexterm" name="id2577089"></a>
    398398Of course it should be clear that the authentication backend itself could be
    399399from any distributed directory architecture server that is supported by Samba.
     
    401401Server, and so on.
    402402</em></span>
    403 </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    404 <a class="indexterm" name="id2571035"></a>
    405 <a class="indexterm" name="id2571042"></a>
    406 <a class="indexterm" name="id2571048"></a>
     403</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     404<a class="indexterm" name="id2577106"></a>
     405<a class="indexterm" name="id2577112"></a>
     406<a class="indexterm" name="id2577119"></a>
    407407When Samba is configured to use an LDAP or other identity management and/or
    408408directory service, it is Samba that continues to perform user and machine
     
    410410authentication handling in place of what Samba is designed to do.
    411411</p></div><p>
    412 <a class="indexterm" name="id2571064"></a>
    413 <a class="indexterm" name="id2571071"></a>
    414 <a class="indexterm" name="id2571078"></a>
     412<a class="indexterm" name="id2577134"></a>
     413<a class="indexterm" name="id2577142"></a>
     414<a class="indexterm" name="id2577149"></a>
    415415Please refer to <a class="link" href="samba-pdc.html" title="Chapter 4. Domain Control">Domain Control</a>, for more information regarding
    416416how to create a domain machine account for a domain member server as well as for
    417417information on how to enable the Samba domain member machine to join the domain
    418418and be fully trusted by it.
    419 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2571097"></a>Joining an NT4-type Domain with Samba-3</h3></div></div></div><p><a class="link" href="domain-member.html#assumptions" title="Table 6.1. Assumptions">Assumptions</a> lists names that are used in the remainder of this chapter.</p><div class="table"><a name="assumptions"></a><p class="title"><b>Table 6.1. Assumptions</b></p><div class="table-contents"><table summary="Assumptions" border="1"><colgroup><col align="right"><col align="left"></colgroup><tbody><tr><td align="right">Samba DMS NetBIOS name:</td><td align="left">SERV1</td></tr><tr><td align="right">Windows 200x/NT domain name:</td><td align="left">MIDEARTH</td></tr><tr><td align="right">Domain's PDC NetBIOS name:</td><td align="left">DOMPDC</td></tr><tr><td align="right">Domain's BDC NetBIOS names:</td><td align="left">DOMBDC1 and DOMBDC2</td></tr></tbody></table></div></div><br class="table-break"><p>
    420 <a class="indexterm" name="id2571182"></a>
     419</p><div class="sect2" title="Joining an NT4-type Domain with Samba-3"><div class="titlepage"><div><div><h3 class="title"><a name="id2577168"></a>Joining an NT4-type Domain with Samba-3</h3></div></div></div><p><a class="link" href="domain-member.html#assumptions" title="Table 6.1. Assumptions">Assumptions</a> lists names that are used in the remainder of this chapter.</p><div class="table"><a name="assumptions"></a><p class="title"><b>Table 6.1. Assumptions</b></p><div class="table-contents"><table summary="Assumptions" border="1"><colgroup><col align="right"><col align="left"></colgroup><tbody><tr><td align="right">Samba DMS NetBIOS name:</td><td align="left">SERV1</td></tr><tr><td align="right">Windows 200x/NT domain name:</td><td align="left">MIDEARTH</td></tr><tr><td align="right">Domain's PDC NetBIOS name:</td><td align="left">DOMPDC</td></tr><tr><td align="right">Domain's BDC NetBIOS names:</td><td align="left">DOMBDC1 and DOMBDC2</td></tr></tbody></table></div></div><br class="table-break"><p>
     420<a class="indexterm" name="id2577252"></a>
    421421First, you must edit your <code class="filename">smb.conf</code> file to tell Samba it should now use domain security.
    422422</p><p>
    423 <a class="indexterm" name="id2571198"></a>
    424 <a class="indexterm" name="id2571205"></a>
    425 <a class="indexterm" name="id2571212"></a>
    426 <a class="indexterm" name="id2571219"></a>
     423<a class="indexterm" name="id2577268"></a>
     424<a class="indexterm" name="id2577275"></a>
     425<a class="indexterm" name="id2577282"></a>
     426<a class="indexterm" name="id2577289"></a>
    427427Change (or add) your <a class="link" href="smb.conf.5.html#SECURITY" target="_top">security</a> line in the [global] section
    428428of your <code class="filename">smb.conf</code> to read:
    429 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2571249"></a><em class="parameter"><code>security = domain</code></em></td></tr></table><p>
     429</p><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id2577320"></a><em class="parameter"><code>security = domain</code></em></td></tr></table><p>
    430430Note that if the parameter <em class="parameter"><code>security = user</code></em> is used, this machine would function as a
    431431standalone server and not as a domain member server. Domain security mode causes Samba to work within the
     
    434434Next change the <a class="link" href="smb.conf.5.html#WORKGROUP" target="_top">workgroup</a> line in the <em class="parameter"><code>[global]</code></em>
    435435section to read:
    436 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2571297"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr></table><p>
     436</p><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id2577368"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr></table><p>
    437437This is the name of the domain we are joining.
    438438</p><p>
    439 <a class="indexterm" name="id2571313"></a>
    440 <a class="indexterm" name="id2571320"></a>
     439<a class="indexterm" name="id2577384"></a>
     440<a class="indexterm" name="id2577391"></a>
    441441You must also have the parameter <a class="link" href="smb.conf.5.html#ENCRYPTPASSWORDS" target="_top">encrypt passwords</a>
    442442set to <code class="constant">yes</code> in order for your users to authenticate to the NT PDC.
     
    444444parameter, but if it is specified in the <code class="filename">smb.conf</code> file, it must be set to <code class="constant">Yes</code>.
    445445</p><p>
    446 <a class="indexterm" name="id2571359"></a>
    447 <a class="indexterm" name="id2571366"></a>
    448 <a class="indexterm" name="id2571372"></a>
    449 <a class="indexterm" name="id2571379"></a>
     446<a class="indexterm" name="id2577430"></a>
     447<a class="indexterm" name="id2577437"></a>
     448<a class="indexterm" name="id2577443"></a>
     449<a class="indexterm" name="id2577450"></a>
    450450Finally, add (or modify) a <a class="link" href="smb.conf.5.html#PASSWORDSERVER" target="_top">password server</a> line in the [global]
    451451section to read:
    452 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2571404"></a><em class="parameter"><code>password server = DOMPDC DOMBDC1 DOMBDC2</code></em></td></tr></table><p>
     452</p><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id2577475"></a><em class="parameter"><code>password server = DOMPDC DOMBDC1 DOMBDC2</code></em></td></tr></table><p>
    453453These are the PDC and BDCs Samba
    454454will attempt to contact in order to authenticate users. Samba will
     
    457457among Domain Controllers.
    458458</p><p>
    459 <a class="indexterm" name="id2571423"></a>
    460 <a class="indexterm" name="id2571430"></a>
    461 <a class="indexterm" name="id2571437"></a>
    462 <a class="indexterm" name="id2571444"></a>
     459<a class="indexterm" name="id2577494"></a>
     460<a class="indexterm" name="id2577501"></a>
     461<a class="indexterm" name="id2577508"></a>
     462<a class="indexterm" name="id2577515"></a>
    463463Alternatively, if you want smbd to determine automatically the list of domain controllers to use for
    464464authentication, you may set this line to be:
    465 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2571459"></a><em class="parameter"><code>password server = *</code></em></td></tr></table><p>
    466 <a class="indexterm" name="id2571471"></a>
     465</p><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id2577530"></a><em class="parameter"><code>password server = *</code></em></td></tr></table><p>
     466<a class="indexterm" name="id2577542"></a>
    467467This method allows Samba to use exactly the same mechanism that NT does. The
    468468method either uses broadcast-based name resolution, performs a WINS database
     
    471471</p><p>
    472472To join the domain, run this command:
    473 <a class="indexterm" name="id2571487"></a>
     473<a class="indexterm" name="id2577558"></a>
    474474</p><pre class="screen">
    475475<code class="prompt">root# </code><strong class="userinput"><code>net rpc join -S DOMPDC -U<em class="replaceable"><code>Administrator%password</code></em></code></strong>
    476476</pre><p>
    477477</p><p>
    478 <a class="indexterm" name="id2571520"></a>
    479 <a class="indexterm" name="id2571527"></a>
    480 <a class="indexterm" name="id2571534"></a>
    481 <a class="indexterm" name="id2571540"></a>
     478<a class="indexterm" name="id2577591"></a>
     479<a class="indexterm" name="id2577598"></a>
     480<a class="indexterm" name="id2577604"></a>
     481<a class="indexterm" name="id2577611"></a>
    482482If the <code class="option">-S DOMPDC</code> argument is not given, the domain name will be obtained from <code class="filename">smb.conf</code> and
    483483the NetBIOS name of the PDC will be obtained either using a WINS lookup or via NetBIOS broadcast based name
    484484look up.
    485485</p><p>
    486 <a class="indexterm" name="id2571563"></a>
    487 <a class="indexterm" name="id2571570"></a>
    488 <a class="indexterm" name="id2571577"></a>
    489 <a class="indexterm" name="id2571584"></a>
     486<a class="indexterm" name="id2577634"></a>
     487<a class="indexterm" name="id2577641"></a>
     488<a class="indexterm" name="id2577648"></a>
     489<a class="indexterm" name="id2577655"></a>
    490490The machine is joining the domain DOM, and the PDC for that domain (the only machine
    491491that has write access to the domain SAM database) is DOMPDC; therefore, use the <code class="option">-S</code>
     
    498498</pre><p>
    499499</p><p>
    500 <a class="indexterm" name="id2571620"></a>
    501 <a class="indexterm" name="id2571632"></a>
    502 <a class="indexterm" name="id2571638"></a>
     500<a class="indexterm" name="id2577691"></a>
     501<a class="indexterm" name="id2577703"></a>
     502<a class="indexterm" name="id2577709"></a>
    503503Where Active Directory is used, the command used to join the ADS domain is:
    504504</p><pre class="screen">
     
    513513administration</a> for further information.
    514514</p><p>
    515 <a class="indexterm" name="id2571696"></a>
    516 <a class="indexterm" name="id2571702"></a>
    517 <a class="indexterm" name="id2571710"></a>
     515<a class="indexterm" name="id2577767"></a>
     516<a class="indexterm" name="id2577773"></a>
     517<a class="indexterm" name="id2577780"></a>
    518518This process joins the server to the domain without separately having to create the machine
    519519trust account on the PDC beforehand.
    520520</p><p>
    521 <a class="indexterm" name="id2571722"></a>
    522 <a class="indexterm" name="id2571731"></a>
    523 <a class="indexterm" name="id2571738"></a>
    524 <a class="indexterm" name="id2571746"></a>
     521<a class="indexterm" name="id2577792"></a>
     522<a class="indexterm" name="id2577802"></a>
     523<a class="indexterm" name="id2577809"></a>
     524<a class="indexterm" name="id2577817"></a>
    525525This command goes through the machine account password change protocol, then writes the new (random) machine
    526526account password for this Samba server into a file in the same directory in which a smbpasswd file would be
     
    528528<code class="filename">/usr/local/samba/private/secrets.tdb</code> or <code class="filename">/etc/samba/secrets.tdb</code>.
    529529</p><p>
    530 <a class="indexterm" name="id2571774"></a>
    531 <a class="indexterm" name="id2571781"></a>
     530<a class="indexterm" name="id2577845"></a>
     531<a class="indexterm" name="id2577852"></a>
    532532This file is created and owned by root and is not readable by any other user. It is
    533533the key to the domain-level security for your system and should be treated as carefully
    534534as a shadow password file.
    535535</p><p>
    536 <a class="indexterm" name="id2571795"></a>
    537 <a class="indexterm" name="id2571802"></a>
    538 <a class="indexterm" name="id2571809"></a>
     536<a class="indexterm" name="id2577866"></a>
     537<a class="indexterm" name="id2577873"></a>
     538<a class="indexterm" name="id2577880"></a>
    539539Finally, restart your Samba daemons and get ready for clients to begin using domain
    540540security. The way you can restart your Samba daemons depends on your distribution,
     
    543543<code class="prompt">root# </code>/etc/init.d/samba restart
    544544</pre><p>
    545 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2571833"></a>Why Is This Better Than <em class="parameter"><code>security = server</code></em>?</h3></div></div></div><p>
    546 <a class="indexterm" name="id2571847"></a>
    547 <a class="indexterm" name="id2571854"></a>
    548 <a class="indexterm" name="id2571861"></a>
     545</p></div><div class="sect2" title="Why Is This Better Than security = server?"><div class="titlepage"><div><div><h3 class="title"><a name="id2577904"></a>Why Is This Better Than <em class="parameter"><code>security = server</code></em>?</h3></div></div></div><p>
     546<a class="indexterm" name="id2577918"></a>
     547<a class="indexterm" name="id2577925"></a>
     548<a class="indexterm" name="id2577932"></a>
    549549Currently, domain security in Samba does not free you from having to create local UNIX users to represent the
    550550users attaching to your server. This means that if domain user <code class="constant">DOM\fred</code> attaches to your
     
    553553NT server in the same way as a Windows 95 or Windows 98 server would.
    554554</p><p>
    555 <a class="indexterm" name="id2571896"></a>
    556 <a class="indexterm" name="id2571902"></a>
    557 <a class="indexterm" name="id2571908"></a>
     555<a class="indexterm" name="id2577966"></a>
     556<a class="indexterm" name="id2577973"></a>
     557<a class="indexterm" name="id2577979"></a>
    558558Please refer to <a class="link" href="winbind.html" title="Chapter 24. Winbind: Use of Domain Accounts">Winbind: Use of Domain Accounts</a>, for information on a system
    559559to automatically assign UNIX UIDs and GIDs to Windows NT domain users and groups.
    560560</p><p>
    561 <a class="indexterm" name="id2571928"></a>
    562 <a class="indexterm" name="id2571934"></a>
    563 <a class="indexterm" name="id2571941"></a>
     561<a class="indexterm" name="id2577999"></a>
     562<a class="indexterm" name="id2578005"></a>
     563<a class="indexterm" name="id2578012"></a>
    564564The advantage of domain-level security is that the authentication in domain-level security is passed down the
    565565authenticated RPC channel in exactly the same way that an NT server would do it. This means Samba servers now
     
    568568domain PDC).
    569569</p><p>
    570 <a class="indexterm" name="id2571959"></a>
    571 <a class="indexterm" name="id2571966"></a>
    572 <a class="indexterm" name="id2571972"></a>
     570<a class="indexterm" name="id2578030"></a>
     571<a class="indexterm" name="id2578036"></a>
     572<a class="indexterm" name="id2578043"></a>
    573573In addition, with <a class="link" href="smb.conf.5.html#SECURITY" target="_top">security = server</a>, every Samba daemon on a server has to
    574574keep a connection open to the authenticating server for as long as that daemon lasts. This can drain the
     
    578578connection resources.
    579579</p><p>
    580 <a class="indexterm" name="id2572012"></a>
    581 <a class="indexterm" name="id2572019"></a>
    582 <a class="indexterm" name="id2572026"></a>
    583 <a class="indexterm" name="id2572032"></a>
     580<a class="indexterm" name="id2578083"></a>
     581<a class="indexterm" name="id2578090"></a>
     582<a class="indexterm" name="id2578096"></a>
     583<a class="indexterm" name="id2578103"></a>
    584584Finally, acting in the same manner as an NT server authenticating to a PDC means that as part of the
    585585authentication reply, the Samba server gets the user identification information such as the user SID, the list
    586586of NT groups the user belongs to, and so on.
    587 </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     587</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    588588Much of the text of this document was first published in the Web magazine
    589589<a class="ulink" href="http://www.linuxworld.com" target="_top"><span class="emphasis"><em>LinuxWorld</em></span></a> as the article <a class="ulink" href="http://www.linuxworld.com/linuxworld/lw-1998-10/lw-10-samba.html" target="_top">http://www.linuxworld.com/linuxworld/lw-1998-10/lw-10-samba.html</a>
    590590<span class="emphasis"><em>Doing the NIS/NT Samba</em></span>.
    591 </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ads-member"></a>Samba ADS Domain Membership</h2></div></div></div><p>
    592 <a class="indexterm" name="id2572082"></a>
    593 <a class="indexterm" name="id2572089"></a>
    594 <a class="indexterm" name="id2572098"></a>
    595 <a class="indexterm" name="id2572105"></a>
     591</p></div></div></div><div class="sect1" title="Samba ADS Domain Membership"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ads-member"></a>Samba ADS Domain Membership</h2></div></div></div><p>
     592<a class="indexterm" name="id2578153"></a>
     593<a class="indexterm" name="id2578160"></a>
     594<a class="indexterm" name="id2578169"></a>
     595<a class="indexterm" name="id2578176"></a>
    596596This is a rough guide to setting up Samba-3 with Kerberos authentication against a
    597597Windows 200x KDC. A familiarity with Kerberos is assumed.
    598 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2572115"></a>Configure <code class="filename">smb.conf</code></h3></div></div></div><p>
     598</p><div class="sect2" title="Configure smb.conf"><div class="titlepage"><div><div><h3 class="title"><a name="id2578186"></a>Configure <code class="filename">smb.conf</code></h3></div></div></div><p>
    599599You must use at least the following three options in <code class="filename">smb.conf</code>:
    600 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2572141"></a><em class="parameter"><code>realm = your.kerberos.REALM</code></em></td></tr><tr><td><a class="indexterm" name="id2572153"></a><em class="parameter"><code>security = ADS</code></em></td></tr><tr><td># The following parameter need only be specified if present.</td></tr><tr><td># The default setting if not present is Yes.</td></tr><tr><td><a class="indexterm" name="id2572173"></a><em class="parameter"><code>encrypt passwords = yes</code></em></td></tr></table><p>
    601 <a class="indexterm" name="id2572187"></a>
    602 <a class="indexterm" name="id2572193"></a>
    603 <a class="indexterm" name="id2572200"></a>
    604 <a class="indexterm" name="id2572207"></a>
    605 <a class="indexterm" name="id2572214"></a>
     600</p><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id2578212"></a><em class="parameter"><code>realm = your.kerberos.REALM</code></em></td></tr><tr><td><a class="indexterm" name="id2578224"></a><em class="parameter"><code>security = ADS</code></em></td></tr><tr><td># The following parameter need only be specified if present.</td></tr><tr><td># The default setting if not present is Yes.</td></tr><tr><td><a class="indexterm" name="id2578244"></a><em class="parameter"><code>encrypt passwords = yes</code></em></td></tr></table><p>
     601<a class="indexterm" name="id2578258"></a>
     602<a class="indexterm" name="id2578264"></a>
     603<a class="indexterm" name="id2578271"></a>
     604<a class="indexterm" name="id2578278"></a>
     605<a class="indexterm" name="id2578284"></a>
    606606In case samba cannot correctly identify the appropriate ADS server using the realm name, use the
    607607<a class="link" href="smb.conf.5.html#PASSWORDSERVER" target="_top">password server</a> option in <code class="filename">smb.conf</code>:
    608 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2572245"></a><em class="parameter"><code>password server = your.kerberos.server</code></em></td></tr></table><p>
     608</p><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id2578316"></a><em class="parameter"><code>password server = your.kerberos.server</code></em></td></tr></table><p>
    609609The most common reason for which Samba may not be able to locate the ADS domain controller is a consequence of
    610610sites maintaining some DNS servers on UNIX systems without regard for the DNS requirements of the ADS
    611611infrastructure. There is no harm in specifying a preferred ADS domain controller using the <em class="parameter"><code>password
    612612server</code></em>.
    613 </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    614 <a class="indexterm" name="id2572272"></a>
    615 <a class="indexterm" name="id2572278"></a>
     613</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     614<a class="indexterm" name="id2578342"></a>
     615<a class="indexterm" name="id2578349"></a>
    616616You do <span class="emphasis"><em>not</em></span> need an smbpasswd file, and older clients will be authenticated as
    617617if <a class="link" href="smb.conf.5.html#SECURITY" target="_top">security = domain</a>, although it will not do any harm and
    618618allows you to have local users not in the domain.
    619 </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2572306"></a>Configure <code class="filename">/etc/krb5.conf</code></h3></div></div></div><p>
    620 <a class="indexterm" name="id2572318"></a>
    621 <a class="indexterm" name="id2572325"></a>
    622 <a class="indexterm" name="id2572334"></a>
    623 <a class="indexterm" name="id2572341"></a>
     619</p></div></div><div class="sect2" title="Configure /etc/krb5.conf"><div class="titlepage"><div><div><h3 class="title"><a name="id2578377"></a>Configure <code class="filename">/etc/krb5.conf</code></h3></div></div></div><p>
     620<a class="indexterm" name="id2578389"></a>
     621<a class="indexterm" name="id2578396"></a>
     622<a class="indexterm" name="id2578405"></a>
     623<a class="indexterm" name="id2578412"></a>
    624624With both MIT and Heimdal Kerberos, it is unnecessary to configure the <code class="filename">/etc/krb5.conf</code>,
    625625and it may be detrimental.
    626626</p><p>
    627 <a class="indexterm" name="id2572359"></a>
    628 <a class="indexterm" name="id2572366"></a>
    629 <a class="indexterm" name="id2572372"></a>
    630 <a class="indexterm" name="id2572379"></a>
    631 <a class="indexterm" name="id2572386"></a>
     627<a class="indexterm" name="id2578430"></a>
     628<a class="indexterm" name="id2578436"></a>
     629<a class="indexterm" name="id2578443"></a>
     630<a class="indexterm" name="id2578450"></a>
     631<a class="indexterm" name="id2578456"></a>
    632632Microsoft ADS automatically create SRV records in the DNS zone
    633633<em class="parameter"><code>_kerberos._tcp.REALM.NAME</code></em> for each KDC in the realm. This is part
     
    636636active directory infrastructure.
    637637</p><p>
    638 <a class="indexterm" name="id2572407"></a>
    639 <a class="indexterm" name="id2572414"></a>
    640 <a class="indexterm" name="id2572421"></a>
    641 <a class="indexterm" name="id2572428"></a>
    642 <a class="indexterm" name="id2572435"></a>
    643 <a class="indexterm" name="id2572442"></a>
     638<a class="indexterm" name="id2578478"></a>
     639<a class="indexterm" name="id2578485"></a>
     640<a class="indexterm" name="id2578492"></a>
     641<a class="indexterm" name="id2578499"></a>
     642<a class="indexterm" name="id2578506"></a>
     643<a class="indexterm" name="id2578512"></a>
    644644UNIX systems can use kinit and the DES-CBC-MD5 or DES-CBC-CRC encryption types to authenticate to the Windows
    6456452000 KDC. For further information regarding Windows 2000 ADS kerberos interoperability please refer to the
     
    649649explains much of the magic behind the operation of Kerberos.
    650650</p><p>
    651 <a class="indexterm" name="id2572473"></a>
    652 <a class="indexterm" name="id2572480"></a>
    653 <a class="indexterm" name="id2572486"></a>
    654 <a class="indexterm" name="id2572493"></a>
    655 <a class="indexterm" name="id2572500"></a>
    656 <a class="indexterm" name="id2572507"></a>
     651<a class="indexterm" name="id2578544"></a>
     652<a class="indexterm" name="id2578550"></a>
     653<a class="indexterm" name="id2578557"></a>
     654<a class="indexterm" name="id2578564"></a>
     655<a class="indexterm" name="id2578571"></a>
     656<a class="indexterm" name="id2578578"></a>
    657657MIT's, as well as Heimdal's, recent KRB5 libraries default to checking for SRV records, so they will
    658658automatically find the KDCs. In addition, <code class="filename">krb5.conf</code> only allows specifying
     
    660660libraries to use whichever KDCs are available.
    661661</p><p>
    662 <a class="indexterm" name="id2572528"></a>
     662<a class="indexterm" name="id2578599"></a>
    663663When manually configuring <code class="filename">krb5.conf</code>, the minimal configuration is:
    664664</p><pre class="screen">
     
    675675</pre><p>
    676676</p><p>
    677 <a class="indexterm" name="id2572554"></a>
     677<a class="indexterm" name="id2578624"></a>
    678678When using Heimdal versions before 0.6, use the following configuration settings:
    679679</p><pre class="screen">
     
    692692</pre><p>
    693693</p><p>
    694 <a class="indexterm" name="id2572576"></a>
    695 <a class="indexterm" name="id2572582"></a>
     694<a class="indexterm" name="id2578646"></a>
     695<a class="indexterm" name="id2578653"></a>
    696696Test your config by doing a <strong class="userinput"><code>kinit
    697697<em class="replaceable"><code>USERNAME</code></em>@<em class="replaceable"><code>REALM</code></em></code></strong> and
    698698making sure that your password is accepted by the Win2000 KDC.
    699699</p><p>
    700 <a class="indexterm" name="id2572606"></a>
    701 <a class="indexterm" name="id2572613"></a>
    702 <a class="indexterm" name="id2572619"></a>
    703 <a class="indexterm" name="id2572626"></a>
     700<a class="indexterm" name="id2578677"></a>
     701<a class="indexterm" name="id2578683"></a>
     702<a class="indexterm" name="id2578690"></a>
     703<a class="indexterm" name="id2578696"></a>
    704704With Heimdal versions earlier than 0.6.x you can use only newly created accounts
    705705in ADS or accounts that have had the password changed once after migration, or
     
    708708(and no default etypes in krb5.conf). Unfortunately, this whole area is still
    709709in a state of flux.
    710 </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    711 <a class="indexterm" name="id2572647"></a>
    712 <a class="indexterm" name="id2572654"></a>
    713 <a class="indexterm" name="id2572661"></a>
    714 The realm must be in uppercase or you will get a &#8220;<span class="quote"><span class="errorname">Cannot find KDC for
    715 requested realm while getting initial credentials</span></span>&#8221; error (Kerberos
     710</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     711<a class="indexterm" name="id2578718"></a>
     712<a class="indexterm" name="id2578725"></a>
     713<a class="indexterm" name="id2578732"></a>
     714The realm must be in uppercase or you will get a <span class="quote">&#8220;<span class="quote"><span class="errorname">Cannot find KDC for
     715requested realm while getting initial credentials</span></span>&#8221;</span> error (Kerberos
    716716is case-sensitive!).
    717 </p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    718 <a class="indexterm" name="id2572678"></a>
    719 <a class="indexterm" name="id2572685"></a>
    720 <a class="indexterm" name="id2572692"></a>
    721 <a class="indexterm" name="id2572699"></a>
    722 Time between the two servers must be synchronized. You will get a &#8220;<span class="quote"><span class="errorname">kinit(v5): Clock skew too
    723 great while getting initial credentials</span></span>&#8221; if the time difference (clock skew) is more than five minutes.
     717</p></div><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     718<a class="indexterm" name="id2578749"></a>
     719<a class="indexterm" name="id2578756"></a>
     720<a class="indexterm" name="id2578762"></a>
     721<a class="indexterm" name="id2578769"></a>
     722Time between the two servers must be synchronized. You will get a <span class="quote">&#8220;<span class="quote"><span class="errorname">kinit(v5): Clock skew too
     723great while getting initial credentials</span></span>&#8221;</span> if the time difference (clock skew) is more than five minutes.
    724724</p></div><p>
    725 <a class="indexterm" name="id2572716"></a>
    726 <a class="indexterm" name="id2572723"></a>
     725<a class="indexterm" name="id2578787"></a>
     726<a class="indexterm" name="id2578794"></a>
    727727Clock skew limits are configurable in the Kerberos protocols. The default setting is five minutes.
    728728</p><p>
    729 <a class="indexterm" name="id2572735"></a>
    730 <a class="indexterm" name="id2572742"></a>
    731 <a class="indexterm" name="id2572748"></a>
    732 <a class="indexterm" name="id2572755"></a>
     729<a class="indexterm" name="id2578806"></a>
     730<a class="indexterm" name="id2578812"></a>
     731<a class="indexterm" name="id2578819"></a>
     732<a class="indexterm" name="id2578826"></a>
    733733You also must ensure that you can do a reverse DNS lookup on the IP address of your KDC. Also, the name that
    734734this reverse lookup maps to must either be the NetBIOS name of the KDC (i.e., the hostname with no domain
    735735attached) or it can be the NetBIOS name followed by the realm.
    736736</p><p>
    737 <a class="indexterm" name="id2572770"></a>
    738 <a class="indexterm" name="id2572777"></a>
    739 <a class="indexterm" name="id2572783"></a>
     737<a class="indexterm" name="id2578841"></a>
     738<a class="indexterm" name="id2578847"></a>
     739<a class="indexterm" name="id2578854"></a>
    740740The easiest way to ensure you get this right is to add a <code class="filename">/etc/hosts</code> entry mapping the IP
    741741address of your KDC to its NetBIOS name. If you do not get this correct, then you will get a <span class="errorname">local
    742742error</span> when you try to join the realm.
    743743</p><p>
    744 <a class="indexterm" name="id2572806"></a>
    745 <a class="indexterm" name="id2572813"></a>
    746 <a class="indexterm" name="id2572820"></a>
    747 <a class="indexterm" name="id2572827"></a>
     744<a class="indexterm" name="id2578877"></a>
     745<a class="indexterm" name="id2578884"></a>
     746<a class="indexterm" name="id2578891"></a>
     747<a class="indexterm" name="id2578898"></a>
    748748If all you want is Kerberos support in <span class="application">smbclient</span>, then you can skip directly to <a class="link" href="domain-member.html#ads-test-smbclient" title="Testing with smbclient">Testing with <span class="application">smbclient</span></a> now.  <a class="link" href="domain-member.html#ads-create-machine-account" title="Create the Computer Account">Create the Computer Account</a> and <a class="link" href="domain-member.html#ads-test-server" title="Testing Server Setup">Testing Server Setup</a> are needed only if you want Kerberos support for <span class="application">smbd</span>
    749749and <span class="application">winbindd</span>.
    750 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ads-create-machine-account"></a>Create the Computer Account</h3></div></div></div><p>
    751 <a class="indexterm" name="id2572898"></a>
    752 <a class="indexterm" name="id2572904"></a>
    753 <a class="indexterm" name="id2572911"></a>
    754 <a class="indexterm" name="id2572918"></a>
     750</p></div><div class="sect2" title="Create the Computer Account"><div class="titlepage"><div><div><h3 class="title"><a name="ads-create-machine-account"></a>Create the Computer Account</h3></div></div></div><p>
     751<a class="indexterm" name="id2578968"></a>
     752<a class="indexterm" name="id2578975"></a>
     753<a class="indexterm" name="id2578982"></a>
     754<a class="indexterm" name="id2578989"></a>
    755755As a user who has write permission on the Samba private directory (usually root), run:
    756756</p><pre class="screen">
     
    761761On the UNIX/Linux system, this command must be executed by an account that has UID=0 (root).
    762762</p><p>
    763 <a class="indexterm" name="id2572953"></a>
    764 <a class="indexterm" name="id2572959"></a>
    765 <a class="indexterm" name="id2572966"></a>
    766 <a class="indexterm" name="id2572973"></a>
    767 <a class="indexterm" name="id2572980"></a>
    768 <a class="indexterm" name="id2572987"></a>
     763<a class="indexterm" name="id2579024"></a>
     764<a class="indexterm" name="id2579030"></a>
     765<a class="indexterm" name="id2579037"></a>
     766<a class="indexterm" name="id2579044"></a>
     767<a class="indexterm" name="id2579051"></a>
     768<a class="indexterm" name="id2579058"></a>
    769769When making a Windows client a member of an ADS domain within a complex organization, you
    770770may want to create the machine trust account within a particular organizational unit. Samba-3 permits
     
    776776Your ADS manager will be able to advise what should be specified for the "organizational_unit" parameter.
    777777</p><p>
    778 <a class="indexterm" name="id2573037"></a>
    779 <a class="indexterm" name="id2573044"></a>
    780 <a class="indexterm" name="id2573051"></a>
    781 <a class="indexterm" name="id2573058"></a>
    782 For example, you may want to create the machine trust account in a container called &#8220;<span class="quote">Servers</span>&#8221;
    783 under the organizational directory &#8220;<span class="quote">Computers/BusinessUnit/Department,</span>&#8221; like this:
     778<a class="indexterm" name="id2579108"></a>
     779<a class="indexterm" name="id2579115"></a>
     780<a class="indexterm" name="id2579122"></a>
     781<a class="indexterm" name="id2579129"></a>
     782For example, you may want to create the machine trust account in a container called <span class="quote">&#8220;<span class="quote">Servers</span>&#8221;</span>
     783under the organizational directory <span class="quote">&#8220;<span class="quote">Computers/BusinessUnit/Department,</span>&#8221;</span> like this:
    784784</p><pre class="screen">
    785785<code class="prompt">root# </code> <strong class="userinput"><code>net ads join "Computers/BusinessUnit/Department/Servers"</code></strong>
     
    790790valid characters in an OU name and used as escapes for other characters.  If you need a backslash in an OU
    791791name, it may need to be quadrupled to pass through the shell escape and ldap escape.
    792 </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2573107"></a>Possible Errors</h4></div></div></div><p>
     792</p><div class="sect3" title="Possible Errors"><div class="titlepage"><div><div><h4 class="title"><a name="id2579178"></a>Possible Errors</h4></div></div></div><p>
    793793</p><div class="variablelist"><dl><dt><span class="term"><span class="errorname">ADS support not compiled in</span></span></dt><dd><p>
    794         <a class="indexterm" name="id2573126"></a>
    795         <a class="indexterm" name="id2573133"></a>
    796         <a class="indexterm" name="id2573140"></a>
     794        <a class="indexterm" name="id2579197"></a>
     795        <a class="indexterm" name="id2579204"></a>
     796        <a class="indexterm" name="id2579211"></a>
    797797        Samba must be reconfigured (remove config.cache) and recompiled (make clean all install) after the
    798798        Kerberos libraries and headers files are installed.
    799799        </p></dd><dt><span class="term"><span class="errorname">net ads join prompts for user name</span></span></dt><dd><p>
    800         <a class="indexterm" name="id2573160"></a>
    801         <a class="indexterm" name="id2573167"></a>
     800        <a class="indexterm" name="id2579231"></a>
     801        <a class="indexterm" name="id2579237"></a>
    802802        You need to log in to the domain using <strong class="userinput"><code>kinit
    803803        <em class="replaceable"><code>USERNAME</code></em>@<em class="replaceable"><code>REALM</code></em></code></strong>.
    804804        <em class="replaceable"><code>USERNAME</code></em> must be a user who has rights to add a machine to the domain.
    805805        </p></dd><dt><span class="term">Unsupported encryption/or checksum types</span></dt><dd><p>
    806         <a class="indexterm" name="id2573200"></a>
    807         <a class="indexterm" name="id2573207"></a>
    808         <a class="indexterm" name="id2573214"></a>
     806        <a class="indexterm" name="id2579271"></a>
     807        <a class="indexterm" name="id2579278"></a>
     808        <a class="indexterm" name="id2579285"></a>
    809809        Make sure that the <code class="filename">/etc/krb5.conf</code> is correctly configured
    810810        for the type and version of Kerberos installed on the system.
    811811        </p></dd></dl></div><p>
    812 </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ads-test-server"></a>Testing Server Setup</h3></div></div></div><p>
    813 <a class="indexterm" name="id2573246"></a>
    814 <a class="indexterm" name="id2573252"></a>
    815 <a class="indexterm" name="id2573259"></a>
     812</p></div></div><div class="sect2" title="Testing Server Setup"><div class="titlepage"><div><div><h3 class="title"><a name="ads-test-server"></a>Testing Server Setup</h3></div></div></div><p>
     813<a class="indexterm" name="id2579316"></a>
     814<a class="indexterm" name="id2579323"></a>
     815<a class="indexterm" name="id2579330"></a>
    816816If the join was successful, you will see a new computer account with the
    817 NetBIOS name of your Samba server in Active Directory (in the &#8220;<span class="quote">Computers</span>&#8221;
     817NetBIOS name of your Samba server in Active Directory (in the <span class="quote">&#8220;<span class="quote">Computers</span>&#8221;</span>
    818818folder under Users and Computers.
    819819</p><p>
    820 <a class="indexterm" name="id2573275"></a>
    821 <a class="indexterm" name="id2573282"></a>
    822 <a class="indexterm" name="id2573291"></a>
     820<a class="indexterm" name="id2579346"></a>
     821<a class="indexterm" name="id2579353"></a>
     822<a class="indexterm" name="id2579362"></a>
    823823On a Windows 2000 client, try <strong class="userinput"><code>net use * \\server\share</code></strong>. You should
    824824be logged in with Kerberos without needing to know a password. If this fails, then run
    825825<strong class="userinput"><code>klist tickets</code></strong>. Did you get a ticket for the server? Does it have
    826826an encryption type of DES-CBC-MD5?
    827 </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    828 <a class="indexterm" name="id2573318"></a>
    829 <a class="indexterm" name="id2573325"></a>
    830 <a class="indexterm" name="id2573332"></a>
     827</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
     828<a class="indexterm" name="id2579389"></a>
     829<a class="indexterm" name="id2579396"></a>
     830<a class="indexterm" name="id2579403"></a>
    831831Samba can use both DES-CBC-MD5 encryption as well as ARCFOUR-HMAC-MD5 encoding.
    832 </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ads-test-smbclient"></a>Testing with <span class="application">smbclient</span></h3></div></div></div><p>
    833 <a class="indexterm" name="id2573359"></a>
    834 <a class="indexterm" name="id2573366"></a>
    835 <a class="indexterm" name="id2573373"></a>
     832</p></div></div><div class="sect2" title="Testing with smbclient"><div class="titlepage"><div><div><h3 class="title"><a name="ads-test-smbclient"></a>Testing with <span class="application">smbclient</span></h3></div></div></div><p>
     833<a class="indexterm" name="id2579430"></a>
     834<a class="indexterm" name="id2579437"></a>
     835<a class="indexterm" name="id2579443"></a>
    836836On your Samba server try to log in to a Windows 2000 server or your Samba
    837837server using <span class="application">smbclient</span> and Kerberos. Use <span class="application">smbclient</span> as usual, but
    838838specify the <code class="option">-k</code> option to choose Kerberos authentication.
    839 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2573400"></a>Notes</h3></div></div></div><p>
    840 <a class="indexterm" name="id2573408"></a>
    841 <a class="indexterm" name="id2573415"></a>
    842 <a class="indexterm" name="id2573422"></a>
     839</p></div><div class="sect2" title="Notes"><div class="titlepage"><div><div><h3 class="title"><a name="id2579471"></a>Notes</h3></div></div></div><p>
     840<a class="indexterm" name="id2579479"></a>
     841<a class="indexterm" name="id2579486"></a>
     842<a class="indexterm" name="id2579493"></a>
    843843You must change the administrator password at least once after installing a domain controller,
    844844to create the right encryption types.
    845845</p><p>
    846 <a class="indexterm" name="id2573434"></a>
    847 <a class="indexterm" name="id2573441"></a>
    848 <a class="indexterm" name="id2573448"></a>
     846<a class="indexterm" name="id2579505"></a>
     847<a class="indexterm" name="id2579512"></a>
     848<a class="indexterm" name="id2579519"></a>
    849849Windows 200x does not seem to create the <em class="parameter"><code>_kerberos._udp</code></em> and
    850850<em class="parameter"><code>_ldap._tcp</code></em> in the default DNS setup. Perhaps this will be fixed later in service packs.
    851 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2573472"></a>Sharing User ID Mappings between Samba Domain Members</h2></div></div></div><p>
    852 <a class="indexterm" name="id2573481"></a>
    853 <a class="indexterm" name="id2573488"></a>
    854 <a class="indexterm" name="id2573495"></a>
    855 <a class="indexterm" name="id2573501"></a>
     851</p></div></div><div class="sect1" title="Sharing User ID Mappings between Samba Domain Members"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2579543"></a>Sharing User ID Mappings between Samba Domain Members</h2></div></div></div><p>
     852<a class="indexterm" name="id2579552"></a>
     853<a class="indexterm" name="id2579559"></a>
     854<a class="indexterm" name="id2579565"></a>
     855<a class="indexterm" name="id2579572"></a>
    856856Samba maps UNIX users and groups (identified by UIDs and GIDs) to Windows users and groups (identified by SIDs).
    857857These mappings are done by the <em class="parameter"><code>idmap</code></em> subsystem of Samba.
    858858</p><p>
    859 <a class="indexterm" name="id2573520"></a>
    860 <a class="indexterm" name="id2573526"></a>
    861 <a class="indexterm" name="id2573533"></a>
     859<a class="indexterm" name="id2579590"></a>
     860<a class="indexterm" name="id2579597"></a>
     861<a class="indexterm" name="id2579604"></a>
    862862In some cases it is useful to share these mappings between Samba domain members,
    863863so <span class="emphasis"><em>name-&gt;id</em></span> mapping is identical on all machines.
    864864This may be needed in particular when sharing files over both CIFS and NFS.
    865865</p><p>
    866 <a class="indexterm" name="id2573551"></a>
    867 <a class="indexterm" name="id2573557"></a>
     866<a class="indexterm" name="id2579621"></a>
     867<a class="indexterm" name="id2579628"></a>
    868868To use the <span class="emphasis"><em>LDAP</em></span> <em class="parameter"><code>ldap idmap suffix</code></em>, set:
    869 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2573581"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr></table><p>
     869</p><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id2579652"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr></table><p>
    870870See the <code class="filename">smb.conf</code> man page entry for the <a class="link" href="smb.conf.5.html#LDAPIDMAPSUFFIX" target="_top">ldap idmap suffix</a>
    871871parameter for further information.
    872872</p><p>
    873 <a class="indexterm" name="id2573617"></a>
    874 <a class="indexterm" name="id2573624"></a>
    875 <a class="indexterm" name="id2573631"></a>
     873<a class="indexterm" name="id2579688"></a>
     874<a class="indexterm" name="id2579694"></a>
     875<a class="indexterm" name="id2579702"></a>
    876876Do not forget to specify also the <a class="link" href="smb.conf.5.html#LDAPADMINDN" target="_top">ldap admin dn</a>
    877877and to make certain to set the LDAP administrative password into the <code class="filename">secrets.tdb</code> using:
     
    881881In place of <code class="literal">ldap-admin-password</code>, substitute the LDAP administration password for your
    882882system.
    883 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2573679"></a>Common Errors</h2></div></div></div><p>
    884 <a class="indexterm" name="id2573687"></a>
    885 <a class="indexterm" name="id2573694"></a>
     883</p></div><div class="sect1" title="Common Errors"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2579750"></a>Common Errors</h2></div></div></div><p>
     884<a class="indexterm" name="id2579757"></a>
     885<a class="indexterm" name="id2579764"></a>
    886886In the process of adding/deleting/re-adding domain member machine trust accounts, there are
    887 many traps for the unwary player and many &#8220;<span class="quote">little</span>&#8221; things that can go wrong.
     887many traps for the unwary player and many <span class="quote">&#8220;<span class="quote">little</span>&#8221;</span> things that can go wrong.
    888888It is particularly interesting how often subscribers on the Samba mailing list have concluded
    889 after repeated failed attempts to add a machine account that it is necessary to &#8220;<span class="quote">reinstall</span>&#8221;
     889after repeated failed attempts to add a machine account that it is necessary to <span class="quote">&#8220;<span class="quote">reinstall</span>&#8221;</span>
    890890MS Windows on the machine. In truth, it is seldom necessary to reinstall because of this type
    891891of problem. The real solution is often quite simple, and with an understanding of how MS Windows
    892892networking functions, it is easy to overcome.
    893 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2573719"></a>Cannot Add Machine Back to Domain</h3></div></div></div><p>
    894 <a class="indexterm" name="id2573727"></a>
    895 <a class="indexterm" name="id2573734"></a>
    896 &#8220;<span class="quote">A Windows workstation was reinstalled. The original domain machine trust
     893</p><div class="sect2" title="Cannot Add Machine Back to Domain"><div class="titlepage"><div><div><h3 class="title"><a name="id2579789"></a>Cannot Add Machine Back to Domain</h3></div></div></div><p>
     894<a class="indexterm" name="id2579798"></a>
     895<a class="indexterm" name="id2579805"></a>
     896<span class="quote">&#8220;<span class="quote">A Windows workstation was reinstalled. The original domain machine trust
    897897account was deleted and added immediately. The workstation will not join the domain if I use
    898898the same machine name. Attempts to add the machine fail with a message that the machine already
    899 exists on the network  I know it does not. Why is this failing?</span>&#8221;
    900 </p><p>
    901 <a class="indexterm" name="id2573755"></a>
    902 <a class="indexterm" name="id2573761"></a>
     899exists on the network  I know it does not. Why is this failing?</span>&#8221;</span>
     900</p><p>
     901<a class="indexterm" name="id2579826"></a>
     902<a class="indexterm" name="id2579832"></a>
    903903The original name is still in the NetBIOS name cache and must expire after machine account
    904904deletion before adding that same name as a domain member again. The best advice is to delete
     
    908908<code class="prompt">C:\&gt; </code> nbtstat -R
    909909</pre><p>
    910 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2573794"></a>Adding Machine to Domain Fails</h3></div></div></div><p>
    911 <a class="indexterm" name="id2573802"></a>
    912 <a class="indexterm" name="id2573809"></a>
    913 &#8220;<span class="quote">Adding a Windows 200x or XP Professional machine to the Samba PDC Domain fails with a
     910</p></div><div class="sect2" title="Adding Machine to Domain Fails"><div class="titlepage"><div><div><h3 class="title"><a name="id2579865"></a>Adding Machine to Domain Fails</h3></div></div></div><p>
     911<a class="indexterm" name="id2579873"></a>
     912<a class="indexterm" name="id2579880"></a>
     913<span class="quote">&#8220;<span class="quote">Adding a Windows 200x or XP Professional machine to the Samba PDC Domain fails with a
    914914message that says, <span class="errorname">"The machine could not be added at this time, there is a network problem.
    915 Please try again later."</span> Why?</span>&#8221;
    916 </p><p>
    917 <a class="indexterm" name="id2573829"></a>
     915Please try again later."</span> Why?</span>&#8221;</span>
     916</p><p>
     917<a class="indexterm" name="id2579900"></a>
    918918You should check that there is an <a class="link" href="smb.conf.5.html#ADDMACHINESCRIPT" target="_top">add machine script</a> in your <code class="filename">smb.conf</code>
    919919file. If there is not, please add one that is appropriate for your OS platform. If a script
     
    923923</p><p>
    924924Possible causes include:
    925 </p><div class="itemizedlist"><ul type="disc"><li><p>
    926 <a class="indexterm" name="id2573887"></a>
    927 <a class="indexterm" name="id2573894"></a>
     925</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
     926<a class="indexterm" name="id2579958"></a>
     927<a class="indexterm" name="id2579965"></a>
    928928        The script does not actually exist, or could not be located in the path specified.
    929929        </p><p>
    930 <a class="indexterm" name="id2573906"></a>
    931 <a class="indexterm" name="id2573912"></a>
     930<a class="indexterm" name="id2579976"></a>
     931<a class="indexterm" name="id2579983"></a>
    932932        <span class="emphasis"><em>Corrective action:</em></span> Fix it. Make sure when run manually
    933933        that the script will add both the UNIX system account and the Samba SAM account.
    934         </p></li><li><p>
    935 <a class="indexterm" name="id2573929"></a>
    936 <a class="indexterm" name="id2573936"></a>
     934        </p></li><li class="listitem"><p>
     935<a class="indexterm" name="id2580000"></a>
     936<a class="indexterm" name="id2580007"></a>
    937937        The machine could not be added to the UNIX system accounts file <code class="filename">/etc/passwd</code>.
    938938        </p><p>
    939 <a class="indexterm" name="id2573953"></a>
    940 <a class="indexterm" name="id2573960"></a>
     939<a class="indexterm" name="id2580024"></a>
     940<a class="indexterm" name="id2580031"></a>
    941941        <span class="emphasis"><em>Corrective action:</em></span> Check that the machine name is a legal UNIX
    942942        system account name. If the UNIX utility <code class="literal">useradd</code> is called,
     
    945945        nor will it allow spaces in the name.
    946946        </p></li></ul></div><p>
    947 <a class="indexterm" name="id2573992"></a>
    948 <a class="indexterm" name="id2573999"></a>
    949 <a class="indexterm" name="id2574006"></a>
     947<a class="indexterm" name="id2580063"></a>
     948<a class="indexterm" name="id2580070"></a>
     949<a class="indexterm" name="id2580076"></a>
    950950The <a class="link" href="smb.conf.5.html#ADDMACHINESCRIPT" target="_top">add machine script</a> does not create the
    951951machine account in the Samba backend database; it is there only to create a UNIX system
    952952account to which the Samba backend database account can be mapped.
    953 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2574030"></a>I Can't Join a Windows 2003 PDC</h3></div></div></div><p>
    954 <a class="indexterm" name="id2574038"></a>
    955 <a class="indexterm" name="id2574044"></a>
    956 <a class="indexterm" name="id2574051"></a>
    957 <a class="indexterm" name="id2574058"></a>
     953</p></div><div class="sect2" title="I Can't Join a Windows 2003 PDC"><div class="titlepage"><div><div><h3 class="title"><a name="id2580101"></a>I Can't Join a Windows 2003 PDC</h3></div></div></div><p>
     954<a class="indexterm" name="id2580109"></a>
     955<a class="indexterm" name="id2580115"></a>
     956<a class="indexterm" name="id2580122"></a>
     957<a class="indexterm" name="id2580129"></a>
    958958        Windows 2003 requires SMB signing. Client-side SMB signing has been implemented in Samba-3.0.
    959959        Set <a class="link" href="smb.conf.5.html#CLIENTUSESPNEGO" target="_top">client use spnego = yes</a> when communicating
Note: See TracChangeset for help on using the changeset viewer.