Initial import
[samba] / docs / htmldocs / Samba3-HOWTO / upgrading-to-3.0.html
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 34. Upgrading from Samba-2.x to Samba-3.0.20</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><link rel="start" href="index.html" title="The Official Samba-3 HOWTO and Reference Guide"><link rel="up" href="migration.html" title="Part IV. Migration and Updating"><link rel="prev" href="migration.html" title="Part IV. Migration and Updating"><link rel="next" href="NT4Migration.html" title="Chapter 35. Migration from NT4 PDC to Samba-3 PDC"></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 34. Upgrading from Samba-2.x to Samba-3.0.20</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="migration.html">Prev</a> </td><th width="60%" align="center">Part IV. Migration and Updating</th><td width="20%" align="right"> <a accesskey="n" href="NT4Migration.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="upgrading-to-3.0"></a>Chapter 34. Upgrading from Samba-2.x to Samba-3.0.20</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:jelmer@samba.org">jelmer@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Gerald</span> <span class="othername">(Jerry)</span> <span class="surname">Carter</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:jerry@samba.org">jerry@samba.org</a>&gt;</code></p></div></div></div></div><div><p class="pubdate">June 30, 2003</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="upgrading-to-3.0.html#id2642851">Quick Migration Guide</a></span></dt><dt><span class="sect1"><a href="upgrading-to-3.0.html#id2642988">New Features in Samba-3</a></span></dt><dt><span class="sect1"><a href="upgrading-to-3.0.html#id2643274">Configuration Parameter Changes</a></span></dt><dd><dl><dt><span class="sect2"><a href="upgrading-to-3.0.html#id2643293">Removed Parameters</a></span></dt><dt><span class="sect2"><a href="upgrading-to-3.0.html#id2643445">New Parameters</a></span></dt><dt><span class="sect2"><a href="upgrading-to-3.0.html#id2643958">Modified Parameters (Changes in Behavior)</a></span></dt></dl></dd><dt><span class="sect1"><a href="upgrading-to-3.0.html#id2644048">New Functionality</a></span></dt><dd><dl><dt><span class="sect2"><a href="upgrading-to-3.0.html#id2644074">TDB Data Files</a></span></dt><dt><span class="sect2"><a href="upgrading-to-3.0.html#id2644426">Changes in Behavior</a></span></dt><dt><span class="sect2"><a href="upgrading-to-3.0.html#id2644522">Passdb Backends and Authentication</a></span></dt><dt><span class="sect2"><a href="upgrading-to-3.0.html#id2644695">LDAP</a></span></dt></dl></dd></dl></div><p>
2 <a class="indexterm" name="id2642826"></a>
3 <a class="indexterm" name="id2642833"></a>
4 <a class="indexterm" name="id2642840"></a>
5 This chapter deals exclusively with the differences between Samba-3.0.20 and Samba-2.2.8a.
6 It points out where configuration parameters have changed, and provides a simple guide for 
7 the move from 2.2.x to 3.0.20.
8 </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2642851"></a>Quick Migration Guide</h2></div></div></div><p>
9 Samba-3.0.20 default behavior should be approximately the same as Samba-2.2.x.
10 The default behavior when the new parameter <a class="indexterm" name="id2642862"></a>passdb backend
11 is not defined in the <code class="filename">smb.conf</code> file provides the same default behavior as Samba-2.2.x
12 with <a class="indexterm" name="id2642876"></a>encrypt passwords = Yes and
13 will use the <code class="filename">smbpasswd</code> database.
14 </p><p>
15 <a class="indexterm" name="id2642893"></a>
16 <a class="indexterm" name="id2642900"></a>
17 So why say that <span class="emphasis"><em>behavior should be approximately the same as Samba-2.2.x</em></span>? Because
18 Samba-3.0.20 can negotiate new protocols, such as support for native Unicode, that may result in
19 differing protocol code paths being taken. The new behavior under such circumstances is not
20 exactly the same as the old one. The good news is that the domain and machine SIDs will be
21 preserved across the upgrade.
22 </p><p>
23 <a class="indexterm" name="id2642920"></a>
24 <a class="indexterm" name="id2642927"></a>
25 <a class="indexterm" name="id2642934"></a>
26 <a class="indexterm" name="id2642941"></a>
27 If the Samba-2.2.x system is using an LDAP backend, and there is no time to update the LDAP
28 database, then make sure that <a class="indexterm" name="id2642950"></a>passdb backend = ldapsam_compat
29 is specified in the <code class="filename">smb.conf</code> file. For the rest, behavior should remain more or less the same.
30 At a later date, when there is time to implement a new Samba-3-compatible LDAP backend, it is possible
31 to migrate the old LDAP database to the new one through use of the <span><strong class="command">pdbedit</strong></span>.
32 See <a href="passdb.html#pdbeditthing" title="The pdbedit Tool">The <span class="emphasis"><em>pdbedit</em></span> Command</a>.
33 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2642988"></a>New Features in Samba-3</h2></div></div></div><p>
34 The major new features are:
35 </p><div class="orderedlist"><ol type="1"><li><p> 
36 <a class="indexterm" name="id2643010"></a>
37 <a class="indexterm" name="id2643016"></a>
38         Active Directory support. This release is able to join an ADS realm
39         as a member server and authenticate users using LDAP/Kerberos.
40         </p></li><li><p>
41 <a class="indexterm" name="id2643030"></a>
42 <a class="indexterm" name="id2643036"></a>
43         Unicode support. Samba will now negotiate Unicode on the wire, and
44         internally there is a much better infrastructure for multibyte
45         and Unicode character sets.
46         </p></li><li><p>
47 <a class="indexterm" name="id2643050"></a>
48         New authentication system. The internal authentication system has
49         been almost completely rewritten. Most of the changes are internal,
50         but the new authoring system is also very configurable.
51         </p></li><li><p>
52 <a class="indexterm" name="id2643065"></a>
53         New filename mangling system. The filename mangling system has been
54         completely rewritten. An internal database now stores mangling maps
55         persistently.
56         </p></li><li><p>
57 <a class="indexterm" name="id2643079"></a>
58         New &#8220;<span class="quote">net</span>&#8221; command. A new &#8220;<span class="quote">net</span>&#8221; command has been added. It is
59         somewhat similar to the &#8220;<span class="quote">net</span>&#8221; command in Windows. Eventually, we
60         plan to replace a bunch of other utilities (such as smbpasswd)
61         with subcommands in &#8220;<span class="quote">net</span>&#8221;.
62         </p></li><li><p>
63 <a class="indexterm" name="id2643107"></a>
64         Samba now negotiates NT-style status32 codes on the wire. This
65         considerably improves error handling.
66         </p></li><li><p>
67 <a class="indexterm" name="id2643120"></a>
68         Better Windows 200x/XP printing support, including publishing
69         printer attributes in Active Directory.
70         </p></li><li><p>
71 <a class="indexterm" name="id2643133"></a>
72 <a class="indexterm" name="id2643140"></a>
73 <a class="indexterm" name="id2643147"></a>
74         New loadable RPC modules for passdb backends and character sets.
75         </p></li><li><p>
76 <a class="indexterm" name="id2643159"></a>
77         New default dual-daemon winbindd support for better performance.
78         </p></li><li><p>
79 <a class="indexterm" name="id2643172"></a>
80 <a class="indexterm" name="id2643179"></a>
81 <a class="indexterm" name="id2643186"></a>
82         Support for migrating from a Windows NT 4.0 domain to a Samba
83         domain and maintaining user, group, and domain SIDs.
84         </p></li><li><p>
85 <a class="indexterm" name="id2643199"></a>
86 <a class="indexterm" name="id2643206"></a>
87         Support for establishing trust relationships with Windows NT 4.0
88         domain controllers.
89         </p></li><li><p>
90 <a class="indexterm" name="id2643218"></a>
91 <a class="indexterm" name="id2643226"></a>
92 <a class="indexterm" name="id2643232"></a>
93         Initial support for a distributed Winbind architecture using
94         an LDAP directory for storing SID to UID/GID mappings.
95         </p></li><li><p>
96         Major updates to the Samba documentation tree.
97         </p></li><li><p>
98 <a class="indexterm" name="id2643251"></a>
99 <a class="indexterm" name="id2643258"></a>
100         Full support for client and server SMB signing to ensure
101         compatibility with default Windows 2003 security settings.
102         </p></li></ol></div><p>
103 Plus lots of other improvements!
104 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2643274"></a>Configuration Parameter Changes</h2></div></div></div><p>
105 This section contains a brief listing of changes to <code class="filename">smb.conf</code> options since the Samba-2.2.x series up to an
106 including Samba-3.0.21. Please refer to the smb.conf(5) man page for complete descriptions of new or modified
107 parameters.
108 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2643293"></a>Removed Parameters</h3></div></div></div><a class="indexterm" name="id2643298"></a><p>
109 In alphabetical order, these are the parameters eliminated from Samba-2.2.x through 3.0.21.
110 </p><div class="itemizedlist"><ul type="disc"><li><p>admin log</p></li><li><p>alternate permissions</p></li><li><p>character set</p></li><li><p>client codepage</p></li><li><p>code page directory</p></li><li><p>coding system</p></li><li><p>domain admin group</p></li><li><p>domain guest group</p></li><li><p>enable svcctl</p></li><li><p>force unknown acl user</p></li><li><p>ldap filter</p></li><li><p>min password length</p></li><li><p>nt smb support</p></li><li><p>post script</p></li><li><p>printer admin</p></li><li><p>printer driver</p></li><li><p>printer driver file</p></li><li><p>printer driver location</p></li><li><p>read size</p></li><li><p>source environment</p></li><li><p>status </p></li><li><p>strip dot </p></li><li><p>total print jobs</p></li><li><p>unicode</p></li><li><p>use rhosts</p></li><li><p>valid chars</p></li><li><p>vfs options</p></li><li><p>winbind enable local accounts</p></li></ul></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2643445"></a>New Parameters</h3></div></div></div><p>New parameters in the Samba 3.0.0 series prior to release of Samba 3.0.20 are grouped by function):</p><p>Remote Management</p><a class="indexterm" name="id2643459"></a><div class="itemizedlist"><ul type="disc"><li><p>abort shutdown script</p></li><li><p>shutdown script</p></li></ul></div><p>User and Group Account Management</p><div class="itemizedlist"><ul type="disc"><li><p>add group script</p></li><li><p>add machine script</p></li><li><p>add user to group script</p></li><li><p>algorithmic rid base</p></li><li><p>delete group script</p></li><li><p>delete user from group script</p></li><li><p>passdb backend</p></li><li><p>rename user script</p></li><li><p>set primary group script</p></li><li><p>username map script</p></li></ul></div><p>Authentication</p><div class="itemizedlist"><ul type="disc"><li><p>auth methods</p></li><li><p>ldap password sync</p></li><li><p>passdb expand explicit</p></li><li><p>realm</p></li></ul></div><p>Protocol Options</p><div class="itemizedlist"><ul type="disc"><li><p>afs token lifetime</p></li><li><p>client lanman auth</p></li><li><p>client NTLMv2 auth</p></li><li><p>client schannel</p></li><li><p>client signing</p></li><li><p>client use spnego</p></li><li><p>defer sharing violations</p></li><li><p>disable netbios</p></li><li><p>enable privileges</p></li><li><p>use kerberos keytab</p></li><li><p>log nt token command</p></li><li><p>ntlm auth</p></li><li><p>paranoid server security </p></li><li><p>sendfile</p></li><li><p>server schannel</p></li><li><p>server signing</p></li><li><p>smb ports</p></li><li><p>svcctl list</p></li><li><p>use spnego</p></li></ul></div><p>File Service</p><div class="itemizedlist"><ul type="disc"><li><p>allocation roundup size</p></li><li><p>acl check permissions</p></li><li><p>acl group control</p></li><li><p>acl map full control</p></li><li><p>aio read size</p></li><li><p>aio write size</p></li><li><p>dfree cache time</p></li><li><p>dfree command</p></li><li><p>ea support</p></li><li><p>enable asu support</p></li><li><p>force unknown acl user</p></li><li><p>get quota command</p></li><li><p>hide special files</p></li><li><p>hide unwriteable files</p></li><li><p>inherit owner</p></li><li><p>hostname lookups</p></li><li><p>kernel change notify</p></li><li><p>mangle prefix</p></li><li><p>map acl inherit</p></li><li><p>map read only</p></li><li><p>max stat cache size</p></li><li><p>msdfs proxy</p></li><li><p>set quota command</p></li><li><p>store dos attributes</p></li><li><p>use sendfile</p></li><li><p>vfs objects</p></li></ul></div><p>Printing</p><div class="itemizedlist"><ul type="disc"><li><p>cups options</p></li><li><p>cups server</p></li><li><p>force printername</p></li><li><p>iprint server</p></li><li><p>max reported print jobs</p></li><li><p>printcap cache time</p></li></ul></div><p>Unicode and Character Sets</p><div class="itemizedlist"><ul type="disc"><li><p>display charset</p></li><li><p>dos charset</p></li><li><p>UNIX charset</p></li></ul></div><p>SID to UID/GID Mappings</p><div class="itemizedlist"><ul type="disc"><li><p>idmap backend</p></li><li><p>idmap gid</p></li><li><p>idmap uid</p></li><li><p>username map script</p></li><li><p>winbind nested groups</p></li><li><p>winbind nss info</p></li><li><p>winbind trusted domains only</p></li><li><p>template primary group</p></li><li><p>enable rid algorithm</p></li></ul></div><p>LDAP</p><div class="itemizedlist"><ul type="disc"><li><p>ldap delete dn</p></li><li><p>ldap group suffix</p></li><li><p>ldap idmap suffix</p></li><li><p>ldap machine suffix</p></li><li><p>ldap passwd sync</p></li><li><p>ldap replication sleep</p></li><li><p>ldap timeout</p></li><li><p>ldap user suffix</p></li></ul></div><p>General Configuration</p><div class="itemizedlist"><ul type="disc"><li><p>eventlog list</p></li><li><p>preload modules</p></li><li><p>reset on zero vc</p></li><li><p>privatedir</p></li></ul></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2643958"></a>Modified Parameters (Changes in Behavior)</h3></div></div></div><div class="itemizedlist"><ul type="disc"><li><p>dos filetimes (enabled by default)</p></li><li><p>encrypt passwords (enabled by default) </p></li><li><p>mangling method (set to hash2 by default) </p></li><li><p>map to guest</p></li><li><p>only user (deprecated)</p></li><li><p>passwd chat </p></li><li><p>passwd program </p></li><li><p>password server </p></li><li><p>restrict anonymous (integer value) </p></li><li><p>security (new ads value) </p></li><li><p>strict locking (enabled by default) </p></li><li><p>winbind cache time (increased to 5 minutes) </p></li><li><p>winbind uid (deprecated in favor of idmap uid)</p></li><li><p>winbind gid (deprecated in favor of idmap gid)</p></li><li><p>winbindd nss info</p></li><li><p>write cache (deprecated)</p></li></ul></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2644048"></a>New Functionality</h2></div></div></div><p>
111 <a class="indexterm" name="id2644055"></a>
112         The major changes in behavior since that Samba-2.2.x series are documented in this section.
113         Please refer to the <code class="filename">WHATSNEW.txt</code> file that ships with every release of
114         Samba to obtain detailed information regarding the changes that have been made during the
115         life of the current Samba release.
116         </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2644074"></a>TDB Data Files</h3></div></div></div><a class="indexterm" name="id2644080"></a><p>
117         Refer to <a href="install.html" title="Chapter 1. How to Install and Test SAMBA">Installation, Chapter 1</a>, <a href="install.html#tdbdocs" title="TDB Database File Information">Chapter 1</a>
118         for information pertaining to the Samba-3 data files, their location and the information that must be
119         preserved across server migrations, updates and upgrades.
120         </p><p>
121 <a class="indexterm" name="id2644110"></a>
122         Please remember to back up your existing ${lock directory}/*tdb before upgrading to Samba-3. If necessary, Samba will 
123         upgrade databases as they are opened. Downgrading from Samba-3 to 2.2, or reversion to an earlier version
124         of Samba-3 from a later release, is an unsupported path.
125         </p><p>
126 <a class="indexterm" name="id2644125"></a>
127         The old Samba-2.2.x tdb files are described in <a href="upgrading-to-3.0.html#oldtdbfiledesc" title="Table 34.1. Samba-2.2.x TDB File Descriptions">the next table</a>.
128         </p><div class="table"><a name="oldtdbfiledesc"></a><p class="title"><b>Table 34.1. Samba-2.2.x TDB File Descriptions</b></p><table summary="Samba-2.2.x TDB File Descriptions" border="1"><colgroup><col align="left"><col align="justify"><col align="left"></colgroup><thead><tr><th align="left">Name</th><th align="justify">Description</th><th align="center">Backup?</th></tr></thead><tbody><tr><td align="left">account_policy</td><td align="justify">User policy settings</td><td align="left">yes</td></tr><tr><td align="left">brlock</td><td align="justify">Byte-range file locking information.</td><td align="left">no</td></tr><tr><td align="left">connections</td><td align="justify"><p>Client connection information</p></td><td align="left">no</td></tr><tr><td align="left">locking</td><td align="justify">Temporary file locking data.</td><td align="left">no</td></tr><tr><td align="left">messages</td><td align="justify"><p>Temporary storage of messages being processed by smbd.</p></td><td align="left">no</td></tr><tr><td align="left">ntdrivers</td><td align="justify"><p>Stores per-printer driver information.</p></td><td align="left">yes</td></tr><tr><td align="left">ntforms</td><td align="justify"><p>Stores per-printer forms information.</p></td><td align="left">yes</td></tr><tr><td align="left">ntprinters</td><td align="justify"><p>Stores the per-printer devmode configuration settings.</p></td><td align="left">yes</td></tr><tr><td align="left">printing/*.tdb</td><td align="justify"><p>Cached output from lpq command created on a per-print-service basis.</p></td><td align="left">no</td></tr><tr><td align="left">registry</td><td align="justify"><p>Read-only Samba registry skeleton that provides support for
129                                 exporting various database tables via the winreg RPCs.</p></td><td align="left">no</td></tr><tr><td align="left">sessionid</td><td align="justify"><p>Temporary cache for miscellaneous session information.</p></td><td align="left">no</td></tr><tr><td align="left">share_info</td><td align="justify">Share ACL settings.</td><td align="left">yes</td></tr><tr><td align="left">unexpected</td><td align="justify"><p>Packets received for which no process was listening.</p></td><td align="left">no</td></tr><tr><td align="left">winbindd_cache</td><td align="justify"><p>Cache of identity information received from an NT4 or an ADS domain.</p></td><td align="left">yes</td></tr><tr><td align="left">winbindd_idmap</td><td align="justify"><p>New ID map table from SIDS to UNIX UIDs/GIDs.</p></td><td align="left">yes</td></tr></tbody></table></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2644426"></a>Changes in Behavior</h3></div></div></div><p>
130         The following issues are known changes in behavior between Samba-2.2 and
131         Samba-3 that may affect certain installations of Samba.
132         </p><div class="orderedlist"><ol type="1"><li><p>
133 <a class="indexterm" name="id2644447"></a>
134 <a class="indexterm" name="id2644454"></a>
135 <a class="indexterm" name="id2644461"></a>
136                 When operating as a member of a Windows domain, Samba-2.2 would map any users authenticated by the remote DC
137                 to the &#8220;<span class="quote">guest account</span>&#8221; if a UID could not be obtained via the getpwnam() call. Samba-3 rejects
138                 the connection with the error message &#8220;<span class="quote">NT_STATUS_LOGON_FAILURE.</span>&#8221; There is no current workaround
139                 to re-establish the Samba-2.2 behavior.
140                 </p></li><li><p>
141 <a class="indexterm" name="id2644485"></a>
142 <a class="indexterm" name="id2644492"></a>
143                 When adding machines to a Samba-2.2 controlled domain, the
144                 &#8220;<span class="quote">add user script</span>&#8221; was used to create the UNIX identity of the
145                 machine trust account. Samba-3 introduces a new &#8220;<span class="quote">add machine
146                 script</span>&#8221; that must be specified for this purpose. Samba-3 will
147                 not fall back to using the &#8220;<span class="quote">add user script</span>&#8221; in the absence of
148                 an &#8220;<span class="quote">add machine script</span>&#8221;.
149                 </p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2644522"></a>Passdb Backends and Authentication</h3></div></div></div><p>
150         There have been a few new changes that Samba administrators should be
151         aware of when moving to Samba-3.
152         </p><div class="orderedlist"><ol type="1"><li><p>
153 <a class="indexterm" name="id2644543"></a>
154                 Encrypted passwords have been enabled by default in order to
155                 interoperate better with out-of-the-box Windows client
156                 installations. This does mean that either (a) a Samba account
157                 must be created for each user, or (b) &#8220;<span class="quote">encrypt passwords = no</span>&#8221;
158                 must be explicitly defined in <code class="filename">smb.conf</code>.
159                 </p></li><li><p>
160 <a class="indexterm" name="id2644568"></a>
161 <a class="indexterm" name="id2644575"></a>
162 <a class="indexterm" name="id2644582"></a>
163                 Inclusion of new <a class="indexterm" name="id2644589"></a>security = ads option for integration
164                 with an Active Directory domain using the native Windows Kerberos 5 and LDAP protocols.
165                 </p></li></ol></div><p>
166 <a class="indexterm" name="id2644602"></a>
167         Samba-3 also includes the possibility of setting up chains of authentication methods (<a class="indexterm" name="id2644611"></a>auth methods) and account storage backends (<a class="indexterm" name="id2644619"></a>passdb backend).  Please refer to
168         the <code class="filename">smb.conf</code> man page and <a href="passdb.html" title="Chapter 10. Account Information Databases">Account Information Databases</a>, for
169         details. While both parameters assume sane default values, it is likely that you will need to understand what
170         the values actually mean in order to ensure Samba operates correctly.
171         </p><p>
172 <a class="indexterm" name="id2644647"></a>
173 <a class="indexterm" name="id2644653"></a>
174 <a class="indexterm" name="id2644660"></a>
175         Certain functions of the <span><strong class="command">smbpasswd</strong></span> tool have been split between the
176         new <span><strong class="command">smbpasswd</strong></span> utility, the <span><strong class="command">net</strong></span> tool, and the new <span><strong class="command">pdbedit</strong></span>
177         utility. See the respective man pages for details.
178         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2644695"></a>LDAP</h3></div></div></div><p>
179         This section outlines the new features effecting Samba/LDAP integration.
180         </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2644705"></a>New Schema</h4></div></div></div><p>
181 <a class="indexterm" name="id2644713"></a>
182 <a class="indexterm" name="id2644720"></a>
183 <a class="indexterm" name="id2644727"></a>
184 <a class="indexterm" name="id2644734"></a>
185                 A new object class (sambaSamAccount) has been introduced to replace
186                 the old sambaAccount. This change aids in the renaming of attributes
187                 to prevent clashes with attributes from other vendors. There is a
188                 conversion script (examples/LDAP/convertSambaAccount) to modify an LDIF
189                 file to the new schema.
190                 </p><p>
191                 Example:
192 <a class="indexterm" name="id2644749"></a>
193                 </p><pre class="screen">
194                 <code class="prompt">$ </code>ldapsearch .... -LLL -b "ou=people,dc=..." &gt; old.ldif
195                 <code class="prompt">$ </code>convertSambaAccount --sid &lt;DOM SID&gt; --input old.ldif --output new.ldif
196                 </pre><p>
197 <a class="indexterm" name="id2644782"></a>
198                 The &lt;DOM SID&gt; can be obtained by running 
199 </p><pre class="screen">
200 <code class="prompt">$ </code><strong class="userinput"><code>net getlocalsid &lt;DOMAINNAME&gt;</code></strong>
201 </pre><p>
202 <a class="indexterm" name="id2644808"></a>
203                 on the Samba PDC as root.
204                 </p><p>
205                 Under Samba-2.x the domain SID can be obtained by executing:
206 <a class="indexterm" name="id2644820"></a>
207 </p><pre class="screen">
208 <code class="prompt">$ </code><strong class="userinput"><code>smbpasswd -S &lt;DOMAINNAME&gt;</code></strong>
209 </pre><p>
210                 </p><p>
211 <a class="indexterm" name="id2644846"></a>
212 <a class="indexterm" name="id2644853"></a>
213 <a class="indexterm" name="id2644860"></a>
214 <a class="indexterm" name="id2644867"></a>
215                 The old <code class="literal">sambaAccount</code> schema may still be used by specifying the
216                 <em class="parameter"><code>ldapsam_compat</code></em> passdb backend. However, the sambaAccount and
217                 associated attributes have been moved to the historical section of
218                 the schema file and must be uncommented before use if needed.
219                 The Samba-2.2 object class declaration for a <code class="literal">sambaAccount</code> has not changed
220                 in the Samba-3 <code class="filename">samba.schema</code> file.
221                 </p><p>
222                 Other new object classes and their uses include:
223                 </p><div class="itemizedlist"><ul type="disc"><li><p>
224 <a class="indexterm" name="id2644914"></a>
225 <a class="indexterm" name="id2644921"></a>
226 <a class="indexterm" name="id2644928"></a>
227 <a class="indexterm" name="id2644934"></a>
228 <a class="indexterm" name="id2644941"></a>
229 <a class="indexterm" name="id2644948"></a>
230                         <code class="literal">sambaDomain</code>  domain information used to allocate RIDs
231                         for users and groups as necessary. The attributes are added
232                         in &#8220;<span class="quote">ldap suffix</span>&#8221; directory entry automatically if
233                         an idmap UID/GID range has been set and the &#8220;<span class="quote">ldapsam</span>&#8221;
234                         passdb backend has been selected.
235                         </p></li><li><p>
236 <a class="indexterm" name="id2644979"></a>
237 <a class="indexterm" name="id2644986"></a>
238 <a class="indexterm" name="id2644992"></a>
239                         sambaGroupMapping  an object representing the
240                         relationship between a posixGroup and a Windows
241                         group/SID. These entries are stored in the &#8220;<span class="quote">ldap
242                         group suffix</span>&#8221; and managed by the &#8220;<span class="quote">net groupmap</span>&#8221; command.
243                         </p></li><li><p>
244 <a class="indexterm" name="id2645017"></a>
245 <a class="indexterm" name="id2645024"></a>
246 <a class="indexterm" name="id2645031"></a>
247 <a class="indexterm" name="id2645038"></a>
248                         <code class="literal">sambaUNIXIdPool</code>  created in the &#8220;<span class="quote">ldap idmap suffix</span>&#8221; entry
249                         automatically and contains the next available &#8220;<span class="quote">idmap UID</span>&#8221; and
250                         &#8220;<span class="quote">idmap GID</span>&#8221;.
251                         </p></li><li><p>
252 <a class="indexterm" name="id2645070"></a>
253 <a class="indexterm" name="id2645077"></a>
254                         <code class="literal">sambaIdmapEntry</code>  object storing a mapping between a
255                         SID and a UNIX UID/GID. These objects are created by the
256                         idmap_ldap module as needed.
257                         </p></li></ul></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2645098"></a>New Suffix for Searching</h4></div></div></div><p>
258 <a class="indexterm" name="id2645106"></a>
259 <a class="indexterm" name="id2645112"></a>
260 <a class="indexterm" name="id2645119"></a>
261 <a class="indexterm" name="id2645126"></a>
262 <a class="indexterm" name="id2645133"></a>
263 <a class="indexterm" name="id2645140"></a>
264 <a class="indexterm" name="id2645147"></a>
265                 The following new <code class="filename">smb.conf</code> parameters have been added to aid in directing
266                 certain LDAP queries when <em class="parameter"><code>passdb backend = ldapsam://...</code></em> has been
267                 specified.
268                 </p><div class="itemizedlist"><ul type="disc"><li><p>ldap suffix          used to search for user and computer accounts.</p></li><li><p>ldap user suffix     used to store user accounts.</p></li><li><p>ldap machine suffix  used to store machine trust accounts.</p></li><li><p>ldap group suffix    location of posixGroup/sambaGroupMapping entries.</p></li><li><p>ldap idmap suffix    location of sambaIdmapEntry objects.</p></li></ul></div><p>
269 <a class="indexterm" name="id2645216"></a>
270 <a class="indexterm" name="id2645222"></a>
271                 If an <em class="parameter"><code>ldap suffix</code></em> is defined, it will be appended to all of the
272                 remaining subsuffix parameters. In this case, the order of the suffix
273                 listings in <code class="filename">smb.conf</code> is important. Always place the <em class="parameter"><code>ldap suffix</code></em> first
274                 in the list.
275                 </p><p>
276                 Due to a limitation in Samba's <code class="filename">smb.conf</code> parsing, you should not surround
277                 the domain names with quotation marks.
278                 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2645264"></a>IdMap LDAP Support</h4></div></div></div><p>
279 <a class="indexterm" name="id2645271"></a>
280                 Samba-3 supports an LDAP backend for the idmap subsystem. The
281                 following options inform Samba that the idmap table should be
282                 stored on the directory server <span class="emphasis"><em>onterose</em></span> in the ou=idmap,dc=quenya,dc=org partition.
283                 </p><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td>...</td></tr><tr><td><a class="indexterm" name="id2645304"></a><em class="parameter"><code>idmap backend = ldap:ldap://onterose/</code></em></td></tr><tr><td><a class="indexterm" name="id2645317"></a><em class="parameter"><code>ldap idmap suffix = ou=idmap,dc=quenya,dc=org</code></em></td></tr><tr><td><a class="indexterm" name="id2645331"></a><em class="parameter"><code>idmap uid = 40000-50000</code></em></td></tr><tr><td><a class="indexterm" name="id2645344"></a><em class="parameter"><code>idmap gid = 40000-50000</code></em></td></tr></table><p>
284 <a class="indexterm" name="id2645358"></a>
285                 This configuration allows Winbind installations on multiple servers to
286                 share a UID/GID number space, thus avoiding the interoperability problems
287                 with NFS that were present in Samba-2.2.
288                 </p></div></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="migration.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="migration.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="NT4Migration.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Part IV. Migration and Updating </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 35. Migration from NT4 PDC to Samba-3 PDC</td></tr></table></div></body></html>