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">
8 <pubdate>August 16, 2007</pubdate>
11 <title>Updating and Upgrading Samba</title>
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.
19 <title>Key Update Requirements</title>
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.
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.
36 <title>Upgrading from Samba-3.0.x to Samba-3.2.0</title>
41 <sect2 id="oldupdatenotes">
42 <title>Upgrading from Samba-2.x to Samba-3.0.25</title>
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.
54 <title>Quick Migration Guide</title>
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.
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.
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>.
91 <title>New Features in Samba-3.x Series</title>
96 <title>New Features in Samba-3.2.x Series</title>
102 <title>New Features in Samba-3.0.x</title>
105 The major new features are:
108 <orderedlist numeration="arabic">
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.
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.
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.
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
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>.
147 <indexterm><primary>status32 codes</primary></indexterm>
148 Samba now negotiates NT-style status32 codes on the wire. This
149 considerably improves error handling.
153 <indexterm><primary>printer attributes publishing</primary></indexterm>
154 Better Windows 200x/XP printing support, including publishing
155 printer attributes in Active Directory.
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.
166 <indexterm><primary>dual-daemon winbindd</primary></indexterm>
167 New default dual-daemon winbindd support for better performance.
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.
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
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.
194 Major updates to the Samba documentation tree.
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.
206 Plus lots of other improvements!
211 <title>Configuration Parameter Changes</title>
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.
219 Please refer to the smb.conf(5) man page for complete descriptions of new or modified
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>.
233 <title>Removed Parameters</title>
235 <indexterm><primary>deleted parameters</primary></indexterm>
237 In alphabetical order, these are the parameters eliminated from Samba-2.2.x through 3.0.25.
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>
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>
287 <listitem><para>abort shutdown script</para></listitem>
288 <listitem><para>shutdown script</para></listitem>
291 <para>User and Group Account Management</para>
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>
306 <para>Authentication</para>
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>
315 <para>Protocol Options</para>
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>
341 <para>File Service</para>
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>
381 <para>Printing</para>
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>
393 <para>Unicode and Character Sets</para>
396 <listitem><para>display charset</para></listitem>
397 <listitem><para>dos charset</para></listitem>
398 <listitem><para>UNIX charset</para></listitem>
401 <para>SID to UID/GID Mappings</para>
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>
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>
428 <para>General Configuration</para>
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>
440 <title>Modified Parameters (Changes in Behavior)</title>
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>
475 <title>New Functionality</title>
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.
486 <title>TDB Data Files</title>
488 <indexterm><primary>tdb data files</primary></indexterm>
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.
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.
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>.
508 <table frame='all' id="oldtdbfiledesc"><title>Samba-2.2.x TDB File Descriptions</title>
510 <colspec align="left"/>
511 <colspec align="justify" colwidth="1*"/>
512 <colspec align="left"/>
515 <entry align="left">Name</entry>
516 <entry align="justify">Description</entry>
517 <entry align="center">Backup?</entry>
522 <entry>account_policy</entry>
523 <entry>User policy settings</entry>
527 <entry>brlock</entry>
528 <entry>Byte-range file locking information.</entry>
532 <entry>connections</entry>
533 <entry><para>Client connection information</para></entry>
537 <entry>locking</entry>
538 <entry>Temporary file locking data.</entry>
542 <entry>messages</entry>
543 <entry><para>Temporary storage of messages being processed by smbd.</para></entry>
547 <entry>ntdrivers</entry>
548 <entry><para>Stores per-printer driver information.</para></entry>
552 <entry>ntforms</entry>
553 <entry><para>Stores per-printer forms information.</para></entry>
557 <entry>ntprinters</entry>
558 <entry><para>Stores the per-printer devmode configuration settings.</para></entry>
562 <entry>printing/*.tdb</entry>
563 <entry><para>Cached output from lpq command created on a per-print-service basis.</para></entry>
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>
574 <entry>sessionid</entry>
575 <entry><para>Temporary cache for miscellaneous session information.</para></entry>
579 <entry>share_info</entry>
580 <entry>Share ACL settings.</entry>
585 <entry>unexpected</entry>
586 <entry><para>Packets received for which no process was listening.</para></entry>
590 <entry>winbindd_cache</entry>
591 <entry><para>Cache of identity information received from an NT4 or an ADS domain.</para></entry>
595 <entry>winbindd_idmap</entry>
596 <entry><para>New ID map table from SIDS to UNIX UIDs/GIDs.</para></entry>
606 <title>Changes in Behavior</title>
609 The following issues are known changes in behavior between Samba-2.2 and
610 Samba-3 that may affect certain installations of Samba.
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.
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>.
639 <title>Passdb Backends and Authentication</title>
642 There have been a few new changes that Samba administrators should be
643 aware of when moving to Samba-3.
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;.
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.
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.
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.
689 This section outlines the new features effecting Samba/LDAP integration.
693 <title>New Schema</title>
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.
709 <indexterm><primary>ldapsearch</primary></indexterm>
712 &prompt;ldapsearch .... -LLL -b "ou=people,dc=..." > old.ldif
713 &prompt;convertSambaAccount --sid <DOM SID> --input old.ldif --output new.ldif
717 <indexterm><primary>net</primary><secondary>getlocalsid</secondary></indexterm>
718 The <DOM SID> can be obtained by running
720 &prompt;<userinput>net getlocalsid <DOMAINNAME></userinput>
722 <indexterm><primary>PDC</primary></indexterm>
723 on the Samba PDC as root.
727 Under Samba-2.x the domain SID can be obtained by executing:
728 <indexterm><primary>smbpasswd</primary></indexterm>
730 &prompt;<userinput>smbpasswd -S <DOMAINNAME></userinput>
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.
748 Other new object classes and their uses include:
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.
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.
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>.
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.
798 <title>New Suffix for Searching</title>
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
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>
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
831 Due to a limitation in Samba's &smb.conf; parsing, you should not surround
832 the domain names with quotation marks.
838 <title>IdMap LDAP Support</title>
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.
848 <smbconfsection name="[global]"/>
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>
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.