Fix a double-closedir() in form_junctions()
[Samba.git] / docs-xml / Samba3-HOWTO / TOSHARG-upgrading-to-3.0.xml
blobaa879aeb0a05fa89eb3c4ad996fdd2de4432755d
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE chapter PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <chapter id="upgrading-to-3.0">
4 <chapterinfo>
5         &author.jelmer;
6         &author.jht;
7         &author.jerry;
8         <pubdate>August 16, 2007</pubdate>
9 </chapterinfo>
11 <title>Updating and Upgrading Samba</title>
12 <para>
13 This chapter provides a detailed record of changes made during the 3.x series releases. At this time this
14 series consists of the 3.0.x series that is under the GNU GPL version 2 license, and the Samba 3.2.x series
15 that is being released under the terms of the GNU GPL version 3 license.
16 </para>
18 <sect1>
19 <title>Key Update Requirements</title>
20 <para>
21 Samba is a fluid product in which there may be significant changes between releases. Some of these changes are
22 brought about as a result of changes in the protocols that are used by Microsoft Windows network clients as a
23 result of security or functionality updates through official Microsoft patches and updates. Samba must track
24 such changes, particularly where they affect the internal operation of Samba itself.
25 </para>
27 <para>
28 Please refer to any notes below that make explicit mention of the version of Samba you are using. In general,
29 all changes that apply to a new release will apply to follow-on releases also. For example, changes to Samba
30 3.0.23 affect all releases up to an including 3.0.25 and later.  Samba 3.2.x was originaly cut from Samba
31 3.0.25 before 3.2.0-specific changes were applied. Unless a 3.0.x series feature is specifically revoked, the
32 behavior of the 3.2.x series can be expected to follow the earlier pattern.
33 </para>
35 <sect2>
36 <title>Upgrading from Samba-3.0.x to Samba-3.2.0</title>
37 <para>
38 </para>
39 </sect2>
41 <sect2 id="oldupdatenotes">
42 <title>Upgrading from Samba-2.x to Samba-3.0.25</title>
43 <para>
44 <indexterm><primary>Samba differences</primary></indexterm>
45 <indexterm><primary>changed parameters</primary></indexterm>
46 <indexterm><primary>simple guide</primary></indexterm>
47 This chapter deals exclusively with the differences between Samba-3.0.25 and Samba-2.2.8a.
48 It points out where configuration parameters have changed, and provides a simple guide for
49 the move from 2.2.x to 3.0.25.
50 </para>
51 </sect2>
53 <sect2>
54 <title>Quick Migration Guide</title>
56 <para>
57 Samba-3.0.25 default behavior should be approximately the same as Samba-2.2.x.
58 The default behavior when the new parameter <smbconfoption name="passdb backend"/>
59 is not defined in the &smb.conf; file provides the same default behavior as Samba-2.2.x
60 with <smbconfoption name="encrypt passwords">Yes</smbconfoption> and
61 will use the <filename>smbpasswd</filename> database.
62 </para>
64 <para>
65 <indexterm><primary>behavior approximately same</primary></indexterm>
66 <indexterm><primary>differing protocol</primary></indexterm>
67 So why say that <emphasis>behavior should be approximately the same as Samba-2.2.x</emphasis>? Because
68 Samba-3.0.25 can negotiate new protocols, such as support for native Unicode, that may result in
69 differing protocol code paths being taken. The new behavior under such circumstances is not
70 exactly the same as the old one. The good news is that the domain and machine SIDs will be
71 preserved across the upgrade.
72 </para>
74 <para>
75 <indexterm><primary>LDAP backend</primary></indexterm>
76 <indexterm><primary>database</primary></indexterm>
77 <indexterm><primary>pdbedit</primary></indexterm>
78 <indexterm><primary>Samba-3-compatible LDAP backend</primary></indexterm>
79 If the Samba-2.2.x system is using an LDAP backend, and there is no time to update the LDAP
80 database, then make sure that <smbconfoption name="passdb backend">ldapsam_compat</smbconfoption>
81 is specified in the &smb.conf; file. For the rest, behavior should remain more or less the same.
82 At a later date, when there is time to implement a new Samba-3-compatible LDAP backend, it is possible
83 to migrate the old LDAP database to the new one through use of the <command>pdbedit</command>.
84 See <link linkend="pdbeditthing">The <emphasis>pdbedit</emphasis> Command</link>.
85 </para>
87 </sect2>
88 </sect1>
90 <sect1>
91 <title>New Featuers in Samba-3.x Series</title>
92 <para>
93 </para>
95 <sect2>
96 <title>New Features in Samba-3.2.x Series</title>
97 <para>
98 </para>
99 </sect2>
101 <sect2>
102 <title>New Features in Samba-3.0.x</title>
104 <para>
105 The major new features are:
106 </para>
108 <orderedlist numeration="arabic">
109         <listitem><para>
110 <indexterm><primary>ADS</primary></indexterm>
111 <indexterm><primary>LDAP/Kerberos</primary></indexterm>
112         Active Directory support. This release is able to join an ADS realm
113         as a member server and authenticate users using LDAP/Kerberos.
114         </para></listitem>
116         <listitem><para>
117 <indexterm><primary>Unicode</primary></indexterm>
118 <indexterm><primary>multibyte character sets</primary></indexterm>
119         Unicode support. Samba will now negotiate Unicode on the wire, and
120         internally there is a much better infrastructure for multibyte
121         and Unicode character sets.
122         </para></listitem>
124         <listitem><para>
125 <indexterm><primary>authentication system</primary></indexterm>
126         New authentication system. The internal authentication system has
127         been almost completely rewritten. Most of the changes are internal,
128         but the new authoring system is also very configurable.
129         </para></listitem>
131         <listitem><para>
132 <indexterm><primary>filename mangling</primary></indexterm>
133         New filename mangling system. The filename mangling system has been
134         completely rewritten. An internal database now stores mangling maps
135         persistently.
136         </para></listitem>
138         <listitem><para>
139 <indexterm><primary>net command</primary></indexterm>
140         New <quote>net</quote> command. A new <quote>net</quote> command has been added. It is
141         somewhat similar to the <quote>net</quote> command in Windows. Eventually, we
142         plan to replace a bunch of other utilities (such as smbpasswd)
143         with subcommands in <quote>net</quote>.
144         </para></listitem>
146         <listitem><para>
147 <indexterm><primary>status32 codes</primary></indexterm>
148         Samba now negotiates NT-style status32 codes on the wire. This
149         considerably improves error handling.
150         </para></listitem>
152         <listitem><para>
153 <indexterm><primary>printer attributes publishing</primary></indexterm>
154         Better Windows 200x/XP printing support, including publishing
155         printer attributes in Active Directory.
156         </para></listitem>
158         <listitem><para>
159 <indexterm><primary>RPC modules</primary></indexterm>
160 <indexterm><primary>passdb backends</primary></indexterm>
161 <indexterm><primary>character sets</primary></indexterm>
162         New loadable RPC modules for passdb backends and character sets.
163         </para></listitem>
165         <listitem><para>
166 <indexterm><primary>dual-daemon winbindd</primary></indexterm>
167         New default dual-daemon winbindd support for better performance.
168         </para></listitem>
170         <listitem><para>
171 <indexterm><primary>migrating</primary></indexterm>
172 <indexterm><primary>maintaining ids</primary></indexterm>
173 <indexterm><primary>SID</primary></indexterm>
174         Support for migrating from a Windows NT 4.0 domain to a Samba
175         domain and maintaining user, group, and domain SIDs.
176         </para></listitem>
178         <listitem><para>
179 <indexterm><primary>trust relationships</primary></indexterm>
180 <indexterm><primary>domain controllers</primary></indexterm>
181         Support for establishing trust relationships with Windows NT 4.0
182         domain controllers.
183         </para></listitem>
185         <listitem><para>
186 <indexterm><primary>Winbind architecture</primary></indexterm>
187 <indexterm><primary>LDAP directory</primary></indexterm>
188 <indexterm><primary>ID mapping</primary></indexterm>
189         Initial support for a distributed Winbind architecture using
190         an LDAP directory for storing SID to UID/GID mappings.
191         </para></listitem>
193         <listitem><para>
194         Major updates to the Samba documentation tree.
195         </para></listitem>
197         <listitem><para>
198 <indexterm><primary>SMB signing</primary></indexterm>
199 <indexterm><primary>security settings</primary></indexterm>
200         Full support for client and server SMB signing to ensure
201         compatibility with default Windows 2003 security settings.
202         </para></listitem>
203 </orderedlist>
205 <para>
206 Plus lots of other improvements!
207 </para>
210 <sect3>
211 <title>Configuration Parameter Changes</title>
213 <para>
214 This section contains a brief listing of changes to &smb.conf; options since the Samba-2.2.x series up to and
215 including Samba-3.0.25.
216 </para>
218 <para>
219 Please refer to the smb.conf(5) man page for complete descriptions of new or modified
220 parameters.
221 </para>
223 <para>
224 Whenever a Samba update or upgrade is performed it is highly recommended to read the file called
225 <emphasis>WHATSNEW.txt</emphasis> that is part of the Samba distribution tarball. This file may also
226 be obtain on-line from the Samba <ulink url="http://www.samba.org/samba/">web site</ulink>, in
227 the right column, under Current Stable Release, by clicking on <emphasis>Release Notes</emphasis>.
228 </para>
230 </sect3>
232 <sect3>
233 <title>Removed Parameters</title>
235 <indexterm><primary>deleted parameters</primary></indexterm>
236 <para>
237 In alphabetical order, these are the parameters eliminated from Samba-2.2.x through 3.0.25.
238 </para>
240 <itemizedlist>
241         <listitem><para>admin log</para></listitem>
242         <listitem><para>alternate permissions</para></listitem>
243         <listitem><para>character set</para></listitem>
244         <listitem><para>client codepage</para></listitem>
245         <listitem><para>code page directory</para></listitem>
246         <listitem><para>coding system</para></listitem>
247         <listitem><para>domain admin group</para></listitem>
248         <listitem><para>domain guest group</para></listitem>
249         <listitem><para>enable rid algorithm</para></listitem>
250         <listitem><para>enable svcctl</para></listitem>
251         <listitem><para>force unknown acl user</para></listitem>
252         <listitem><para>hosts equiv</para></listitem>
253         <listitem><para>ldap filter</para></listitem>
254         <listitem><para>min password length</para></listitem>
255         <listitem><para>nt smb support</para></listitem>
256         <listitem><para>post script</para></listitem>
257         <listitem><para>printer admin</para></listitem>
258         <listitem><para>printer driver</para></listitem>
259         <listitem><para>printer driver file</para></listitem>
260         <listitem><para>printer driver location</para></listitem>
261         <listitem><para>read size</para></listitem>
262         <listitem><para>source environment</para></listitem>
263         <listitem><para>status </para></listitem>
264         <listitem><para>strip dot </para></listitem>
265         <listitem><para>total print jobs</para></listitem>
266         <listitem><para>unicode</para></listitem>
267         <listitem><para>use rhosts</para></listitem>
268         <listitem><para>valid chars</para></listitem>
269         <listitem><para>vfs options</para></listitem>
270         <listitem><para>winbind enable local accounts</para></listitem>
271         <listitem><para>winbind max idle children</para></listitem>
272         <listitem><para>wins partners</para></listitem>
273 </itemizedlist>
275 </sect3>
277 <sect3>
278 <title>New Parameters</title>
280 <para>The following new parameters have been released up to and including Samba 3.0.25 (grouped by function:)</para>
282 <para>Remote Management</para>
284 <indexterm><primary>new parameters</primary></indexterm>
286 <itemizedlist>
287         <listitem><para>abort shutdown script</para></listitem>
288         <listitem><para>shutdown script</para></listitem>
289 </itemizedlist>
291 <para>User and Group Account Management</para>
293 <itemizedlist>
294         <listitem><para>add group script</para></listitem>
295         <listitem><para>add machine script</para></listitem>
296         <listitem><para>add user to group script</para></listitem>
297         <listitem><para>algorithmic rid base</para></listitem>
298         <listitem><para>delete group script</para></listitem>
299         <listitem><para>delete user from group script</para></listitem>
300         <listitem><para>passdb backend</para></listitem>
301         <listitem><para>rename user script</para></listitem>
302         <listitem><para>set primary group script</para></listitem>
303         <listitem><para>username map script</para></listitem>
304 </itemizedlist>
306 <para>Authentication</para>
308 <itemizedlist>
309         <listitem><para>auth methods</para></listitem>
310         <listitem><para>ldap password sync</para></listitem>
311         <listitem><para>passdb expand explicit</para></listitem>
312         <listitem><para>realm</para></listitem>
313 </itemizedlist>
315 <para>Protocol Options</para>
317 <itemizedlist>
318         <listitem><para>add port command</para></listitem>
319         <listitem><para>afs token lifetime</para></listitem>
320         <listitem><para>client lanman auth</para></listitem>
321         <listitem><para>client NTLMv2 auth</para></listitem>
322         <listitem><para>client schannel</para></listitem>
323         <listitem><para>client signing</para></listitem>
324         <listitem><para>client use spnego</para></listitem>
325         <listitem><para>defer sharing violations</para></listitem>
326         <listitem><para>disable netbios</para></listitem>
327         <listitem><para>dmapi support</para></listitem>
328         <listitem><para>enable privileges</para></listitem>
329         <listitem><para>use kerberos keytab</para></listitem>
330         <listitem><para>log nt token command</para></listitem>
331         <listitem><para>ntlm auth</para></listitem>
332         <listitem><para>paranoid server security </para></listitem>
333         <listitem><para>sendfile</para></listitem>
334         <listitem><para>server schannel</para></listitem>
335         <listitem><para>server signing</para></listitem>
336         <listitem><para>smb ports</para></listitem>
337         <listitem><para>svcctl list</para></listitem>
338         <listitem><para>use spnego</para></listitem>
339 </itemizedlist>
341 <para>File Service</para>
343 <itemizedlist>
344         <listitem><para>allocation roundup size</para></listitem>
345         <listitem><para>acl check permissions</para></listitem>
346         <listitem><para>acl group control</para></listitem>
347         <listitem><para>acl map full control</para></listitem>
348         <listitem><para>aio read size</para></listitem>
349         <listitem><para>aio write size</para></listitem>
350         <listitem><para>dfree cache time</para></listitem>
351         <listitem><para>dfree command</para></listitem>
352         <listitem><para>ea support</para></listitem>
353         <listitem><para>enable asu support</para></listitem>
354         <listitem><para>fam change notify</para></listitem>
355         <listitem><para>force unknown acl user</para></listitem>
356         <listitem><para>get quota command</para></listitem>
357         <listitem><para>hide special files</para></listitem>
358         <listitem><para>hide unwriteable files</para></listitem>
359         <listitem><para>inherit owner</para></listitem>
360         <listitem><para>hostname lookups</para></listitem>
361         <listitem><para>kernel change notify</para></listitem>
362         <listitem><para>mangle prefix</para></listitem>
363         <listitem><para>map acl inherit</para></listitem>
364         <listitem><para>map read only</para></listitem>
365         <listitem><para>max stat cache size</para></listitem>
366         <listitem><para>msdfs proxy</para></listitem>
367         <listitem><para>open files database hash size</para></listitem>
368         <listitem><para>set quota command</para></listitem>
369         <listitem><para>store dos attributes</para></listitem>
370         <listitem><para>use sendfile</para></listitem>
371         <listitem><para>usershare allow guests</para></listitem>
372         <listitem><para>usershare max shares</para></listitem>
373         <listitem><para>usershare owner only</para></listitem>
374         <listitem><para>usershare path</para></listitem>
375         <listitem><para>usershare prefix allow list</para></listitem>
376         <listitem><para>usershare prefix deny list</para></listitem>
377         <listitem><para>usershare template share</para></listitem>
378         <listitem><para>vfs objects</para></listitem>
379 </itemizedlist>
381 <para>Printing</para>
383 <itemizedlist>
384         <listitem><para>cups options</para></listitem>
385         <listitem><para>cups server</para></listitem>
386         <listitem><para>force printername</para></listitem>
387         <listitem><para>iprint server</para></listitem>
388         <listitem><para>max reported print jobs</para></listitem>
389         <listitem><para>printcap cache time</para></listitem>
390 </itemizedlist> 
393 <para>Unicode and Character Sets</para>
395 <itemizedlist>
396         <listitem><para>display charset</para></listitem>
397         <listitem><para>dos charset</para></listitem>
398         <listitem><para>UNIX charset</para></listitem>
399 </itemizedlist>
401 <para>SID to UID/GID Mappings</para>
403 <itemizedlist>
404         <listitem><para>idmap backend</para></listitem>
405         <listitem><para>idmap gid</para></listitem>
406         <listitem><para>idmap uid</para></listitem>
407         <listitem><para>username map script</para></listitem>
408         <listitem><para>winbind nss info</para></listitem>
409         <listitem><para>winbind offline logon</para></listitem>
410         <listitem><para>winbind refresh tickets</para></listitem>
411         <listitem><para>winbind trusted domains only</para></listitem>
412         <listitem><para>template primary group</para></listitem>
413 </itemizedlist>
415 <para>LDAP</para>
417 <itemizedlist>
418         <listitem><para>ldap delete dn</para></listitem>
419         <listitem><para>ldap group suffix</para></listitem>
420         <listitem><para>ldap idmap suffix</para></listitem>
421         <listitem><para>ldap machine suffix</para></listitem>
422         <listitem><para>ldap passwd sync</para></listitem>
423         <listitem><para>ldap replication sleep</para></listitem>
424         <listitem><para>ldap timeout</para></listitem>
425         <listitem><para>ldap user suffix</para></listitem>
426 </itemizedlist>
428 <para>General Configuration</para>
430 <itemizedlist>
431         <listitem><para>eventlog list</para></listitem>
432         <listitem><para>preload modules</para></listitem>
433         <listitem><para>reset on zero vc</para></listitem>
434         <listitem><para>privatedir</para></listitem>
435 </itemizedlist>
437 </sect3>
439 <sect3>
440 <title>Modified Parameters (Changes in Behavior)</title>
442 <itemizedlist>
443         <listitem><para>acl group control (new default is No, deprecated parameter)</para></listitem>
444         <listitem><para>change notify timeout (scope changed)</para></listitem>
445         <listitem><para>dos filemode (disabled by default)</para></listitem>
446         <listitem><para>dos filetimes (enabled by default)</para></listitem>
447         <listitem><para>enable asu support (disabled by default)</para></listitem>
448         <listitem><para>enable privileges (enabled by default)</para></listitem>
449         <listitem><para>encrypt passwords (enabled by default) </para></listitem>
450         <listitem><para>host msdfs (enabled by default)</para></listitem>
451         <listitem><para>mangling method (set to hash2 by default) </para></listitem>
452         <listitem><para>map to guest</para></listitem>
453         <listitem><para>only user (deprecated)</para></listitem>
454         <listitem><para>passwd chat</para></listitem>
455         <listitem><para>passwd program</para></listitem>
456         <listitem><para>password server</para></listitem>
457         <listitem><para>restrict anonymous (integer value)</para></listitem>
458         <listitem><para>security (new ads value)</para></listitem>
459         <listitem><para>strict locking (auto by default)</para></listitem>
460         <listitem><para>winbind cache time (increased to 5 minutes)</para></listitem>
461         <listitem><para>winbind enum groups (disabled by default)</para></listitem>
462         <listitem><para>winbind enum users (disabled by default)</para></listitem>
463         <listitem><para>winbind nested groups (enabled by default)</para></listitem>
464         <listitem><para>winbind uid (deprecated in favor of idmap uid)</para></listitem>
465         <listitem><para>winbind gid (deprecated in favor of idmap gid)</para></listitem>
466         <listitem><para>winbindd nss info</para></listitem>
467         <listitem><para>write cache (deprecated)</para></listitem>
468 </itemizedlist>
470 </sect3>
472 </sect2>
474 <sect2>
475 <title>New Functionality</title>
477         <para>
478 <indexterm><primary>major changes</primary></indexterm>
479         The major changes in behavior since that Samba-2.2.x series are documented in this section.
480         Please refer to the <filename>WHATSNEW.txt</filename> file that ships with every release of
481         Samba to obtain detailed information regarding the changes that have been made during the
482         life of the current Samba release.
483         </para>
485         <sect3>
486         <title>TDB Data Files</title>
488 <indexterm><primary>tdb data files</primary></indexterm>
489         <para>
490         Refer to <link linkend="install">Installation, Chapter 1</link>, <link linkend="tdbdocs">Chapter 1</link>
491         for information pertaining to the Samba-3 data files, their location and the information that must be
492         preserved across server migrations, updates and upgrades.
493         </para>
495         <para>
496 <indexterm><primary>tdb file backup</primary></indexterm>
497         Please remember to back up your existing ${lock directory}/*tdb before upgrading to Samba-3. If necessary,
498         Samba will upgrade databases as they are opened. Downgrading from Samba-3 to 2.2, or reversion to an earlier
499         version of Samba-3 from a later release, is an unsupported path.
500         </para>
502         <para>
503 <indexterm><primary>tdb file descriptions</primary></indexterm>
504         The old Samba-2.2.x tdb files are described in <link linkend="oldtdbfiledesc">the next table</link>.
505         </para>
508         <table frame='all' id="oldtdbfiledesc"><title>Samba-2.2.x TDB File Descriptions</title>
509         <tgroup cols='3'>
510                         <colspec align="left"/>
511                         <colspec align="justify" colwidth="1*"/>
512                         <colspec align="left"/>
513                 <thead>
514                 <row>
515                         <entry align="left">Name</entry>
516                         <entry align="justify">Description</entry>
517                         <entry align="center">Backup?</entry>
518                 </row>
519                 </thead>
520                 <tbody>
521                 <row>
522                         <entry>account_policy</entry>
523                         <entry>User policy settings</entry>
524                         <entry>yes</entry>
525                 </row>
526                 <row>
527                         <entry>brlock</entry>
528                         <entry>Byte-range file locking information.</entry>
529                         <entry>no</entry>
530                 </row>
531                 <row>
532                         <entry>connections</entry>
533                         <entry><para>Client connection information</para></entry>
534                         <entry>no</entry>
535                 </row>
536                 <row>
537                         <entry>locking</entry>
538                         <entry>Temporary file locking data.</entry>
539                         <entry>no</entry>
540                 </row>
541                 <row>
542                         <entry>messages</entry>
543                         <entry><para>Temporary storage of messages being processed by smbd.</para></entry>
544                         <entry>no</entry>
545                 </row>
546        <row>
547             <entry>ntdrivers</entry>
548             <entry><para>Stores per-printer driver information.</para></entry>
549                         <entry>yes</entry>
550         </row>
551         <row>
552             <entry>ntforms</entry>
553             <entry><para>Stores per-printer forms information.</para></entry>
554                         <entry>yes</entry>
555         </row>
556         <row>
557             <entry>ntprinters</entry>
558             <entry><para>Stores the per-printer devmode configuration settings.</para></entry>
559                         <entry>yes</entry>
560         </row>
561                 <row>
562                         <entry>printing/*.tdb</entry>
563                         <entry><para>Cached output from lpq command created on a per-print-service basis.</para></entry>
564                         <entry>no</entry>
565                 </row>
566                 <row>
568                         <entry>registry</entry>
569                         <entry><para>Read-only Samba registry skeleton that provides support for
570                                 exporting various database tables via the winreg RPCs.</para></entry>
571                         <entry>no</entry>
572                 </row>
573                 <row>
574                         <entry>sessionid</entry>
575                         <entry><para>Temporary cache for miscellaneous session information.</para></entry>
576                         <entry>no</entry>
577                 </row>
578                 <row>
579                         <entry>share_info</entry>
580                         <entry>Share ACL settings.</entry>
581                         <entry>yes</entry>
582                 </row>
583                 <row>
585                         <entry>unexpected</entry>
586                         <entry><para>Packets received for which no process was listening.</para></entry>
587                         <entry>no</entry>
588                 </row>
589                 <row>
590                         <entry>winbindd_cache</entry>
591                         <entry><para>Cache of identity information received from an NT4 or an ADS domain.</para></entry>
592                         <entry>yes</entry>
593                 </row>
594                 <row>
595                         <entry>winbindd_idmap</entry>
596                         <entry><para>New ID map table from SIDS to UNIX UIDs/GIDs.</para></entry>
597                         <entry>yes</entry>
598                 </row>
599                 </tbody>
600         </tgroup>
601         </table>
603         </sect3>
605         <sect3>
606         <title>Changes in Behavior</title>
608         <para>
609         The following issues are known changes in behavior between Samba-2.2 and
610         Samba-3 that may affect certain installations of Samba.
611         </para>
613         <orderedlist>
614                 <listitem><para>
615 <indexterm><primary>Windows domain</primary></indexterm>
616 <indexterm><primary>getpwnam() call</primary></indexterm>
617 <indexterm><primary>NT_STATUS_LOGON_FAILURE</primary></indexterm>
618                 When operating as a member of a Windows domain, Samba-2.2 would map any users authenticated by the remote DC
619                 to the <quote>guest account</quote> if a UID could not be obtained via the getpwnam() call. Samba-3 rejects
620                 the connection with the error message <quote>NT_STATUS_LOGON_FAILURE.</quote> There is no current workaround
621                 to re-establish the Samba-2.2 behavior.
622                 </para></listitem>
624                 <listitem><para>
625 <indexterm><primary>add user script</primary></indexterm>
626 <indexterm><primary>add machine script</primary></indexterm>
627                 When adding machines to a Samba-2.2 controlled domain, the
628                 <quote>add user script</quote> was used to create the UNIX identity of the
629                 machine trust account. Samba-3 introduces a new <quote>add machine
630                 script</quote> that must be specified for this purpose. Samba-3 will
631                 not fall back to using the <quote>add user script</quote> in the absence of
632                 an <quote>add machine script</quote>.
633                 </para></listitem>
634         </orderedlist>
636         </sect3>
638         <sect3>
639         <title>Passdb Backends and Authentication</title>
641         <para>
642         There have been a few new changes that Samba administrators should be
643         aware of when moving to Samba-3.
644         </para>
646         <orderedlist>
647                 <listitem><para>
648 <indexterm><primary>encrypted passwords</primary></indexterm>
649                 Encrypted passwords have been enabled by default in order to
650                 interoperate better with out-of-the-box Windows client
651                 installations. This does mean that either (a) a Samba account
652                 must be created for each user, or (b) <quote>encrypt passwords = no</quote>
653                 must be explicitly defined in &smb.conf;.
654                 </para></listitem>
656                 <listitem><para>
657 <indexterm><primary>ADS</primary></indexterm>
658 <indexterm><primary>Kerberos</primary></indexterm>
659 <indexterm><primary>LDAP</primary></indexterm>
660                 Inclusion of new <smbconfoption name="security">ads</smbconfoption> option for integration
661                 with an Active Directory domain using the native Windows Kerberos 5 and LDAP protocols.
662                 </para></listitem>
663         </orderedlist>
665         <para>
666 <indexterm><primary>account storage backends</primary></indexterm>
667         Samba-3 also includes the possibility of setting up chains of authentication methods (<smbconfoption
668         name="auth methods"/>) and account storage backends (<smbconfoption name="passdb backend"/>).  Please refer to
669         the &smb.conf; man page and <link linkend="passdb">Account Information Databases</link>, for
670         details. While both parameters assume sane default values, it is likely that you will need to understand what
671         the values actually mean in order to ensure Samba operates correctly.
672         </para>
674         <para>
675 <indexterm><primary>pdbedit</primary></indexterm>
676 <indexterm><primary>smbpasswd</primary></indexterm>
677 <indexterm><primary>net tool</primary></indexterm>
678         Certain functions of the <command>smbpasswd</command> tool have been split between the
679         new <command>smbpasswd</command> utility, the <command>net</command> tool, and the new <command>pdbedit</command>
680         utility. See the respective man pages for details.
681         </para>
683         </sect3>
685         <sect3>
686         <title>LDAP</title>
688         <para>
689         This section outlines the new features effecting Samba/LDAP integration.
690         </para>
692                 <sect4>
693                 <title>New Schema</title>
695                 <para>
696 <indexterm><primary>object class</primary></indexterm>
697 <indexterm><primary>sambaSamAccount</primary></indexterm>
698 <indexterm><primary>LDIF</primary></indexterm>
699 <indexterm><primary>attributes</primary></indexterm>
700                 A new object class (sambaSamAccount) has been introduced to replace
701                 the old sambaAccount. This change aids in the renaming of attributes
702                 to prevent clashes with attributes from other vendors. There is a
703                 conversion script (examples/LDAP/convertSambaAccount) to modify an LDIF
704                 file to the new schema.
705                 </para>
707                 <para>
708                 Example:
709 <indexterm><primary>ldapsearch</primary></indexterm>
710                 </para>
711                 <para><screen>
712                 &prompt;ldapsearch .... -LLL -b "ou=people,dc=..." &gt; old.ldif
713                 &prompt;convertSambaAccount --sid &lt;DOM SID&gt; --input old.ldif --output new.ldif
714                 </screen></para>
716                 <para>
717 <indexterm><primary>net</primary><secondary>getlocalsid</secondary></indexterm>
718                 The &lt;DOM SID&gt; can be obtained by running
719 <screen>
720 &prompt;<userinput>net getlocalsid &lt;DOMAINNAME&gt;</userinput>
721 </screen>
722 <indexterm><primary>PDC</primary></indexterm>
723                 on the Samba PDC as root.
724                 </para>
726                 <para>
727                 Under Samba-2.x the domain SID can be obtained by executing:
728 <indexterm><primary>smbpasswd</primary></indexterm>
729 <screen>
730 &prompt;<userinput>smbpasswd -S &lt;DOMAINNAME&gt;</userinput>
731 </screen>
732                 </para>
734                 <para>
735 <indexterm><primary>old sambaAccount</primary></indexterm>
736 <indexterm><primary>ldapsam_compat</primary></indexterm>
737 <indexterm><primary>object class declaration</primary></indexterm>
738 <indexterm><primary>samba.schema</primary></indexterm>
739                 The old <literal>sambaAccount</literal> schema may still be used by specifying the
740                 <parameter>ldapsam_compat</parameter> passdb backend. However, the sambaAccount and
741                 associated attributes have been moved to the historical section of
742                 the schema file and must be uncommented before use if needed.
743                 The Samba-2.2 object class declaration for a <literal>sambaAccount</literal> has not changed
744                 in the Samba-3 <filename>samba.schema</filename> file.
745                 </para>
747                 <para>
748                 Other new object classes and their uses include:
749                 </para>
751                 <itemizedlist>
752                         <listitem><para>
753 <indexterm><primary>sambaDomain</primary></indexterm>
754 <indexterm><primary>domain information</primary></indexterm>
755 <indexterm><primary>RID</primary></indexterm>
756 <indexterm><primary>ldap suffix</primary></indexterm>
757 <indexterm><primary>ldapsam</primary></indexterm>
758 <indexterm><primary>idmap</primary></indexterm>
759                         <literal>sambaDomain</literal> &smbmdash; domain information used to allocate RIDs
760                         for users and groups as necessary. The attributes are added
761                         in <quote>ldap suffix</quote> directory entry automatically if
762                         an idmap UID/GID range has been set and the <quote>ldapsam</quote>
763                         passdb backend has been selected.
764                         </para></listitem>
766                         <listitem><para>
767 <indexterm><primary>sambaGroupMapping</primary></indexterm>
768 <indexterm><primary>ldap group suffix</primary></indexterm>
769 <indexterm><primary>net groupmap</primary></indexterm>
770                         sambaGroupMapping &smbmdash; an object representing the
771                         relationship between a posixGroup and a Windows
772                         group/SID. These entries are stored in the <quote>ldap
773                         group suffix</quote> and managed by the <quote>net groupmap</quote> command.
774                         </para></listitem>
776                         <listitem><para>
777 <indexterm><primary>sambaUNIXIdPool</primary></indexterm>
778 <indexterm><primary>ldap idmap suffix</primary></indexterm>
779 <indexterm><primary>idmap UID</primary></indexterm>
780 <indexterm><primary>idmap GID</primary></indexterm>
781                         <literal>sambaUNIXIdPool</literal> &smbmdash; created in the <quote>ldap idmap suffix</quote> entry
782                         automatically and contains the next available <quote>idmap UID</quote> and
783                         <quote>idmap GID</quote>.
784                         </para></listitem>
786                         <listitem><para>
787 <indexterm><primary>sambaIdmapEntry</primary></indexterm>
788 <indexterm><primary>idmap_ldap module</primary></indexterm>
789                         <literal>sambaIdmapEntry</literal> &smbmdash; object storing a mapping between a
790                         SID and a UNIX UID/GID. These objects are created by the
791                         idmap_ldap module as needed.
792                         </para></listitem>
793                 </itemizedlist>
795                 </sect4>
797                 <sect4>
798                 <title>New Suffix for Searching</title>
800                 <para>
801 <indexterm><primary>LDAP queries</primary></indexterm>
802 <indexterm><primary>passdb backend</primary></indexterm>
803 <indexterm><primary>ldap suffix</primary></indexterm>
804 <indexterm><primary>ldap user suffix</primary></indexterm>
805 <indexterm><primary>ldap machine suffix</primary></indexterm>
806 <indexterm><primary>ldap group suffix</primary></indexterm>
807 <indexterm><primary>ldap idmap suffix</primary></indexterm>
808                 The following new &smb.conf; parameters have been added to aid in directing
809                 certain LDAP queries when <parameter>passdb backend = ldapsam://...</parameter> has been
810                 specified.
811                 </para>
813                 <itemizedlist>
814                         <listitem><para>ldap suffix         &smbmdash; used to search for user and computer accounts.</para></listitem>
815                         <listitem><para>ldap user suffix    &smbmdash; used to store user accounts.</para></listitem>
816                         <listitem><para>ldap machine suffix &smbmdash; used to store machine trust accounts.</para></listitem>
817                         <listitem><para>ldap group suffix   &smbmdash; location of posixGroup/sambaGroupMapping entries.</para></listitem>
818                         <listitem><para>ldap idmap suffix   &smbmdash; location of sambaIdmapEntry objects.</para></listitem>
819                 </itemizedlist>
821                 <para>
822 <indexterm><primary>ldap suffix</primary></indexterm>
823 <indexterm><primary>subsuffix parameters</primary></indexterm>
824                 If an <parameter>ldap suffix</parameter> is defined, it will be appended to all of the
825                 remaining subsuffix parameters. In this case, the order of the suffix
826                 listings in &smb.conf; is important. Always place the <parameter>ldap suffix</parameter> first
827                 in the list.
828                 </para>
830                 <para>
831                 Due to a limitation in Samba's &smb.conf; parsing, you should not surround
832                 the domain names with quotation marks.
833                 </para>
835                 </sect4>
837                 <sect4>
838                 <title>IdMap LDAP Support</title>
840                 <para>
841 <indexterm><primary>idmap backend</primary></indexterm>
842                 Samba-3 supports an LDAP backend for the idmap subsystem. The
843                 following options inform Samba that the idmap table should be
844                 stored on the directory server <emphasis>onterose</emphasis> in the ou=Idmap,dc=quenya,dc=org partition.
845                 </para>
847                 <smbconfblock>
848                 <smbconfsection name="[global]"/>
849                 <member>...</member>
850                 <smbconfoption name="idmap backend">ldap:ldap://onterose/</smbconfoption>
851                 <smbconfoption name="ldap idmap suffix">ou=Idmap</smbconfoption>
852                 <smbconfoption name="idmap uid">40000-50000</smbconfoption>
853                 <smbconfoption name="idmap gid">40000-50000</smbconfoption>
854                 </smbconfblock>
856                 <para>
857 <indexterm><primary>NFS</primary></indexterm>
858                 This configuration allows Winbind installations on multiple servers to
859                 share a UID/GID number space, thus avoiding the interoperability problems
860                 with NFS that were present in Samba-2.2.
861                 </para>
863                 </sect4>
865                 </sect3>
867         </sect2>
869 </sect1>
871 </chapter>