summaryrefslogtreecommitdiff
path: root/docs/htmldocs/Samba3-ByExample/upgrades.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/htmldocs/Samba3-ByExample/upgrades.html')
-rw-r--r--docs/htmldocs/Samba3-ByExample/upgrades.html342
1 files changed, 171 insertions, 171 deletions
diff --git a/docs/htmldocs/Samba3-ByExample/upgrades.html b/docs/htmldocs/Samba3-ByExample/upgrades.html
index 08366bcbfc..107ede4094 100644
--- a/docs/htmldocs/Samba3-ByExample/upgrades.html
+++ b/docs/htmldocs/Samba3-ByExample/upgrades.html
@@ -1,14 +1,14 @@
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 8. Updating Samba-3</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"><link rel="start" href="index.html" title="Samba-3 by Example"><link rel="up" href="DMSMig.html" title="Part II. Domain Members, Updating Samba and Migration"><link rel="prev" href="unixclients.html" title="Chapter 7. Adding Domain Member Servers and Clients"><link rel="next" href="ntmigration.html" title="Chapter 9. Migrating NT4 Domain to Samba-3"></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 8. Updating Samba-3</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="unixclients.html">Prev</a> </td><th width="60%" align="center">Part II. Domain Members, Updating Samba and Migration</th><td width="20%" align="right"> <a accesskey="n" href="ntmigration.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="upgrades"></a>Chapter 8. Updating Samba-3</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="upgrades.html#id2591231">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="upgrades.html#id2591327">Cautions and Notes</a></span></dt></dl></dd><dt><span class="sect1"><a href="upgrades.html#id2592656">Upgrading from Samba 1.x and 2.x to Samba-3</a></span></dt><dd><dl><dt><span class="sect2"><a href="upgrades.html#sbeug2">Samba 1.9.x and 2.x Versions Without LDAP</a></span></dt><dt><span class="sect2"><a href="upgrades.html#id2593024">Applicable to All Samba 2.x to Samba-3 Upgrades</a></span></dt><dt><span class="sect2"><a href="upgrades.html#id2593358">Samba-2.x with LDAP Support</a></span></dt></dl></dd><dt><span class="sect1"><a href="upgrades.html#id2593539">Updating a Samba-3 Installation</a></span></dt><dd><dl><dt><span class="sect2"><a href="upgrades.html#id2593650">Samba-3 to Samba-3 Updates on the Same Server</a></span></dt><dt><span class="sect2"><a href="upgrades.html#id2593853">Migrating Samba-3 to a New Server</a></span></dt><dt><span class="sect2"><a href="upgrades.html#id2594268">Migration of Samba Accounts to Active Directory</a></span></dt></dl></dd></dl></div><p>
-<a class="indexterm" name="id2591146"></a>
-<a class="indexterm" name="id2591153"></a>
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 8. Updating Samba-3</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="Samba-3 by Example"><link rel="up" href="DMSMig.html" title="Part II. Domain Members, Updating Samba and Migration"><link rel="prev" href="unixclients.html" title="Chapter 7. Adding Domain Member Servers and Clients"><link rel="next" href="ntmigration.html" title="Chapter 9. Migrating NT4 Domain to Samba-3"></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 8. Updating Samba-3</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="unixclients.html">Prev</a> </td><th width="60%" align="center">Part II. Domain Members, Updating Samba and Migration</th><td width="20%" align="right"> <a accesskey="n" href="ntmigration.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="upgrades"></a>Chapter 8. Updating Samba-3</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="upgrades.html#id2598126">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="upgrades.html#id2598223">Cautions and Notes</a></span></dt></dl></dd><dt><span class="sect1"><a href="upgrades.html#id2599552">Upgrading from Samba 1.x and 2.x to Samba-3</a></span></dt><dd><dl><dt><span class="sect2"><a href="upgrades.html#sbeug2">Samba 1.9.x and 2.x Versions Without LDAP</a></span></dt><dt><span class="sect2"><a href="upgrades.html#id2599920">Applicable to All Samba 2.x to Samba-3 Upgrades</a></span></dt><dt><span class="sect2"><a href="upgrades.html#id2600254">Samba-2.x with LDAP Support</a></span></dt></dl></dd><dt><span class="sect1"><a href="upgrades.html#id2600436">Updating a Samba-3 Installation</a></span></dt><dd><dl><dt><span class="sect2"><a href="upgrades.html#id2600546">Samba-3 to Samba-3 Updates on the Same Server</a></span></dt><dt><span class="sect2"><a href="upgrades.html#id2600749">Migrating Samba-3 to a New Server</a></span></dt><dt><span class="sect2"><a href="upgrades.html#id2601164">Migration of Samba Accounts to Active Directory</a></span></dt></dl></dd></dl></div><p>
+<a class="indexterm" name="id2598042"></a>
+<a class="indexterm" name="id2598049"></a>
It was a little difficult to select an appropriate title for this chapter.
From email messages on the Samba mailing lists it is clear that many people
consider the updating and upgrading of Samba to be a migration matter. Others
talk about migrating Samba servers when in fact the issue at hand is one of
installing a new Samba server to replace an older existing Samba server.
</p><p>
-<a class="indexterm" name="id2591170"></a>
-<a class="indexterm" name="id2591176"></a>
+<a class="indexterm" name="id2598065"></a>
+<a class="indexterm" name="id2598072"></a>
There has also been much talk about migration of Samba-3 from an smbpasswd
passdb backend to the use of the tdbsam or ldapsam facilities that are new
to Samba-3.
@@ -17,19 +17,19 @@ Clearly, there is not a great deal of clarity in the terminology that various
people apply to these modes by which Samba servers are updated. This is further
highlighted by an email posting that included the following neat remark:
</p><div class="blockquote"><blockquote class="blockquote"><p>
-<a class="indexterm" name="id2591198"></a>
+<a class="indexterm" name="id2598093"></a>
I like the &#8220;<span class="quote">net rpc vampire</span>&#8221; on NT4, but that to my surprise does
not seem to work against a Samba PDC and, if addressed in the Samba to Samba
context in either book, I could not find it.
</p></blockquote></div><p>
-<a class="indexterm" name="id2591219"></a>
+<a class="indexterm" name="id2598114"></a>
So in response to the significant request for these situations to be better
documented, this chapter has now been added. User contributions and documentation
of real-world experiences are a most welcome addition to this chapter.
-</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2591231"></a>Introduction</h2></div></div></div><p>
-<a class="indexterm" name="id2591238"></a>
-<a class="indexterm" name="id2591245"></a>
-<a class="indexterm" name="id2591252"></a>
+</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2598126"></a>Introduction</h2></div></div></div><p>
+<a class="indexterm" name="id2598134"></a>
+<a class="indexterm" name="id2598141"></a>
+<a class="indexterm" name="id2598148"></a>
A Windows network administrator explained in an email what changes he was
planning to make and followed with the question: &#8220;<span class="quote">Anyone done this
before?</span>&#8221; Many of us have upgraded and updated Samba without incident.
@@ -44,28 +44,28 @@ this precautionary step, users will punish an administrator who
fails to take adequate steps to avoid situations that may inflict lost
productivity on them.
</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
-<a class="indexterm" name="id2591283"></a>
-<a class="indexterm" name="id2591290"></a>
+<a class="indexterm" name="id2598179"></a>
+<a class="indexterm" name="id2598186"></a>
Samba makes it possible to upgrade and update configuration files, but it
is not possible to downgrade the configuration files. Please ensure that
all configuration and control files are backed up to permit a down-grade
in the rare event that this may be necessary.
</p></div><p>
-<a class="indexterm" name="id2591305"></a>
-<a class="indexterm" name="id2591312"></a>
+<a class="indexterm" name="id2598200"></a>
+<a class="indexterm" name="id2598208"></a>
It is prudent also to backup all data files on the server before attempting
to perform a major upgrade. Many administrators have experienced the consequences
of failure to take adequate precautions. So what is adequate? That is simple!
If data is lost during an upgrade or update and it can not be restored,
the precautions taken were inadequate. If a backup was not needed, but was available,
caution was on the side of the victor.
-</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2591327"></a>Cautions and Notes</h3></div></div></div><p>
+</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2598223"></a>Cautions and Notes</h3></div></div></div><p>
Someone once said, &#8220;<span class="quote">It is good to be sorry, but better never to need to be!</span>&#8221;
These are wise words of advice to those contemplating a Samba upgrade or update.
</p><p>
- <a class="indexterm" name="id2591344"></a>
- <a class="indexterm" name="id2591351"></a>
- <a class="indexterm" name="id2591358"></a>
+ <a class="indexterm" name="id2598240"></a>
+ <a class="indexterm" name="id2598247"></a>
+ <a class="indexterm" name="id2598254"></a>
This is as good a time as any to define the terms <code class="constant">upgrade</code> and
<code class="constant">update</code>. The term <code class="constant">upgrade</code> refers to
the installation of a version of Samba that is a whole generation or more ahead of
@@ -73,12 +73,12 @@ caution was on the side of the victor.
number. So far Samba has been released in generations 1.x, 2.x, 3.x, and currently 4.0
is in development.
</p><p>
- <a class="indexterm" name="id2591385"></a>
+ <a class="indexterm" name="id2598281"></a>
The term <code class="constant">update</code> refers to a minor version number installation
in place of one of the same generation. For example, updating from Samba 3.0.10 to 3.0.14
is an update. The move from Samba 2.0.7 to 3.0.14 is an upgrade.
</p><p>
- <a class="indexterm" name="id2591402"></a>
+ <a class="indexterm" name="id2598298"></a>
While the use of these terms is an exercise in semantics, what needs to be realized
is that there are major functional differences between a Samba 2.x release and a Samba
3.0.x release. Such differences may require a significantly different approach to
@@ -90,13 +90,13 @@ caution was on the side of the victor.
the greater the risk that noone will read it, but where there is no documentation,
noone can read it!</span>&#8221; While true, some documentation is an evil necessity.
It is hoped that this update to the documentation will avoid both extremes.
- </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2591431"></a>Security Identifiers (SIDs)</h4></div></div></div><p>
- <a class="indexterm" name="id2591439"></a>
- <a class="indexterm" name="id2591448"></a>
- <a class="indexterm" name="id2591454"></a>
- <a class="indexterm" name="id2591461"></a>
- <a class="indexterm" name="id2591467"></a>
- <a class="indexterm" name="id2591477"></a>
+ </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2598326"></a>Security Identifiers (SIDs)</h4></div></div></div><p>
+ <a class="indexterm" name="id2598334"></a>
+ <a class="indexterm" name="id2598344"></a>
+ <a class="indexterm" name="id2598350"></a>
+ <a class="indexterm" name="id2598357"></a>
+ <a class="indexterm" name="id2598364"></a>
+ <a class="indexterm" name="id2598373"></a>
Before the days of Windows NT and OS/2, every Windows and DOS networking client
that used the SMB protocols was an entirely autonomous entity. There was no concept
of a security identifier for a machine or a user outside of the username, the
@@ -104,46 +104,46 @@ caution was on the side of the victor.
in the same context as the way that the SID is used since the development of
Windows NT 3.10.
</p><p>
- <a class="indexterm" name="id2591496"></a>
- <a class="indexterm" name="id2591503"></a>
- <a class="indexterm" name="id2591510"></a>
- <a class="indexterm" name="id2591517"></a>
- <a class="indexterm" name="id2591523"></a>
- <a class="indexterm" name="id2591530"></a>
+ <a class="indexterm" name="id2598393"></a>
+ <a class="indexterm" name="id2598400"></a>
+ <a class="indexterm" name="id2598407"></a>
+ <a class="indexterm" name="id2598414"></a>
+ <a class="indexterm" name="id2598420"></a>
+ <a class="indexterm" name="id2598427"></a>
Versions of Samba prior to 1.9 did not make use of a SID. Instead they make exclusive use
of the username that is embedded in the SessionSetUpAndX component of the connection
setup process between a Windows client and an SMB/CIFS server.
</p><p>
- <a class="indexterm" name="id2591547"></a>
- <a class="indexterm" name="id2591553"></a>
- <a class="indexterm" name="id2591560"></a>
+ <a class="indexterm" name="id2598444"></a>
+ <a class="indexterm" name="id2598450"></a>
+ <a class="indexterm" name="id2598457"></a>
Around November 1997 support was added to Samba-1.9 to handle the Windows security
RPC-based protocols that implemented support for Samba to store a machine SID. This
information was stored in a file called <code class="filename">MACHINE.SID.</code>
</p><p>
- <a class="indexterm" name="id2591579"></a>
- <a class="indexterm" name="id2591586"></a>
- <a class="indexterm" name="id2591593"></a>
+ <a class="indexterm" name="id2598476"></a>
+ <a class="indexterm" name="id2598483"></a>
+ <a class="indexterm" name="id2598490"></a>
Within the lifetime of the early Samba 2.x series, the machine SID information was
relocated into a tdb file called <code class="filename">secrets.tdb</code>, which is where
it is still located in Samba 3.0.x along with other information that pertains to the
local machine and its role within a domain security context.
</p><p>
- <a class="indexterm" name="id2591614"></a>
- <a class="indexterm" name="id2591623"></a>
- <a class="indexterm" name="id2591632"></a>
- <a class="indexterm" name="id2591639"></a>
+ <a class="indexterm" name="id2598510"></a>
+ <a class="indexterm" name="id2598520"></a>
+ <a class="indexterm" name="id2598529"></a>
+ <a class="indexterm" name="id2598536"></a>
There are two types of SID, those pertaining to the machine itself and the domain to
which it may belong, and those pertaining to users and groups within the security
context of the local machine, in the case of standalone servers (SAS) and domain member
servers (DMS).
</p><p>
- <a class="indexterm" name="id2591654"></a>
- <a class="indexterm" name="id2591660"></a>
- <a class="indexterm" name="id2591667"></a>
- <a class="indexterm" name="id2591674"></a>
- <a class="indexterm" name="id2591681"></a>
- <a class="indexterm" name="id2591687"></a>
+ <a class="indexterm" name="id2598550"></a>
+ <a class="indexterm" name="id2598557"></a>
+ <a class="indexterm" name="id2598564"></a>
+ <a class="indexterm" name="id2598570"></a>
+ <a class="indexterm" name="id2598577"></a>
+ <a class="indexterm" name="id2598584"></a>
When the Samba <code class="literal">smbd</code> daemon is first started, if the <code class="filename">secrets.tdb</code>
file does not exist, it is created at the first client connection attempt. If this file does
exist, <code class="literal">smbd</code> checks that there is a machine SID (if it is a domain controller,
@@ -153,7 +153,7 @@ caution was on the side of the victor.
manner. This means that each time it is generated for a particular combination of machine name
(hostname) and domain name (workgroup), it will be different.
</p><p>
- <a class="indexterm" name="id2591737"></a>
+ <a class="indexterm" name="id2598634"></a>
The SID is the key used by MS Windows networking for all networking operations. This means
that when the machine or domain SID changes, all security-encoded objects such as profiles
and ACLs may become unusable.
@@ -162,22 +162,22 @@ caution was on the side of the victor.
the event of a change of hostname (machine name) or domain name (workgroup) the SID can
be restored to its previous value.
</p></div><p>
- <a class="indexterm" name="id2591758"></a>
- <a class="indexterm" name="id2591765"></a>
- <a class="indexterm" name="id2591772"></a>
- <a class="indexterm" name="id2591778"></a>
- <a class="indexterm" name="id2591785"></a>
- <a class="indexterm" name="id2591792"></a>
- <a class="indexterm" name="id2591799"></a>
- <a class="indexterm" name="id2591806"></a>
- <a class="indexterm" name="id2591813"></a>
- <a class="indexterm" name="id2591819"></a>
+ <a class="indexterm" name="id2598655"></a>
+ <a class="indexterm" name="id2598662"></a>
+ <a class="indexterm" name="id2598668"></a>
+ <a class="indexterm" name="id2598675"></a>
+ <a class="indexterm" name="id2598682"></a>
+ <a class="indexterm" name="id2598689"></a>
+ <a class="indexterm" name="id2598696"></a>
+ <a class="indexterm" name="id2598702"></a>
+ <a class="indexterm" name="id2598709"></a>
+ <a class="indexterm" name="id2598716"></a>
In Samba-3 on a domain controller (PDC or BDC), the domain name controls the domain
SID. On all prior versions the hostname (computer name, or NetBIOS name) controlled
the SID. On a standalone server the hostname still controls the SID.
</p><p>
- <a class="indexterm" name="id2591833"></a>
- <a class="indexterm" name="id2591842"></a>
+ <a class="indexterm" name="id2598730"></a>
+ <a class="indexterm" name="id2598739"></a>
The local machine SID can be backed up using this procedure (Samba-3):
</p><pre class="screen">
<code class="prompt">root# </code> net getlocalsid &gt; /etc/samba/my-local-SID
@@ -200,7 +200,7 @@ SID for domain FRODO is: S-1-5-21-726309263-4128913605-1168186429
ability to read the older tdb file and to perform an in-situ update to the latest tdb format.
This is not a reversible process it is a one-way upgrade.
</p><p>
- <a class="indexterm" name="id2591931"></a>
+ <a class="indexterm" name="id2598827"></a>
In the course of the Samba 2.0.x series the <code class="literal">smbpasswd</code> was modified to
permit the domain SID to be captured to the <code class="filename">secrets.tdb</code> file by executing:
</p><pre class="screen">
@@ -217,8 +217,8 @@ SID for domain FRODO is: S-1-5-21-726309263-4128913605-1168186429
<code class="prompt">root# </code> smbpasswd -W S-1-5-21-726309263-4128913605-1168186429
</pre><p>
</p><p>
- <a class="indexterm" name="id2592004"></a>
- <a class="indexterm" name="id2592011"></a>
+ <a class="indexterm" name="id2598901"></a>
+ <a class="indexterm" name="id2598908"></a>
Domain security information, which includes the domain SID, can be obtained from Samba-2.2.x
systems by executing:
</p><pre class="screen">
@@ -237,9 +237,9 @@ Num local groups: 0
It is a very good practice to store this SID information in a safely kept file, just in
case it is ever needed at a later date.
</p><p>
- <a class="indexterm" name="id2592058"></a>
- <a class="indexterm" name="id2592065"></a>
- <a class="indexterm" name="id2592072"></a>
+ <a class="indexterm" name="id2598954"></a>
+ <a class="indexterm" name="id2598961"></a>
+ <a class="indexterm" name="id2598968"></a>
Take note that the domain SID is used extensively in Samba. Where LDAP is used for the
<em class="parameter"><code>passdb backend</code></em>, all user, group, and trust accounts are encoded
with the domain SID. This means that if the domain SID changes for any reason, the entire
@@ -250,9 +250,9 @@ Num local groups: 0
<code class="prompt">root# </code> slapcat -v -l filename.ldif
</pre><p>
</p><p>
- <a class="indexterm" name="id2592108"></a>
- <a class="indexterm" name="id2592114"></a>
- <a class="indexterm" name="id2592121"></a>
+ <a class="indexterm" name="id2599004"></a>
+ <a class="indexterm" name="id2599011"></a>
+ <a class="indexterm" name="id2599017"></a>
When the domain SID has changed, roaming profiles cease to be functional. The recovery
of roaming profiles necessitates resetting of the domain portion of the user SID
that owns the profile. This is encoded in the <code class="filename">NTUser.DAT</code> and can be
@@ -261,9 +261,9 @@ Num local groups: 0
complain to the Samba Team if this utility is missing; that issue that must be
addressed to the creator of the RPM package. The Samba Team do their best to make
available all the tools needed to manage a Samba-based Windows networking environment.
- </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2592158"></a>Change of hostname</h4></div></div></div><p>
- <a class="indexterm" name="id2592166"></a>
- <a class="indexterm" name="id2592175"></a>
+ </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2599055"></a>Change of hostname</h4></div></div></div><p>
+ <a class="indexterm" name="id2599063"></a>
+ <a class="indexterm" name="id2599072"></a>
Samba uses two methods by which the primary NetBIOS machine name (also known as a computer
name or the hostname) may be determined: If the <code class="filename">smb.conf</code> file contains a
<em class="parameter"><code>netbios name</code></em> entry, its value will be used directly. In the absence
@@ -277,13 +277,13 @@ Num local groups: 0
Do NOT change the hostname or the <em class="parameter"><code>netbios name</code></em>. If this
is changed, be sure to reset the machine SID to the original setting. Otherwise
there may be serious interoperability and/or operational problems.
- </p></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2592224"></a>Change of Workgroup (Domain) Name</h4></div></div></div><p>
- <a class="indexterm" name="id2592232"></a>
+ </p></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2599120"></a>Change of Workgroup (Domain) Name</h4></div></div></div><p>
+ <a class="indexterm" name="id2599129"></a>
The domain name of a Samba server is identical to the workgroup name and is
set in the <code class="filename">smb.conf</code> file using the <em class="parameter"><code>workgroup</code></em> parameter.
This has been consistent throughout the history of Samba and across all versions.
</p><p>
- <a class="indexterm" name="id2592257"></a>
+ <a class="indexterm" name="id2599154"></a>
Be aware that when the workgroup name is changed, a new SID will be generated.
The old domain SID can be reset using the procedure outlined earlier in this chapter.
</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="sbeug1"></a>Location of config files</h4></div></div></div><p>
@@ -292,7 +292,7 @@ Num local groups: 0
have varied the location of the Samba control files. This has led to some confusion
for network administrators.
</p><p>
- <a class="indexterm" name="id2592289"></a>
+ <a class="indexterm" name="id2599185"></a>
The Samba 1.9.x <code class="filename">smb.conf</code> file may be found either in the <code class="filename">/etc</code>
directory or in <code class="filename">/usr/local/samba/lib</code>.
</p><p>
@@ -300,12 +300,12 @@ Num local groups: 0
on Linux systems to the <code class="filename">/etc/samba</code> directory where it
remains located also for Samba 3.0.x installations.
</p><p>
- <a class="indexterm" name="id2592335"></a>
+ <a class="indexterm" name="id2599231"></a>
Samba 2.x introduced the <code class="filename">secrets.tdb</code> file that is also stored in the
<code class="filename">/etc/samba</code> directory, or in the <code class="filename">/usr/local/samba/lib</code>
directory subsystem.
</p><p>
- <a class="indexterm" name="id2592365"></a>
+ <a class="indexterm" name="id2599261"></a>
The location at which <code class="literal">smbd</code> expects to find all configuration and control
files is determined at the time of compilation of Samba. For versions of Samba prior to
3.0, one way to find the expected location of these files is to execute:
@@ -317,7 +317,7 @@ Num local groups: 0
Note: The <code class="literal">smbd</code> executable may be located in the path
<code class="filename">/usr/local/samba/sbin</code>.
</p><p>
- <a class="indexterm" name="id2592423"></a>
+ <a class="indexterm" name="id2599319"></a>
Samba-3 provides a neat new way to track the location of all control files as well as to
find the compile-time options used as the Samba package was built. Here is how the dark
secrets of the internals of the location of control files within Samba executables can
@@ -348,37 +348,37 @@ Paths:
...
</pre><p>
</p><p>
- <a class="indexterm" name="id2592460"></a>
+ <a class="indexterm" name="id2599356"></a>
It is important that both the <code class="filename">smb.conf</code> file and the <code class="filename">secrets.tdb</code>
be backed up before attempting any upgrade. The <code class="filename">secrets.tdb</code> file
is version-encoded, and therefore a newer version may not work with an older version
of Samba. A backup means that it is always possible to revert a failed or problematic
upgrade.
- </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2592490"></a>International Language Support</h4></div></div></div><p>
- <a class="indexterm" name="id2592498"></a>
- <a class="indexterm" name="id2592505"></a>
- <a class="indexterm" name="id2592512"></a>
- <a class="indexterm" name="id2592519"></a>
+ </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2599386"></a>International Language Support</h4></div></div></div><p>
+ <a class="indexterm" name="id2599395"></a>
+ <a class="indexterm" name="id2599401"></a>
+ <a class="indexterm" name="id2599408"></a>
+ <a class="indexterm" name="id2599415"></a>
Samba-2.x had no support for Unicode; instead, all national language character-set support in file names
was done using particular locale codepage mapping techniques. Samba-3 supports Unicode in file names, thus
providing true internationalization support.
</p><p>
- <a class="indexterm" name="id2592534"></a>
+ <a class="indexterm" name="id2599430"></a>
Non-English users whose national language character set has special characters and who upgrade naively will
find that many files that have the special characters in the file name will see them garbled and jumbled up.
This typically happens with umlauts and accents because these characters were particular to the codepage
that was in use with Samba-2.x using an 8-bit encoding scheme.
</p><p>
- <a class="indexterm" name="id2592550"></a>
+ <a class="indexterm" name="id2599447"></a>
Files that are created with Samba-3 will use UTF-8 encoding. Should the file system ever end up with a
mix of codepage (unix charset)-encoded file names and UTF-8-encoded file names, the mess will take some
effort to set straight.
</p><p>
- <a class="indexterm" name="id2592565"></a>
+ <a class="indexterm" name="id2599461"></a>
A very helpful tool is available from Bjorn Jacke's <a class="ulink" href="http://j3e.de/linux/convmv/" target="_top">convmv</a>
work. Convmv is a tool that can be used to convert file and directory names from one encoding method to
another. The most common use for this tool is to convert locale-encoded files to UTF-8 Unicode encoding.
- </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2592584"></a>Updates and Changes in Idealx smbldap-tools</h4></div></div></div><p>
+ </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2599480"></a>Updates and Changes in Idealx smbldap-tools</h4></div></div></div><p>
The smbldap-tools have been maturing rapidly over the past year. With maturation comes change.
The location of the <code class="filename">smbldap.conf</code> and the <code class="filename">smbldap_bind.conf</code>
configuration files have been moved from the directory <code class="filename">/etc/smbldap-tools</code> to
@@ -392,7 +392,7 @@ Paths:
<code class="constant">sambaDomainName</code>. Anyone who updates from an older version to the
current release should note that the information stored under <code class="constant">NextFreeUnixId</code>
must now be relocated to the DIT object <code class="constant">sambaDomainName</code>.
- </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2592656"></a>Upgrading from Samba 1.x and 2.x to Samba-3</h2></div></div></div><p>
+ </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2599552"></a>Upgrading from Samba 1.x and 2.x to Samba-3</h2></div></div></div><p>
Sites that are being upgraded from Samba-2 (or earlier versions) to Samba-3
may experience little difficulty or may require a lot of effort, depending
on the complexity of the configuration. Samba-1.9.x upgrades to Samba-3 will
@@ -405,10 +405,10 @@ Samba-2.x could be compiled with LDAP support.
</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sbeug2"></a>Samba 1.9.x and 2.x Versions Without LDAP</h3></div></div></div><p>
Where it is necessary to upgrade an old Samba installation to Samba-3,
the following procedure can be followed:
- </p><div class="procedure"><a name="id2592694"></a><p class="title"><b>Procedure 8.1. Upgrading from a Pre-Samba-3 Version</b></p><ol type="1"><li><p>
- <a class="indexterm" name="id2592705"></a>
- <a class="indexterm" name="id2592712"></a>
- <a class="indexterm" name="id2592718"></a>
+ </p><div class="procedure"><a name="id2599590"></a><p class="title"><b>Procedure 8.1. Upgrading from a Pre-Samba-3 Version</b></p><ol type="1"><li><p>
+ <a class="indexterm" name="id2599601"></a>
+ <a class="indexterm" name="id2599608"></a>
+ <a class="indexterm" name="id2599615"></a>
Stop Samba. This can be done using the appropriate system tool
that is particular for each operating system or by executing the
<code class="literal">kill</code> command on <code class="literal">smbd</code>,
@@ -423,10 +423,10 @@ Samba-2.x could be compiled with LDAP support.
Find the location of the <code class="filename">secrets.tdb</code> file and
back it up to a safe location.
</p></li><li><p>
- <a class="indexterm" name="id2592800"></a>
- <a class="indexterm" name="id2592807"></a>
- <a class="indexterm" name="id2592814"></a>
- <a class="indexterm" name="id2592821"></a>
+ <a class="indexterm" name="id2599696"></a>
+ <a class="indexterm" name="id2599703"></a>
+ <a class="indexterm" name="id2599710"></a>
+ <a class="indexterm" name="id2599717"></a>
Find the location of the lock directory. This is the directory
in which Samba stores all its tdb control files. The default
location used by the Samba Team is in
@@ -437,7 +437,7 @@ Samba-2.x could be compiled with LDAP support.
<code class="filename">/var/lib/samba</code> directory. Copy all the
tdb files to a safe location.
</p></li><li><p>
- <a class="indexterm" name="id2592859"></a>
+ <a class="indexterm" name="id2599755"></a>
It is now safe to upgrade the Samba installation. On Linux systems
it is not necessary to remove the Samba RPMs because a simple
upgrade installation will automatically remove the old files.
@@ -456,7 +456,7 @@ Samba-2.x could be compiled with LDAP support.
</p></li><li><p>
Do not change the workgroup name.
</p></li><li><p>
- <a class="indexterm" name="id2592914"></a>
+ <a class="indexterm" name="id2599810"></a>
Execute the <code class="literal">testparm</code> to validate the <code class="filename">smb.conf</code> file.
This process will flag any parameters that are no longer supported.
It will also flag configuration settings that may be in conflict.
@@ -468,67 +468,67 @@ Samba-2.x could be compiled with LDAP support.
<code class="prompt">root# </code> cd /etc/samba
<code class="prompt">root# </code> testparm -s smb.conf.master &gt; smb.conf
</pre><p>
- <a class="indexterm" name="id2592972"></a>
+ <a class="indexterm" name="id2599868"></a>
The resulting <code class="filename">smb.conf</code> file will be stripped of all comments
and of all nonconforming configuration settings.
</p></li><li><p>
- <a class="indexterm" name="id2592993"></a>
+ <a class="indexterm" name="id2599889"></a>
It is now safe to start Samba using the appropriate system tool.
Alternately, it is possible to just execute <code class="literal">nmbd</code>,
<code class="literal">smbd</code>, and <code class="literal">winbindd</code> for the command
line while logged in as the root user.
- </p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2593024"></a>Applicable to All Samba 2.x to Samba-3 Upgrades</h3></div></div></div><p>
- <a class="indexterm" name="id2593032"></a>
- <a class="indexterm" name="id2593039"></a>
- <a class="indexterm" name="id2593046"></a>
+ </p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2599920"></a>Applicable to All Samba 2.x to Samba-3 Upgrades</h3></div></div></div><p>
+ <a class="indexterm" name="id2599929"></a>
+ <a class="indexterm" name="id2599935"></a>
+ <a class="indexterm" name="id2599942"></a>
Samba 2.x servers that were running as a domain controller (PDC)
require changes to the configuration of the scripting interface
tools that Samba uses to perform OS updates for
users, groups, and trust accounts (machines and interdomain).
</p><p>
- <a class="indexterm" name="id2593060"></a>
+ <a class="indexterm" name="id2599956"></a>
The following parameters are new to Samba-3 and should be correctly configured.
Please refer to <a class="link" href="secure.html" title="Chapter 3. Secure Office Networking">&#8220;Secure Office Networking&#8221;</a> through <a class="link" href="2000users.html" title="Chapter 6. A Distributed 2000-User Network">&#8220;A Distributed 2000-User Network&#8221;</a>
in this book for examples of use of the new parameters shown here:
- <a class="indexterm" name="id2593081"></a>
- <a class="indexterm" name="id2593088"></a>
- <a class="indexterm" name="id2593095"></a>
- <a class="indexterm" name="id2593102"></a>
- <a class="indexterm" name="id2593109"></a>
- <a class="indexterm" name="id2593116"></a>
- <a class="indexterm" name="id2593123"></a>
+ <a class="indexterm" name="id2599978"></a>
+ <a class="indexterm" name="id2599984"></a>
+ <a class="indexterm" name="id2599991"></a>
+ <a class="indexterm" name="id2599998"></a>
+ <a class="indexterm" name="id2600005"></a>
+ <a class="indexterm" name="id2600012"></a>
+ <a class="indexterm" name="id2600019"></a>
</p><p>
</p><table class="simplelist" border="0" summary="Simple list"><tr><td><p>add group script</p></td></tr><tr><td><p>add machine script</p></td></tr><tr><td><p>add user to group script</p></td></tr><tr><td><p>delete group script</p></td></tr><tr><td><p>delete user from group script</p></td></tr><tr><td><p>passdb backend</p></td></tr><tr><td><p>set primary group script</p></td></tr></table><p>
</p><p>
- <a class="indexterm" name="id2593175"></a>
- <a class="indexterm" name="id2593182"></a>
+ <a class="indexterm" name="id2600071"></a>
+ <a class="indexterm" name="id2600078"></a>
The <em class="parameter"><code>add machine script</code></em> functionality was previously
handled by the <em class="parameter"><code>add user script</code></em>, which in Samba-3 is
used exclusively to add user accounts.
</p><p>
- <a class="indexterm" name="id2593206"></a>
- <a class="indexterm" name="id2593213"></a>
- <a class="indexterm" name="id2593220"></a>
- <a class="indexterm" name="id2593227"></a>
- <a class="indexterm" name="id2593234"></a>
- <a class="indexterm" name="id2593241"></a>
- <a class="indexterm" name="id2593247"></a>
- <a class="indexterm" name="id2593254"></a>
- <a class="indexterm" name="id2593261"></a>
+ <a class="indexterm" name="id2600103"></a>
+ <a class="indexterm" name="id2600110"></a>
+ <a class="indexterm" name="id2600116"></a>
+ <a class="indexterm" name="id2600123"></a>
+ <a class="indexterm" name="id2600130"></a>
+ <a class="indexterm" name="id2600137"></a>
+ <a class="indexterm" name="id2600144"></a>
+ <a class="indexterm" name="id2600150"></a>
+ <a class="indexterm" name="id2600157"></a>
Where the <em class="parameter"><code>passdb backend</code></em> used is either <code class="constant">smbpasswd</code>
(the default) or the new <code class="constant">tdbsam</code>, the system interface scripts
are typically used. These involve use of OS tools such as <code class="literal">useradd</code>,
<code class="literal">usermod</code>, <code class="literal">userdel</code>, <code class="literal">groupadd</code>,
<code class="literal">groupmod</code>, <code class="literal">groupdel</code>, and so on.
</p><p>
- <a class="indexterm" name="id2593322"></a>
- <a class="indexterm" name="id2593328"></a>
- <a class="indexterm" name="id2593335"></a>
+ <a class="indexterm" name="id2600218"></a>
+ <a class="indexterm" name="id2600225"></a>
+ <a class="indexterm" name="id2600231"></a>
Where the <em class="parameter"><code>passdb backend</code></em> makes use of an LDAP directory,
it is necessary either to use the <code class="constant">smbldap-tools</code> provided
by Idealx or to use an alternate toolset provided by a third
party or else home-crafted to manage the LDAP directory accounts.
- </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2593358"></a>Samba-2.x with LDAP Support</h3></div></div></div><p>
+ </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2600254"></a>Samba-2.x with LDAP Support</h3></div></div></div><p>
Samba version 2.x could be compiled for use either with or without LDAP.
The LDAP control settings in the <code class="filename">smb.conf</code> file in this old version are
completely different (and less complete) than they are with Samba-3. This
@@ -538,8 +538,8 @@ Samba-2.x could be compiled with LDAP support.
Follow the procedure outlined in <a class="link" href="upgrades.html#sbeug2" title="Samba 1.9.x and 2.x Versions Without LDAP">&#8220;Samba 1.9.x and 2.x Versions Without LDAP&#8221;</a> to affect a migration
of all files to the correct locations.
</p><p>
- <a class="indexterm" name="id2593392"></a>
- <a class="indexterm" name="id2593399"></a>
+ <a class="indexterm" name="id2600288"></a>
+ <a class="indexterm" name="id2600295"></a>
The Samba SAM schema required for Samba-3 is significantly different from that
used with Samba 2.x. This means that the LDAP directory must be updated
using the procedure outlined in the Samba WHATSNEW.txt file that accompanies
@@ -694,19 +694,19 @@ in the list.
Due to a limitation in Samba's smb.conf parsing, you should not surround
the DN's with quotation marks.
</pre><p>
- </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2593539"></a>Updating a Samba-3 Installation</h2></div></div></div><p>
+ </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2600436"></a>Updating a Samba-3 Installation</h2></div></div></div><p>
The key concern in this section is to deal with the changes that have been
affected in Samba-3 between the Samba-3.0.0 release and the current update.
Network administrators have expressed concerns over the steps that should be
taken to update Samba-3 versions.
</p><p>
-<a class="indexterm" name="id2593555"></a>
+<a class="indexterm" name="id2600451"></a>
The information in <a class="link" href="upgrades.html#sbeug1" title="Location of config files">&#8220;Location of config files&#8221;</a> would not be necessary if every
person who has ever produced Samba executable (binary) files could agree on
the preferred location of the <code class="filename">smb.conf</code> file and other Samba control files.
Clearly, such agreement is further away than a pipedream.
</p><p>
-<a class="indexterm" name="id2593581"></a>
+<a class="indexterm" name="id2600477"></a>
Vendors and packagers who produce Samba binary installable packages do not,
as a rule, use the default paths used by the Samba-Team for the location of
the binary files, the <code class="filename">smb.conf</code> file, and the Samba control files (tdb's
@@ -719,54 +719,54 @@ by the Samba-Team. This can lead to confusion and to much lost time as the
uninformed administrator deals with apparent failure of the update to take
effect.
</p><p>
-<a class="indexterm" name="id2593615"></a>
+<a class="indexterm" name="id2600511"></a>
The best advice for those lacking in code compilation experience is to use
only vendor (or Samba-Team) provided binary packages. The Samba packages
that are provided by the Samba-Team are generally built to use file paths
that are compatible with the original OS vendor's practices.
</p><p>
-<a class="indexterm" name="id2593630"></a>
-<a class="indexterm" name="id2593637"></a>
+<a class="indexterm" name="id2600526"></a>
+<a class="indexterm" name="id2600533"></a>
If you are not sure whether a binary package complies with the OS
vendor's practices, it is better to ask the package maintainer via
email than to waste much time dealing with the nuances.
Alternately, just diagnose the paths specified by the binary files following
the procedure outlined above.
-</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2593650"></a>Samba-3 to Samba-3 Updates on the Same Server</h3></div></div></div><p>
+</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2600546"></a>Samba-3 to Samba-3 Updates on the Same Server</h3></div></div></div><p>
The guidance in this section deals with updates to an existing
Samba-3 server installation.
- </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2593661"></a>Updating from Samba Versions Earlier than 3.0.5</h4></div></div></div><p>
+ </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600557"></a>Updating from Samba Versions Earlier than 3.0.5</h4></div></div></div><p>
With the provision that the binary Samba-3 package has been built
with the same path and feature settings as the existing Samba-3
package that is being updated, an update of Samba-3 versions 3.0.0
through 3.0.4 can be updated to 3.0.5 without loss of functionality
and without need to change either the <code class="filename">smb.conf</code> file or, where
used, the LDAP schema.
- </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2593683"></a>Updating from Samba Versions between 3.0.6 and 3.0.10</h4></div></div></div><p>
- <a class="indexterm" name="id2593692"></a>
- <a class="indexterm" name="id2593699"></a>
+ </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600580"></a>Updating from Samba Versions between 3.0.6 and 3.0.10</h4></div></div></div><p>
+ <a class="indexterm" name="id2600588"></a>
+ <a class="indexterm" name="id2600595"></a>
When updating versions of Samba-3 prior to 3.0.6 to 3.0.6 through 3.0.10,
it is necessary only to update the LDAP schema (where LDAP is used).
Always use the LDAP schema file that is shipped with the latest Samba-3
update.
</p><p>
- <a class="indexterm" name="id2593715"></a>
- <a class="indexterm" name="id2593722"></a>
- <a class="indexterm" name="id2593729"></a>
+ <a class="indexterm" name="id2600611"></a>
+ <a class="indexterm" name="id2600618"></a>
+ <a class="indexterm" name="id2600625"></a>
Samba-3.0.6 introduced the ability to remember the last <span class="emphasis"><em>n</em></span> number
of passwords a user has used. This information will work only with
the <code class="constant">tdbsam</code> and <code class="constant">ldapsam</code>
<em class="parameter"><code>passdb backend</code></em> facilities.
</p><p>
After updating the LDAP schema, do not forget to re-index the LDAP database.
- </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2593762"></a>Updating from Samba Versions after 3.0.6 to a Current Release</h4></div></div></div><p>
- <a class="indexterm" name="id2593770"></a>
+ </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600658"></a>Updating from Samba Versions after 3.0.6 to a Current Release</h4></div></div></div><p>
+ <a class="indexterm" name="id2600667"></a>
Samba-3.0.8 introduced changes in how the <em class="parameter"><code>username map</code></em>
behaves. It also included a change in behavior of <code class="literal">winbindd</code>.
Please refer to the man page for <code class="filename">smb.conf</code> before implementing any update
from versions prior to 3.0.8 to a current version.
</p><p>
- <a class="indexterm" name="id2593802"></a>
+ <a class="indexterm" name="id2600699"></a>
In Samba-3.0.11 a new privileges interface was implemented. Please
refer to <a class="link" href="happy.html#sbehap-ppc" title="Addition of Machines to the Domain">&#8220;Addition of Machines to the Domain&#8221;</a> for information regarding this new
feature. It is not necessary to implement the privileges interface, but it
@@ -788,12 +788,12 @@ and all machine and inter-domain trust-accounts must be located
below the machine suffix. Previous Samba releases would fall
back to searching the 'ldap suffix' in some cases.
</pre><p>
- </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2593853"></a>Migrating Samba-3 to a New Server</h3></div></div></div><p>
+ </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2600749"></a>Migrating Samba-3 to a New Server</h3></div></div></div><p>
The two most likely candidates for replacement of a server are
domain member servers and domain controllers. Each needs to be
handled slightly differently.
- </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2593865"></a>Replacing a Domain Member Server</h4></div></div></div><p>
- <a class="indexterm" name="id2593873"></a>
+ </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600761"></a>Replacing a Domain Member Server</h4></div></div></div><p>
+ <a class="indexterm" name="id2600770"></a>
Replacement of a domain member server should be done
using the same procedure as outlined in <a class="link" href="unixclients.html" title="Chapter 7. Adding Domain Member Servers and Clients">&#8220;Adding Domain Member Servers and Clients&#8221;</a>.
</p><p>
@@ -802,12 +802,12 @@ back to searching the 'ldap suffix' in some cases.
that the new server be renamed to that of the old server. This will
change its SID and will necessitate rejoining to the domain.
</p><p>
- <a class="indexterm" name="id2593899"></a>
- <a class="indexterm" name="id2593905"></a>
- <a class="indexterm" name="id2593912"></a>
- <a class="indexterm" name="id2593919"></a>
- <a class="indexterm" name="id2593926"></a>
- <a class="indexterm" name="id2593932"></a>
+ <a class="indexterm" name="id2600795"></a>
+ <a class="indexterm" name="id2600802"></a>
+ <a class="indexterm" name="id2600808"></a>
+ <a class="indexterm" name="id2600815"></a>
+ <a class="indexterm" name="id2600822"></a>
+ <a class="indexterm" name="id2600829"></a>
Following a change of hostname (NetBIOS name) it is a good idea on all servers
to shut down the Samba <code class="literal">smbd</code>, <code class="literal">nmbd</code>, and
<code class="literal">winbindd</code> services, delete the <code class="filename">wins.dat</code>
@@ -817,10 +817,10 @@ back to searching the 'ldap suffix' in some cases.
resolution problems. These problems usually clear within 45 minutes of a name
change, but can persist for a longer period of time.
</p><p>
- <a class="indexterm" name="id2593980"></a>
- <a class="indexterm" name="id2593986"></a>
- <a class="indexterm" name="id2593993"></a>
- <a class="indexterm" name="id2594000"></a>
+ <a class="indexterm" name="id2600876"></a>
+ <a class="indexterm" name="id2600883"></a>
+ <a class="indexterm" name="id2600890"></a>
+ <a class="indexterm" name="id2600896"></a>
If the old domain member server had local accounts, it is necessary to create
on the new domain member server the same accounts with the same UID and GID
for each account. Where the <em class="parameter"><code>passdb backend</code></em> database
@@ -831,13 +831,13 @@ back to searching the 'ldap suffix' in some cases.
<code class="filename">/etc/group</code> files. In this case, be sure to copy these
account entries to the new target server.
</p><p>
- <a class="indexterm" name="id2594048"></a>
+ <a class="indexterm" name="id2600945"></a>
Where the user accounts for both UNIX and Samba are stored in LDAP, the new
target server must be configured to use the <code class="literal">nss_ldap</code> tool set.
This will automatically ensure that the appropriate user entities are
available on the new server.
- </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2594067"></a>Replacing a Domain Controller</h4></div></div></div><p>
- <a class="indexterm" name="id2594075"></a>
+ </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600964"></a>Replacing a Domain Controller</h4></div></div></div><p>
+ <a class="indexterm" name="id2600972"></a>
In the past, people who replaced a Windows NT4 domain controller typically
installed a new server, created printers and file shares on it, then migrate across
all data that was destined to reside on it. The same can of course be done with
@@ -890,10 +890,10 @@ back to searching the 'ldap suffix' in some cases.
or the <em class="parameter"><code>netbios name</code></em> is set to the original server name, Samba
should correctly pick up the original SID and preserve all other settings. It is
sound advice to validate this before turning the system over to users.
- </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2594268"></a>Migration of Samba Accounts to Active Directory</h3></div></div></div><p>
+ </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2601164"></a>Migration of Samba Accounts to Active Directory</h3></div></div></div><p>
Yes, it works. The Windows ADMT tool can be used to migrate Samba accounts
to MS Active Directory. There are a few pitfalls to be aware of:
- </p><div class="procedure"><a name="id2594280"></a><p class="title"><b>Procedure 8.2. Migration to Active Directory</b></p><ol type="1"><li><p>
+ </p><div class="procedure"><a name="id2601176"></a><p class="title"><b>Procedure 8.2. Migration to Active Directory</b></p><ol type="1"><li><p>
Administrator password must be THE SAME on the Samba server,
the 2003 ADS, and the local Administrator account on the workstations.
Perhaps this goes without saying, but there needs to be an account
@@ -914,7 +914,7 @@ back to searching the 'ldap suffix' in some cases.
Disable the Windows Firewall on all workstations. Otherwise,
workstations won't be migrated to the new domain.
</p></li><li><p>
- <a class="indexterm" name="id2594346"></a>
+ <a class="indexterm" name="id2601242"></a>
When migrating machines, always test first (using ADMT's test mode)
and satisfy all errors before committing the migration. Note that the
test will always fail, because the machine will not have been actually
@@ -922,7 +922,7 @@ back to searching the 'ldap suffix' in some cases.
failure was due to a problem or simply to the fact that it was just
a test.
</p></li></ol></div><p>
- <a class="indexterm" name="id2594363"></a>
+ <a class="indexterm" name="id2601260"></a>
There are some significant benefits of using the ADMT, besides just
migrating user accounts. ADMT can be found on the Windows 2003 CD.
</p><div class="itemizedlist"><ul type="disc"><li><p>