- Timestamp:
- Nov 12, 2012, 7:37:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/docs/htmldocs/Samba3-HOWTO/samba-bdc.html
r599 r739 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 5. Backup Domain Control</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.5.x HOWTO and Reference Guide"><link rel="up" href="type.html" title="Part II. Server Configuration Basics"><link rel="prev" href="samba-pdc.html" title="Chapter 4. Domain Control"><link rel="next" href="domain-member.html" title="Chapter 6. Domain Membership"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 5. Backup Domain Control</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="samba-pdc.html">Prev</a> </td><th width="60%" align="center">Part II. Server Configuration Basics</th><td width="20%" align="right"> <a accesskey="n" href="domain-member.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 5. Backup Domain Control"><div class="titlepage"><div><div><h2 class="title"><a name="samba-bdc"></a>Chapter 5. Backup Domain Control</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"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Volker</span> <span class="surname">Lendecke</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:Volker.Lendecke@SerNet.DE">Volker.Lendecke@SerNet.DE</a>></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"><<a class="email" href="mailto:gd@samba.org">gd@samba.org</a>></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="samba-bdc.html#id33 6899">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="samba-bdc.html#id337275">Essential Background Information</a></span></dt><dd><dl><dt><span class="sect2"><a href="samba-bdc.html#id337339">MS Windows NT4-style Domain Control</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id337967">LDAP Configuration Notes</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id338300">Active Directory Domain Control</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id338354">What Qualifies a Domain Controller on the Network?</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id338437">How Does a Workstation find its Domain Controller?</a></span></dt></dl></dd><dt><span class="sect1"><a href="samba-bdc.html#id338595">Backup Domain Controller Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="samba-bdc.html#id339066">Example Configuration</a></span></dt></dl></dd><dt><span class="sect1"><a href="samba-bdc.html#id339500">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="samba-bdc.html#id339540">Machine Accounts Keep Expiring</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id339588">Can Samba Be a Backup Domain Controller to an NT4 PDC?</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id339639">How Do I Replicate the smbpasswd File?</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id339736">Can I Do This All with LDAP?</a></span></dt></dl></dd></dl></div><p>1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 5. Backup Domain Control</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.5.x HOWTO and Reference Guide"><link rel="up" href="type.html" title="Part II. Server Configuration Basics"><link rel="prev" href="samba-pdc.html" title="Chapter 4. Domain Control"><link rel="next" href="domain-member.html" title="Chapter 6. Domain Membership"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 5. Backup Domain Control</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="samba-pdc.html">Prev</a> </td><th width="60%" align="center">Part II. Server Configuration Basics</th><td width="20%" align="right"> <a accesskey="n" href="domain-member.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 5. Backup Domain Control"><div class="titlepage"><div><div><h2 class="title"><a name="samba-bdc"></a>Chapter 5. Backup Domain Control</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"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Volker</span> <span class="surname">Lendecke</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:Volker.Lendecke@SerNet.DE">Volker.Lendecke@SerNet.DE</a>></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"><<a class="email" href="mailto:gd@samba.org">gd@samba.org</a>></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="samba-bdc.html#id335055">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="samba-bdc.html#id335430">Essential Background Information</a></span></dt><dd><dl><dt><span class="sect2"><a href="samba-bdc.html#id335494">MS Windows NT4-style Domain Control</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id336122">LDAP Configuration Notes</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id336455">Active Directory Domain Control</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id336509">What Qualifies a Domain Controller on the Network?</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id336592">How Does a Workstation find its Domain Controller?</a></span></dt></dl></dd><dt><span class="sect1"><a href="samba-bdc.html#id336750">Backup Domain Controller Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="samba-bdc.html#id337223">Example Configuration</a></span></dt></dl></dd><dt><span class="sect1"><a href="samba-bdc.html#id337656">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="samba-bdc.html#id337696">Machine Accounts Keep Expiring</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id337744">Can Samba Be a Backup Domain Controller to an NT4 PDC?</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id337795">How Do I Replicate the smbpasswd File?</a></span></dt><dt><span class="sect2"><a href="samba-bdc.html#id337892">Can I Do This All with LDAP?</a></span></dt></dl></dd></dl></div><p> 2 2 Before you continue reading this section, please make sure that you are comfortable 3 3 with configuring a Samba domain controller as described in <a class="link" href="samba-pdc.html" title="Chapter 4. Domain Control">Domain Control</a>. 4 </p><div class="sect1" title="Features and Benefits"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id33 6899"></a>Features and Benefits</h2></div></div></div><p>4 </p><div class="sect1" title="Features and Benefits"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id335055"></a>Features and Benefits</h2></div></div></div><p> 5 5 This is one of the most difficult chapters to summarize. It does not matter what we say here, for someone will 6 6 still draw conclusions and/or approach the Samba Team with expectations that are either not yet capable of … … 9 9 we will do our best to provide a solution. 10 10 </p><p> 11 <a class="indexterm" name="id33 6921"></a>12 <a class="indexterm" name="id33 6930"></a>13 <a class="indexterm" name="id33 6936"></a>14 <a class="indexterm" name="id33 6943"></a>15 <a class="indexterm" name="id33 6952"></a>11 <a class="indexterm" name="id335076"></a> 12 <a class="indexterm" name="id335085"></a> 13 <a class="indexterm" name="id335092"></a> 14 <a class="indexterm" name="id335098"></a> 15 <a class="indexterm" name="id335108"></a> 16 16 Samba-3 can act as a Backup Domain Controller (BDC) to another Samba Primary Domain Controller (PDC). A 17 17 Samba-3 PDC can operate with an LDAP account backend. The LDAP backend can be either a common master LDAP … … 22 22 you will have stability and operational problems. 23 23 </p><p> 24 <a class="indexterm" name="id33 6971"></a>25 <a class="indexterm" name="id33 6980"></a>26 <a class="indexterm" name="id33 6989"></a>27 <a class="indexterm" name="id33 6998"></a>24 <a class="indexterm" name="id335127"></a> 25 <a class="indexterm" name="id335135"></a> 26 <a class="indexterm" name="id335144"></a> 27 <a class="indexterm" name="id335153"></a> 28 28 While it is possible to run a Samba-3 BDC with a non-LDAP backend, that backend must allow some form of 29 29 "two-way" propagation of changes from the BDC to the master. At this time only LDAP delivers the capability … … 31 31 is preferable for the PDC to use as its primary an LDAP master server. 32 32 </p><p> 33 <a class="indexterm" name="id33 7011"></a>34 <a class="indexterm" name="id33 7020"></a>35 <a class="indexterm" name="id33 7030"></a>36 <a class="indexterm" name="id33 7041"></a>37 <a class="indexterm" name="id33 7048"></a>38 <a class="indexterm" name="id33 7054"></a>39 <a class="indexterm" name="id33 7061"></a>33 <a class="indexterm" name="id335167"></a> 34 <a class="indexterm" name="id335176"></a> 35 <a class="indexterm" name="id335185"></a> 36 <a class="indexterm" name="id335197"></a> 37 <a class="indexterm" name="id335203"></a> 38 <a class="indexterm" name="id335210"></a> 39 <a class="indexterm" name="id335217"></a> 40 40 The use of a non-LDAP backend SAM database is particularly problematic because domain member 41 41 servers and workstations periodically change the Machine Trust Account password. The new … … 47 47 breakage of the domain trust. 48 48 </p><p> 49 <a class="indexterm" name="id33 7077"></a>50 <a class="indexterm" name="id33 7086"></a>51 <a class="indexterm" name="id33 7095"></a>52 <a class="indexterm" name="id33 7104"></a>49 <a class="indexterm" name="id335232"></a> 50 <a class="indexterm" name="id335241"></a> 51 <a class="indexterm" name="id335250"></a> 52 <a class="indexterm" name="id335259"></a> 53 53 Considering the number of comments and questions raised concerning how to configure a BDC, 54 54 let's consider each possible option and look at the pros and cons for each possible solution. … … 71 71 and also suffers 72 72 from the issue of domain trust breakdown. 73 </p></td></tr></tbody></table></div></div><br class="table-break"></div><div class="sect1" title="Essential Background Information"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id33 7275"></a>Essential Background Information</h2></div></div></div><p>74 <a class="indexterm" name="id33 7283"></a>75 <a class="indexterm" name="id33 7290"></a>76 <a class="indexterm" name="id33 7297"></a>77 <a class="indexterm" name="id33 7303"></a>73 </p></td></tr></tbody></table></div></div><br class="table-break"></div><div class="sect1" title="Essential Background Information"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id335430"></a>Essential Background Information</h2></div></div></div><p> 74 <a class="indexterm" name="id335438"></a> 75 <a class="indexterm" name="id335445"></a> 76 <a class="indexterm" name="id335452"></a> 77 <a class="indexterm" name="id335459"></a> 78 78 A domain controller is a machine that is able to answer logon requests from network 79 79 workstations. Microsoft LanManager and IBM LanServer were two early products that 80 80 provided this capability. The technology has become known as the LanMan Netlogon service. 81 81 </p><p> 82 <a class="indexterm" name="id33 7316"></a>83 <a class="indexterm" name="id33 7327"></a>82 <a class="indexterm" name="id335471"></a> 83 <a class="indexterm" name="id335483"></a> 84 84 When MS Windows NT3.10 was first released, it supported a new style of Domain Control 85 85 and with it a new form of the network logon service that has extended functionality. … … 87 87 changed with the evolution of MS Windows NT and today provides a complex array of 88 88 services that are implemented over an intricate spectrum of technologies. 89 </p><div class="sect2" title="MS Windows NT4-style Domain Control"><div class="titlepage"><div><div><h3 class="title"><a name="id33 7339"></a>MS Windows NT4-style Domain Control</h3></div></div></div><p>90 <a class="indexterm" name="id33 7347"></a>91 <a class="indexterm" name="id33 7353"></a>92 <a class="indexterm" name="id33 7360"></a>93 <a class="indexterm" name="id33 7367"></a>94 <a class="indexterm" name="id33 7374"></a>95 <a class="indexterm" name="id33 7380"></a>96 <a class="indexterm" name="id33 7389"></a>89 </p><div class="sect2" title="MS Windows NT4-style Domain Control"><div class="titlepage"><div><div><h3 class="title"><a name="id335494"></a>MS Windows NT4-style Domain Control</h3></div></div></div><p> 90 <a class="indexterm" name="id335502"></a> 91 <a class="indexterm" name="id335509"></a> 92 <a class="indexterm" name="id335516"></a> 93 <a class="indexterm" name="id335522"></a> 94 <a class="indexterm" name="id335529"></a> 95 <a class="indexterm" name="id335536"></a> 96 <a class="indexterm" name="id335545"></a> 97 97 Whenever a user logs into a Windows NT4/200x/XP Professional workstation, 98 98 the workstation connects to a domain controller (authentication server) to validate that … … 102 102 codes is returned to the workstation that has made the authentication request. 103 103 </p><p> 104 <a class="indexterm" name="id33 7406"></a>105 <a class="indexterm" name="id33 7412"></a>106 <a class="indexterm" name="id33 7419"></a>107 <a class="indexterm" name="id33 7426"></a>108 <a class="indexterm" name="id33 7433"></a>104 <a class="indexterm" name="id335561"></a> 105 <a class="indexterm" name="id335568"></a> 106 <a class="indexterm" name="id335575"></a> 107 <a class="indexterm" name="id335582"></a> 108 <a class="indexterm" name="id335588"></a> 109 109 When the username/password pair has been validated, the domain controller 110 110 (authentication server) will respond with full enumeration of the account information … … 118 118 in all versions of MS Windows NT (3.10, 3.50, 3.51, 4.0). 119 119 </p><p> 120 <a class="indexterm" name="id33 7457"></a>121 <a class="indexterm" name="id33 7466"></a>122 <a class="indexterm" name="id33 7472"></a>123 <a class="indexterm" name="id33 7479"></a>124 <a class="indexterm" name="id33 7486"></a>120 <a class="indexterm" name="id335612"></a> 121 <a class="indexterm" name="id335621"></a> 122 <a class="indexterm" name="id335628"></a> 123 <a class="indexterm" name="id335635"></a> 124 <a class="indexterm" name="id335641"></a> 125 125 The account information (user and machine) on domain controllers is stored in two files, 126 126 one containing the security information and the other the SAM. These are stored in files … … 132 132 There are two situations in which it is desirable to install BDCs: 133 133 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> 134 <a class="indexterm" name="id33 7518"></a>135 <a class="indexterm" name="id33 7524"></a>134 <a class="indexterm" name="id335673"></a> 135 <a class="indexterm" name="id335680"></a> 136 136 On the local network that the PDC is on, if there are many 137 137 workstations and/or where the PDC is generally very busy. In this case the BDCs 138 138 will pick up network logon requests and help to add robustness to network services. 139 139 </p></li><li class="listitem"><p> 140 <a class="indexterm" name="id33 7537"></a>140 <a class="indexterm" name="id335693"></a> 141 141 At each remote site, to reduce wide-area network traffic and to add stability to 142 142 remote network operations. The design of the network, and the strategic placement of … … 145 145 (and thus costs). 146 146 </p></li></ul></div><p> 147 <a class="indexterm" name="id33 7554"></a>148 <a class="indexterm" name="id33 7560"></a>149 <a class="indexterm" name="id33 7567"></a>150 <a class="indexterm" name="id33 7574"></a>151 <a class="indexterm" name="id33 7580"></a>147 <a class="indexterm" name="id335709"></a> 148 <a class="indexterm" name="id335716"></a> 149 <a class="indexterm" name="id335722"></a> 150 <a class="indexterm" name="id335729"></a> 151 <a class="indexterm" name="id335736"></a> 152 152 The interoperation of a PDC and its BDCs in a true Windows NT4 environment is worth 153 153 mentioning here. The PDC contains the master copy of the SAM. In the event that an … … 161 161 trigger them to obtain the update and then apply that to their own copy of the SAM. 162 162 </p><p> 163 <a class="indexterm" name="id33 7597"></a>164 <a class="indexterm" name="id33 7606"></a>165 <a class="indexterm" name="id33 7615"></a>166 <a class="indexterm" name="id33 7622"></a>163 <a class="indexterm" name="id335753"></a> 164 <a class="indexterm" name="id335762"></a> 165 <a class="indexterm" name="id335770"></a> 166 <a class="indexterm" name="id335777"></a> 167 167 Samba-3 cannot participate in true SAM replication and is therefore not able to 168 168 employ precisely the same protocols used by MS Windows NT4. A Samba-3 BDC will … … 170 170 to synchronize the SAM from delta files that are held by BDCs. 171 171 </p><p> 172 <a class="indexterm" name="id33 7634"></a>173 <a class="indexterm" name="id33 7641"></a>172 <a class="indexterm" name="id335789"></a> 173 <a class="indexterm" name="id335796"></a> 174 174 Samba-3 cannot function as a BDC to an MS Windows NT4 PDC, and Samba-3 cannot 175 175 function correctly as a PDC to an MS Windows NT4 BDC. Both Samba-3 and MS Windows 176 176 NT4 can function as a BDC to its own type of PDC. 177 177 </p><p> 178 <a class="indexterm" name="id33 7652"></a>179 <a class="indexterm" name="id33 7659"></a>180 <a class="indexterm" name="id33 7665"></a>178 <a class="indexterm" name="id335808"></a> 179 <a class="indexterm" name="id335814"></a> 180 <a class="indexterm" name="id335821"></a> 181 181 The BDC is said to hold a <span class="emphasis"><em>read-only</em></span> of the SAM from which 182 182 it is able to process network logon requests and authenticate users. The BDC can … … 185 185 maintenance of domain security as well as in network integrity. 186 186 </p><p> 187 <a class="indexterm" name="id33 7682"></a>188 <a class="indexterm" name="id33 7689"></a>189 <a class="indexterm" name="id33 7695"></a>190 <a class="indexterm" name="id33 7702"></a>187 <a class="indexterm" name="id335837"></a> 188 <a class="indexterm" name="id335844"></a> 189 <a class="indexterm" name="id335851"></a> 190 <a class="indexterm" name="id335858"></a> 191 191 In the event that the NT4 PDC should need to be taken out of service, or if it dies, one of the NT4 BDCs can 192 192 be promoted to a PDC. If this happens while the original NT4 PDC is online, it is automatically demoted to an … … 195 195 promoted in this manner because reconfiguration of Samba requires changes to the <code class="filename">smb.conf</code> file. It is easy 196 196 enough to manuall change the <code class="filename">smb.conf</code> file and then restart relevant Samba network services. 197 </p><div class="sect3" title="Example PDC Configuration"><div class="titlepage"><div><div><h4 class="title"><a name="id33 7727"></a>Example PDC Configuration</h4></div></div></div><p>198 <a class="indexterm" name="id33 7735"></a>199 <a class="indexterm" name="id33 7742"></a>197 </p><div class="sect3" title="Example PDC Configuration"><div class="titlepage"><div><div><h4 class="title"><a name="id335882"></a>Example PDC Configuration</h4></div></div></div><p> 198 <a class="indexterm" name="id335890"></a> 199 <a class="indexterm" name="id335897"></a> 200 200 Beginning with Version 2.2, Samba officially supports domain logons for all current Windows clients, including 201 201 Windows NT4, 2003, and XP Professional. For Samba to be enabled as a PDC, some parameters in the 202 202 <em class="parameter"><code>[global]</code></em> section of the <code class="filename">smb.conf</code> have to be set. Refer to <a class="link" href="samba-bdc.html#minimalPDC" title="Example 5.1. Minimal smb.conf for a PDC in Use with a BDC LDAP Server on PDC">the Minimal smb.conf for a PDC in Use with a BDC LDAP Server on PDC 203 203 section</a> for an example of the minimum required settings. 204 </p><div class="example"><a name="minimalPDC"></a><p class="title"><b>Example 5.1. Minimal smb.conf for a PDC in Use with a BDC LDAP Server on PDC</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id33 7792"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td><a class="indexterm" name="id337803"></a><em class="parameter"><code>passdb backend = ldapsam://localhost:389</code></em></td></tr><tr><td><a class="indexterm" name="id337815"></a><em class="parameter"><code>domain master = yes</code></em></td></tr><tr><td><a class="indexterm" name="id337826"></a><em class="parameter"><code>domain logons = yes</code></em></td></tr><tr><td><a class="indexterm" name="id337838"></a><em class="parameter"><code>ldap suffix = dc=quenya,dc=org</code></em></td></tr><tr><td><a class="indexterm" name="id337849"></a><em class="parameter"><code>ldap user suffix = ou=Users</code></em></td></tr><tr><td><a class="indexterm" name="id337861"></a><em class="parameter"><code>ldap group suffix = ou=Groups</code></em></td></tr><tr><td><a class="indexterm" name="id337873"></a><em class="parameter"><code>ldap machine suffix = ou=Computers</code></em></td></tr><tr><td><a class="indexterm" name="id337884"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr><tr><td><a class="indexterm" name="id337896"></a><em class="parameter"><code>ldap admin dn = cn=sambadmin,dc=quenya,dc=org</code></em></td></tr></table></div></div><br class="example-break"><p>205 <a class="indexterm" name="id33 7911"></a>206 <a class="indexterm" name="id33 7918"></a>204 </p><div class="example"><a name="minimalPDC"></a><p class="title"><b>Example 5.1. Minimal smb.conf for a PDC in Use with a BDC LDAP Server on PDC</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id335947"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td><a class="indexterm" name="id335958"></a><em class="parameter"><code>passdb backend = ldapsam://localhost:389</code></em></td></tr><tr><td><a class="indexterm" name="id335970"></a><em class="parameter"><code>domain master = yes</code></em></td></tr><tr><td><a class="indexterm" name="id335982"></a><em class="parameter"><code>domain logons = yes</code></em></td></tr><tr><td><a class="indexterm" name="id335993"></a><em class="parameter"><code>ldap suffix = dc=quenya,dc=org</code></em></td></tr><tr><td><a class="indexterm" name="id336005"></a><em class="parameter"><code>ldap user suffix = ou=Users</code></em></td></tr><tr><td><a class="indexterm" name="id336016"></a><em class="parameter"><code>ldap group suffix = ou=Groups</code></em></td></tr><tr><td><a class="indexterm" name="id336028"></a><em class="parameter"><code>ldap machine suffix = ou=Computers</code></em></td></tr><tr><td><a class="indexterm" name="id336040"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr><tr><td><a class="indexterm" name="id336051"></a><em class="parameter"><code>ldap admin dn = cn=sambadmin,dc=quenya,dc=org</code></em></td></tr></table></div></div><br class="example-break"><p> 205 <a class="indexterm" name="id336066"></a> 206 <a class="indexterm" name="id336073"></a> 207 207 Several other things like a <em class="parameter"><code>[homes]</code></em> and a <em class="parameter"><code>[netlogon]</code></em> share 208 208 also need to be set along with settings for the profile path, the user's home drive, and so on. This is not … … 212 212 as available in the <a class="ulink" href="http://www.samba.org/samba/docs/Samba3-ByExample" target="_top">book</a> <span class="quote">“<span class="quote">Samba-3 213 213 by Example</span>”</span> that may be obtained from local and on-line book stores. 214 </p></div></div><div class="sect2" title="LDAP Configuration Notes"><div class="titlepage"><div><div><h3 class="title"><a name="id33 7967"></a>LDAP Configuration Notes</h3></div></div></div><p>215 <a class="indexterm" name="id33 7974"></a>216 <a class="indexterm" name="id33 7984"></a>217 <a class="indexterm" name="id33 7993"></a>214 </p></div></div><div class="sect2" title="LDAP Configuration Notes"><div class="titlepage"><div><div><h3 class="title"><a name="id336122"></a>LDAP Configuration Notes</h3></div></div></div><p> 215 <a class="indexterm" name="id336130"></a> 216 <a class="indexterm" name="id336139"></a> 217 <a class="indexterm" name="id336148"></a> 218 218 When configuring a master and a slave LDAP server, it is advisable to use the master LDAP server 219 219 for the PDC and slave LDAP servers for the BDCs. It is not essential to use slave LDAP servers; however, … … 222 222 entire network. 223 223 </p><p> 224 <a class="indexterm" name="id33 8006"></a>225 <a class="indexterm" name="id33 8016"></a>226 <a class="indexterm" name="id33 8025"></a>227 <a class="indexterm" name="id33 8031"></a>228 <a class="indexterm" name="id33 8038"></a>224 <a class="indexterm" name="id336162"></a> 225 <a class="indexterm" name="id336171"></a> 226 <a class="indexterm" name="id336180"></a> 227 <a class="indexterm" name="id336187"></a> 228 <a class="indexterm" name="id336194"></a> 229 229 When configuring a master LDAP server that will have slave LDAP servers, do not forget to configure this in 230 230 the <code class="filename">/etc/openldap/slapd.conf</code> file. It must be noted that the DN of a server certificate … … 233 233 on server certificate names are in RFC2830. 234 234 </p><p> 235 <a class="indexterm" name="id33 8058"></a>236 <a class="indexterm" name="id33 8065"></a>237 <a class="indexterm" name="id33 8071"></a>238 <a class="indexterm" name="id33 8078"></a>239 <a class="indexterm" name="id33 8088"></a>240 <a class="indexterm" name="id33 8094"></a>241 <a class="indexterm" name="id33 8101"></a>235 <a class="indexterm" name="id336213"></a> 236 <a class="indexterm" name="id336220"></a> 237 <a class="indexterm" name="id336227"></a> 238 <a class="indexterm" name="id336233"></a> 239 <a class="indexterm" name="id336243"></a> 240 <a class="indexterm" name="id336250"></a> 241 <a class="indexterm" name="id336257"></a> 242 242 It does not really fit within the scope of this document, but a working LDAP installation is basic to 243 243 LDAP-enabled Samba operation. When using an OpenLDAP server with Transport Layer Security (TLS), the machine … … 248 248 a correct hostname. 249 249 </p><p> 250 <a class="indexterm" name="id33 8137"></a>251 <a class="indexterm" name="id33 8143"></a>252 <a class="indexterm" name="id33 8150"></a>253 <a class="indexterm" name="id33 8157"></a>254 <a class="indexterm" name="id33 8164"></a>255 <a class="indexterm" name="id33 8171"></a>250 <a class="indexterm" name="id336292"></a> 251 <a class="indexterm" name="id336299"></a> 252 <a class="indexterm" name="id336306"></a> 253 <a class="indexterm" name="id336312"></a> 254 <a class="indexterm" name="id336319"></a> 255 <a class="indexterm" name="id336326"></a> 256 256 Do not install a Samba PDC so that is uses an LDAP slave server. Joining client machines to the domain 257 257 will fail in this configuration because the change to the machine account in the LDAP tree must take place on … … 280 280 the secondary LDAP server in the <code class="filename">smb.conf</code> file as shown in <a class="link" href="samba-bdc.html#mulitldapcfg" title="Example 5.2. Multiple LDAP Servers in smb.conf">the Multiple LDAP 281 281 Servers in <code class="filename">smb.conf</code> example</a>. 282 </p><div class="example"><a name="mulitldapcfg"></a><p class="title"><b>Example 5.2. Multiple LDAP Servers in <code class="filename">smb.conf</code></b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id33 8287"></a><em class="parameter"><code>passdb backend = ldapsam:"ldap://master.quenya.org ldap://slave.quenya.org"</code></em></td></tr></table></div></div><br class="example-break"></div><div class="sect2" title="Active Directory Domain Control"><div class="titlepage"><div><div><h3 class="title"><a name="id338300"></a>Active Directory Domain Control</h3></div></div></div><p>283 <a class="indexterm" name="id33 8308"></a>284 <a class="indexterm" name="id33 8315"></a>285 <a class="indexterm" name="id33 8321"></a>286 <a class="indexterm" name="id33 8328"></a>287 <a class="indexterm" name="id33 8335"></a>288 <a class="indexterm" name="id33 8342"></a>282 </p><div class="example"><a name="mulitldapcfg"></a><p class="title"><b>Example 5.2. Multiple LDAP Servers in <code class="filename">smb.conf</code></b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id336441"></a><em class="parameter"><code>passdb backend = ldapsam:"ldap://master.quenya.org ldap://slave.quenya.org"</code></em></td></tr></table></div></div><br class="example-break"></div><div class="sect2" title="Active Directory Domain Control"><div class="titlepage"><div><div><h3 class="title"><a name="id336455"></a>Active Directory Domain Control</h3></div></div></div><p> 283 <a class="indexterm" name="id336463"></a> 284 <a class="indexterm" name="id336469"></a> 285 <a class="indexterm" name="id336476"></a> 286 <a class="indexterm" name="id336483"></a> 287 <a class="indexterm" name="id336490"></a> 288 <a class="indexterm" name="id336496"></a> 289 289 As of the release of MS Windows 2000 and Active Directory, this information is now stored 290 290 in a directory that can be replicated and for which partial or full administrative control … … 292 292 tree, and it cannot be an Active Directory server. This means that Samba-3 also cannot 293 293 act as a BDC to an Active Directory domain controller. 294 </p></div><div class="sect2" title="What Qualifies a Domain Controller on the Network?"><div class="titlepage"><div><div><h3 class="title"><a name="id33 8354"></a>What Qualifies a Domain Controller on the Network?</h3></div></div></div><p>295 <a class="indexterm" name="id33 8362"></a>296 <a class="indexterm" name="id33 8369"></a>297 <a class="indexterm" name="id33 8375"></a>298 <a class="indexterm" name="id33 8382"></a>294 </p></div><div class="sect2" title="What Qualifies a Domain Controller on the Network?"><div class="titlepage"><div><div><h3 class="title"><a name="id336509"></a>What Qualifies a Domain Controller on the Network?</h3></div></div></div><p> 295 <a class="indexterm" name="id336517"></a> 296 <a class="indexterm" name="id336523"></a> 297 <a class="indexterm" name="id336530"></a> 298 <a class="indexterm" name="id336537"></a> 299 299 Every machine that is a domain controller for the domain MIDEARTH has to register the NetBIOS 300 300 group name MIDEARTH<1C> with the WINS server and/or by broadcast on the local network. … … 304 304 implementation requires the DMB to be on the same machine as the PDC. 305 305 </p><p> 306 <a class="indexterm" name="id33 8398"></a>307 <a class="indexterm" name="id33 8405"></a>308 <a class="indexterm" name="id33 8412"></a>306 <a class="indexterm" name="id336553"></a> 307 <a class="indexterm" name="id336560"></a> 308 <a class="indexterm" name="id336566"></a> 309 309 Where a WINS server is not used, broadcast name registrations alone must suffice. Refer to 310 310 <a class="link" href="NetworkBrowsing.html" title="Chapter 10. Network Browsing">Network Browsing</a>,<a class="link" href="NetworkBrowsing.html#netdiscuss" title="Discussion">Discussion</a> 311 311 for more information regarding TCP/IP network protocols and how SMB/CIFS names are handled. 312 </p></div><div class="sect2" title="How Does a Workstation find its Domain Controller?"><div class="titlepage"><div><div><h3 class="title"><a name="id33 8437"></a>How Does a Workstation find its Domain Controller?</h3></div></div></div><p>313 <a class="indexterm" name="id33 8445"></a>314 <a class="indexterm" name="id33 8452"></a>312 </p></div><div class="sect2" title="How Does a Workstation find its Domain Controller?"><div class="titlepage"><div><div><h3 class="title"><a name="id336592"></a>How Does a Workstation find its Domain Controller?</h3></div></div></div><p> 313 <a class="indexterm" name="id336600"></a> 314 <a class="indexterm" name="id336606"></a> 315 315 There are two different mechanisms to locate a domain controller: one method is used when 316 316 NetBIOS over TCP/IP is enabled and the other when it has been disabled in the TCP/IP 317 317 network configuration. 318 318 </p><p> 319 <a class="indexterm" name="id33 8463"></a>320 <a class="indexterm" name="id33 8470"></a>319 <a class="indexterm" name="id336618"></a> 320 <a class="indexterm" name="id336625"></a> 321 321 Where NetBIOS over TCP/IP is disabled, all name resolution involves the use of DNS, broadcast 322 322 messaging over UDP, as well as Active Directory communication technologies. In this type of 323 323 environment all machines require appropriate DNS entries. More information may be found in 324 324 <a class="link" href="NetworkBrowsing.html#adsdnstech" title="DNS and Active Directory">DNS and Active Directory</a>. 325 </p><div class="sect3" title="NetBIOS Over TCP/IP Enabled"><div class="titlepage"><div><div><h4 class="title"><a name="id33 8488"></a>NetBIOS Over TCP/IP Enabled</h4></div></div></div><p>326 <a class="indexterm" name="id33 8496"></a>327 <a class="indexterm" name="id33 8503"></a>328 <a class="indexterm" name="id33 8509"></a>329 <a class="indexterm" name="id33 8516"></a>325 </p><div class="sect3" title="NetBIOS Over TCP/IP Enabled"><div class="titlepage"><div><div><h4 class="title"><a name="id336643"></a>NetBIOS Over TCP/IP Enabled</h4></div></div></div><p> 326 <a class="indexterm" name="id336651"></a> 327 <a class="indexterm" name="id336658"></a> 328 <a class="indexterm" name="id336664"></a> 329 <a class="indexterm" name="id336671"></a> 330 330 An MS Windows NT4/200x/XP Professional workstation in the domain MIDEARTH that wants a 331 331 local user to be authenticated has to find the domain controller for MIDEARTH. It does this … … 335 335 authenticate each other. After that the workstation sends the user's credentials (name and 336 336 password) to the local domain controller for validation. 337 </p></div><div class="sect3" title="NetBIOS Over TCP/IP Disabled"><div class="titlepage"><div><div><h4 class="title"><a name="id33 8539"></a>NetBIOS Over TCP/IP Disabled</h4></div></div></div><p>338 <a class="indexterm" name="id33 8547"></a>339 <a class="indexterm" name="id33 8554"></a>340 <a class="indexterm" name="id33 8561"></a>341 <a class="indexterm" name="id33 8567"></a>337 </p></div><div class="sect3" title="NetBIOS Over TCP/IP Disabled"><div class="titlepage"><div><div><h4 class="title"><a name="id336694"></a>NetBIOS Over TCP/IP Disabled</h4></div></div></div><p> 338 <a class="indexterm" name="id336702"></a> 339 <a class="indexterm" name="id336709"></a> 340 <a class="indexterm" name="id336716"></a> 341 <a class="indexterm" name="id336722"></a> 342 342 An MS Windows NT4/200x/XP Professional workstation in the realm <code class="constant">quenya.org</code> 343 343 that has a need to affect user logon authentication will locate the domain controller by 344 344 re-querying DNS servers for the <code class="constant">_ldap._tcp.pdc._msdcs.quenya.org</code> record. 345 345 More information regarding this subject may be found in <a class="link" href="NetworkBrowsing.html#adsdnstech" title="DNS and Active Directory">DNS and Active Directory</a>. 346 </p></div></div></div><div class="sect1" title="Backup Domain Controller Configuration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id33 8595"></a>Backup Domain Controller Configuration</h2></div></div></div><p>347 <a class="indexterm" name="id33 8603"></a>346 </p></div></div></div><div class="sect1" title="Backup Domain Controller Configuration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id336750"></a>Backup Domain Controller Configuration</h2></div></div></div><p> 347 <a class="indexterm" name="id336758"></a> 348 348 The creation of a BDC requires some steps to prepare the Samba server before 349 349 <span class="application">smbd</span> is executed for the first time. These steps are as follows: 350 350 </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> 351 <a class="indexterm" name="id33 8623"></a>352 <a class="indexterm" name="id33 8629"></a>353 <a class="indexterm" name="id33 8636"></a>354 <a class="indexterm" name="id33 8642"></a>355 <a class="indexterm" name="id33 8649"></a>356 <a class="indexterm" name="id33 8656"></a>351 <a class="indexterm" name="id336778"></a> 352 <a class="indexterm" name="id336784"></a> 353 <a class="indexterm" name="id336791"></a> 354 <a class="indexterm" name="id336797"></a> 355 <a class="indexterm" name="id336804"></a> 356 <a class="indexterm" name="id336811"></a> 357 357 The domain SID has to be the same on the PDC and the BDC. In Samba versions pre-2.2.5, the domain SID was 358 358 stored in the file <code class="filename">private/MACHINE.SID</code>. For all versions of Samba released since 2.2.5 … … 362 362 domain SID. This is described here. 363 363 </p><p> 364 <a class="indexterm" name="id33 8682"></a>365 <a class="indexterm" name="id33 8689"></a>366 <a class="indexterm" name="id33 8695"></a>367 <a class="indexterm" name="id33 8702"></a>368 <a class="indexterm" name="id33 8709"></a>364 <a class="indexterm" name="id336837"></a> 365 <a class="indexterm" name="id336844"></a> 366 <a class="indexterm" name="id336850"></a> 367 <a class="indexterm" name="id336857"></a> 368 <a class="indexterm" name="id336864"></a> 369 369 To retrieve the domain SID from the PDC or an existing BDC and store it in the 370 370 <code class="filename">secrets.tdb</code>, execute: … … 372 372 <code class="prompt">root# </code><strong class="userinput"><code>net rpc getsid</code></strong> 373 373 </pre></li><li class="listitem"><p> 374 <a class="indexterm" name="id33 8748"></a>375 <a class="indexterm" name="id33 8755"></a>376 <a class="indexterm" name="id33 8761"></a>374 <a class="indexterm" name="id336903"></a> 375 <a class="indexterm" name="id336910"></a> 376 <a class="indexterm" name="id336916"></a> 377 377 Specification of the <a class="link" href="smb.conf.5.html#LDAPADMINDN" target="_top">ldap admin dn</a> is obligatory. 378 378 This also requires the LDAP administration password to be set in the <code class="filename">secrets.tdb</code> … … 382 382 parameter must be specified in the <code class="filename">smb.conf</code> file. 383 383 </p></li><li class="listitem"><p> 384 <a class="indexterm" name="id33 8833"></a>385 <a class="indexterm" name="id33 8842"></a>386 <a class="indexterm" name="id33 8849"></a>387 <a class="indexterm" name="id33 8856"></a>384 <a class="indexterm" name="id336989"></a> 385 <a class="indexterm" name="id336998"></a> 386 <a class="indexterm" name="id337005"></a> 387 <a class="indexterm" name="id337012"></a> 388 388 The UNIX user database has to be synchronized from the PDC to the 389 389 BDC. This means that both the <code class="filename">/etc/passwd</code> and … … 396 396 passwords. An LDAP solution would also work. 397 397 </p></li><li class="listitem"><p> 398 <a class="indexterm" name="id33 8884"></a>399 <a class="indexterm" name="id33 8891"></a>400 <a class="indexterm" name="id33 8897"></a>401 <a class="indexterm" name="id33 8904"></a>402 <a class="indexterm" name="id33 8910"></a>403 <a class="indexterm" name="id33 8917"></a>404 <a class="indexterm" name="id33 8924"></a>405 <a class="indexterm" name="id33 8931"></a>398 <a class="indexterm" name="id337040"></a> 399 <a class="indexterm" name="id337047"></a> 400 <a class="indexterm" name="id337053"></a> 401 <a class="indexterm" name="id337060"></a> 402 <a class="indexterm" name="id337066"></a> 403 <a class="indexterm" name="id337073"></a> 404 <a class="indexterm" name="id337080"></a> 405 <a class="indexterm" name="id337087"></a> 406 406 The Samba password database must be replicated from the PDC to the BDC. 407 407 Although it is possible to synchronize the <code class="filename">smbpasswd</code> … … 418 418 or when it takes place. 419 419 </p><p> 420 <a class="indexterm" name="id33 8968"></a>421 <a class="indexterm" name="id33 8975"></a>422 <a class="indexterm" name="id33 8982"></a>423 <a class="indexterm" name="id33 8989"></a>420 <a class="indexterm" name="id337125"></a> 421 <a class="indexterm" name="id337132"></a> 422 <a class="indexterm" name="id337138"></a> 423 <a class="indexterm" name="id337145"></a> 424 424 The use of LDAP for both the POSIX (UNIX user and group) accounts and for the 425 425 SambaSAMAccount data automatically ensures that all account change information … … 427 427 action to synchronize account information because LDAP will meet that requirement. 428 428 </p></li><li class="listitem"><p> 429 <a class="indexterm" name="id33 9003"></a>430 <a class="indexterm" name="id33 9010"></a>431 <a class="indexterm" name="id33 9016"></a>432 <a class="indexterm" name="id33 9023"></a>433 <a class="indexterm" name="id33 9029"></a>434 <a class="indexterm" name="id33 9036"></a>429 <a class="indexterm" name="id337159"></a> 430 <a class="indexterm" name="id337166"></a> 431 <a class="indexterm" name="id337173"></a> 432 <a class="indexterm" name="id337179"></a> 433 <a class="indexterm" name="id337186"></a> 434 <a class="indexterm" name="id337193"></a> 435 435 The netlogon share has to be replicated from the PDC to the BDC. This can be done manually whenever login 436 436 scripts are changed, or it can be done automatically using a <code class="literal">cron</code> job that will replicate … … 439 439 that can be manually managed given that the administrator will make all changes to the netlogon share as part 440 440 of a conscious move. 441 </p></li></ul></div><div class="sect2" title="Example Configuration"><div class="titlepage"><div><div><h3 class="title"><a name="id33 9066"></a>Example Configuration</h3></div></div></div><p>441 </p></li></ul></div><div class="sect2" title="Example Configuration"><div class="titlepage"><div><div><h3 class="title"><a name="id337223"></a>Example Configuration</h3></div></div></div><p> 442 442 Finally, the BDC has to be capable of being found by the workstations. This can be done by configuring the 443 443 Samba <code class="filename">smb.conf</code> file <em class="parameter"><code>[global]</code></em> section as shown in <a class="link" href="samba-bdc.html#minim-bdc" title="Example 5.3. Minimal Setup for Being a BDC">Minimal 444 444 Setup for Being a BDC</a>. 445 </p><div class="example"><a name="minim-bdc"></a><p class="title"><b>Example 5.3. Minimal Setup for Being a BDC</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id33 9110"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td><a class="indexterm" name="id339121"></a><em class="parameter"><code>passdb backend = ldapsam:ldap://slave-ldap.quenya.org</code></em></td></tr><tr><td><a class="indexterm" name="id339133"></a><em class="parameter"><code>domain master = no</code></em></td></tr><tr><td><a class="indexterm" name="id339144"></a><em class="parameter"><code>domain logons = yes</code></em></td></tr><tr><td><a class="indexterm" name="id339156"></a><em class="parameter"><code>ldap suffix = dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id339167"></a><em class="parameter"><code>ldap user suffix = ou=Users</code></em></td></tr><tr><td><a class="indexterm" name="id339179"></a><em class="parameter"><code>ldap group suffix = ou=Groups</code></em></td></tr><tr><td><a class="indexterm" name="id339191"></a><em class="parameter"><code>ldap machine suffix = ou=Computers</code></em></td></tr><tr><td><a class="indexterm" name="id339202"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr><tr><td><a class="indexterm" name="id339214"></a><em class="parameter"><code>ldap admin dn = cn=sambadmin,dc=quenya,dc=org</code></em></td></tr><tr><td><a class="indexterm" name="id339226"></a><em class="parameter"><code>idmap backend = ldap:ldap://master-ldap.quenya.org</code></em></td></tr><tr><td><a class="indexterm" name="id339237"></a><em class="parameter"><code>idmap uid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id339249"></a><em class="parameter"><code>idmap gid = 10000-20000</code></em></td></tr></table></div></div><br class="example-break"><p>445 </p><div class="example"><a name="minim-bdc"></a><p class="title"><b>Example 5.3. Minimal Setup for Being a BDC</b></p><div class="example-contents"><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id337266"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td><a class="indexterm" name="id337278"></a><em class="parameter"><code>passdb backend = ldapsam:ldap://slave-ldap.quenya.org</code></em></td></tr><tr><td><a class="indexterm" name="id337290"></a><em class="parameter"><code>domain master = no</code></em></td></tr><tr><td><a class="indexterm" name="id337301"></a><em class="parameter"><code>domain logons = yes</code></em></td></tr><tr><td><a class="indexterm" name="id337313"></a><em class="parameter"><code>ldap suffix = dc=abmas,dc=biz</code></em></td></tr><tr><td><a class="indexterm" name="id337324"></a><em class="parameter"><code>ldap user suffix = ou=Users</code></em></td></tr><tr><td><a class="indexterm" name="id337336"></a><em class="parameter"><code>ldap group suffix = ou=Groups</code></em></td></tr><tr><td><a class="indexterm" name="id337347"></a><em class="parameter"><code>ldap machine suffix = ou=Computers</code></em></td></tr><tr><td><a class="indexterm" name="id337359"></a><em class="parameter"><code>ldap idmap suffix = ou=Idmap</code></em></td></tr><tr><td><a class="indexterm" name="id337371"></a><em class="parameter"><code>ldap admin dn = cn=sambadmin,dc=quenya,dc=org</code></em></td></tr><tr><td><a class="indexterm" name="id337382"></a><em class="parameter"><code>idmap backend = ldap:ldap://master-ldap.quenya.org</code></em></td></tr><tr><td><a class="indexterm" name="id337394"></a><em class="parameter"><code>idmap uid = 10000-20000</code></em></td></tr><tr><td><a class="indexterm" name="id337406"></a><em class="parameter"><code>idmap gid = 10000-20000</code></em></td></tr></table></div></div><br class="example-break"><p> 446 446 Fully documented working example network configurations using OpenLDAP and Samba 447 447 as available in the <a class="ulink" href="http://www.samba.org/samba/docs/Samba3-ByExample" target="_top">book</a> <span class="quote">“<span class="quote">Samba-3 448 448 by Example</span>”</span> that may be obtained from local and on-line book stores. 449 449 </p><p> 450 <a class="indexterm" name="id33 9278"></a>451 <a class="indexterm" name="id33 9284"></a>452 <a class="indexterm" name="id33 9291"></a>453 <a class="indexterm" name="id33 9298"></a>450 <a class="indexterm" name="id337434"></a> 451 <a class="indexterm" name="id337441"></a> 452 <a class="indexterm" name="id337448"></a> 453 <a class="indexterm" name="id337455"></a> 454 454 This configuration causes the BDC to register only the name MIDEARTH<1C> with the WINS server. This is 455 455 not a problem, as the name MIDEARTH<1C> is a NetBIOS group name that is meant to be registered by more … … 457 457 register MIDEARTH<1B>, which is a unique NetBIOS name that is reserved for the PDC. 458 458 </p><p> 459 <a class="indexterm" name="id33 9324"></a>460 <a class="indexterm" name="id33 9330"></a>461 <a class="indexterm" name="id33 9337"></a>462 <a class="indexterm" name="id33 9344"></a>463 <a class="indexterm" name="id33 9351"></a>464 <a class="indexterm" name="id33 9358"></a>465 <a class="indexterm" name="id33 9365"></a>466 <a class="indexterm" name="id33 9372"></a>467 <a class="indexterm" name="id33 9378"></a>459 <a class="indexterm" name="id337481"></a> 460 <a class="indexterm" name="id337487"></a> 461 <a class="indexterm" name="id337494"></a> 462 <a class="indexterm" name="id337501"></a> 463 <a class="indexterm" name="id337508"></a> 464 <a class="indexterm" name="id337514"></a> 465 <a class="indexterm" name="id337521"></a> 466 <a class="indexterm" name="id337528"></a> 467 <a class="indexterm" name="id337534"></a> 468 468 The <em class="parameter"><code>idmap backend</code></em> will redirect the <code class="literal">winbindd</code> utility to use the LDAP 469 469 database to store all mappings for Windows SIDs to UIDs and GIDs for UNIX accounts in a repository that is … … 471 471 <code class="literal">nss_ldap</code> utility. 472 472 </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> 473 <a class="indexterm" name="id33 9409"></a>474 <a class="indexterm" name="id33 9418"></a>475 <a class="indexterm" name="id33 9425"></a>476 <a class="indexterm" name="id33 9432"></a>473 <a class="indexterm" name="id337565"></a> 474 <a class="indexterm" name="id337574"></a> 475 <a class="indexterm" name="id337581"></a> 476 <a class="indexterm" name="id337588"></a> 477 477 Samba-3 has introduced a new ID mapping facility. One of the features of this facility is that it 478 478 allows greater flexibility in how user and group IDs are handled in respect to NT domain user and group … … 482 482 regarding its behavior. 483 483 </p></div><p> 484 <a class="indexterm" name="id33 9461"></a>485 <a class="indexterm" name="id33 9468"></a>486 <a class="indexterm" name="id33 9475"></a>484 <a class="indexterm" name="id337617"></a> 485 <a class="indexterm" name="id337624"></a> 486 <a class="indexterm" name="id337631"></a> 487 487 The use of the <a class="link" href="smb.conf.5.html#IDMAPBACKEND" target="_top">idmap backend = ldap:ldap://master.quenya.org</a> 488 488 option on a BDC only makes sense where ldapsam is used on a PDC. The purpose of an LDAP-based idmap backend is … … 490 490 and groups to common UID/GIDs. In other words, this option is generally intended for use on BDCs and on domain 491 491 member servers. 492 </p></div></div><div class="sect1" title="Common Errors"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id33 9500"></a>Common Errors</h2></div></div></div><p>493 <a class="indexterm" name="id33 9508"></a>492 </p></div></div><div class="sect1" title="Common Errors"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id337656"></a>Common Errors</h2></div></div></div><p> 493 <a class="indexterm" name="id337664"></a> 494 494 Domain control was a new area for Samba, but there are now many examples that we may refer to. 495 495 Updated information will be published as they become available and may be found in later Samba releases or … … 498 498 documents well tested and proven configuration examples. You can obtain a copy of this 499 499 <a class="ulink" href="http://www.samba.org/samba/docs/Samba3-ByExample.pdf" target="_top">book</a> for the Samba web site. 500 </p><div class="sect2" title="Machine Accounts Keep Expiring"><div class="titlepage"><div><div><h3 class="title"><a name="id33 9540"></a>Machine Accounts Keep Expiring</h3></div></div></div><p>501 <a class="indexterm" name="id33 9548"></a>502 <a class="indexterm" name="id33 9555"></a>503 <a class="indexterm" name="id33 9562"></a>504 <a class="indexterm" name="id33 9568"></a>500 </p><div class="sect2" title="Machine Accounts Keep Expiring"><div class="titlepage"><div><div><h3 class="title"><a name="id337696"></a>Machine Accounts Keep Expiring</h3></div></div></div><p> 501 <a class="indexterm" name="id337704"></a> 502 <a class="indexterm" name="id337711"></a> 503 <a class="indexterm" name="id337718"></a> 504 <a class="indexterm" name="id337724"></a> 505 505 This problem will occur when the passdb (SAM) files are copied from a central 506 506 server but the local BDC is acting as a PDC. This results in the application of … … 514 514 The solution is to use a more robust passdb backend, such as the ldapsam backend, setting up 515 515 a slave LDAP server for each BDC and a master LDAP server for the PDC. 516 </p></div><div class="sect2" title="Can Samba Be a Backup Domain Controller to an NT4 PDC?"><div class="titlepage"><div><div><h3 class="title"><a name="id33 9588"></a>Can Samba Be a Backup Domain Controller to an NT4 PDC?</h3></div></div></div><p>517 <a class="indexterm" name="id33 9596"></a>518 <a class="indexterm" name="id33 9605"></a>516 </p></div><div class="sect2" title="Can Samba Be a Backup Domain Controller to an NT4 PDC?"><div class="titlepage"><div><div><h3 class="title"><a name="id337744"></a>Can Samba Be a Backup Domain Controller to an NT4 PDC?</h3></div></div></div><p> 517 <a class="indexterm" name="id337752"></a> 518 <a class="indexterm" name="id337761"></a> 519 519 No. The native NT4 SAM replication protocols have not yet been fully implemented. 520 520 </p><p> 521 <a class="indexterm" name="id33 9614"></a>522 <a class="indexterm" name="id33 9621"></a>523 <a class="indexterm" name="id33 9627"></a>521 <a class="indexterm" name="id337770"></a> 522 <a class="indexterm" name="id337777"></a> 523 <a class="indexterm" name="id337783"></a> 524 524 Can I get the benefits of a BDC with Samba? Yes, but only to a Samba PDC.The 525 525 main reason for implementing a BDC is availability. If the PDC is a Samba 526 526 machine, a second Samba machine can be set up to service logon requests whenever 527 527 the PDC is down. 528 </p></div><div class="sect2" title="How Do I Replicate the smbpasswd File?"><div class="titlepage"><div><div><h3 class="title"><a name="id33 9639"></a>How Do I Replicate the smbpasswd File?</h3></div></div></div><p>529 <a class="indexterm" name="id33 9646"></a>530 <a class="indexterm" name="id33 9655"></a>531 <a class="indexterm" name="id33 9662"></a>528 </p></div><div class="sect2" title="How Do I Replicate the smbpasswd File?"><div class="titlepage"><div><div><h3 class="title"><a name="id337795"></a>How Do I Replicate the smbpasswd File?</h3></div></div></div><p> 529 <a class="indexterm" name="id337802"></a> 530 <a class="indexterm" name="id337811"></a> 531 <a class="indexterm" name="id337818"></a> 532 532 Replication of the smbpasswd file is sensitive. It has to be done whenever changes 533 533 to the SAM are made. Every user's password change is done in the smbpasswd file and 534 534 has to be replicated to the BDC. So replicating the smbpasswd file very often is necessary. 535 535 </p><p> 536 <a class="indexterm" name="id33 9674"></a>537 <a class="indexterm" name="id33 9681"></a>538 <a class="indexterm" name="id33 9688"></a>536 <a class="indexterm" name="id337830"></a> 537 <a class="indexterm" name="id337837"></a> 538 <a class="indexterm" name="id337844"></a> 539 539 As the smbpasswd file contains plaintext password equivalents, it must not be 540 540 sent unencrypted over the wire. The best way to set up smbpasswd replication from … … 543 543 <code class="literal">rsync</code> transfer without requiring the user to type a password. 544 544 </p><p> 545 <a class="indexterm" name="id33 9715"></a>546 <a class="indexterm" name="id33 9722"></a>545 <a class="indexterm" name="id337871"></a> 546 <a class="indexterm" name="id337878"></a> 547 547 As said a few times before, use of this method is broken and flawed. Machine trust 548 548 accounts will go out of sync, resulting in a broken domain. This method is 549 549 <span class="emphasis"><em>not</em></span> recommended. Try using LDAP instead. 550 </p></div><div class="sect2" title="Can I Do This All with LDAP?"><div class="titlepage"><div><div><h3 class="title"><a name="id33 9736"></a>Can I Do This All with LDAP?</h3></div></div></div><p>551 <a class="indexterm" name="id33 9744"></a>552 <a class="indexterm" name="id33 9751"></a>550 </p></div><div class="sect2" title="Can I Do This All with LDAP?"><div class="titlepage"><div><div><h3 class="title"><a name="id337892"></a>Can I Do This All with LDAP?</h3></div></div></div><p> 551 <a class="indexterm" name="id337900"></a> 552 <a class="indexterm" name="id337907"></a> 553 553 The simple answer is yes. Samba's pdb_ldap code supports binding to a replica 554 554 LDAP server and will also follow referrals and rebind to the master if it ever
Note:
See TracChangeset
for help on using the changeset viewer.