2004-06-05 22:01:16 +00:00
<?xml version="1.0" encoding="iso-8859-1"?>
2005-03-13 16:21:54 +00:00
<!DOCTYPE chapter PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
2004-04-07 10:15:11 +00:00
<chapter id= "upgrading-to-3.0" >
<chapterinfo >
&author.jelmer;
&author.jht;
&author.jerry;
<pubdate > June 30, 2003</pubdate>
</chapterinfo>
2005-05-17 09:27:28 +00:00
<title > Upgrading from Samba-2.x to Samba-3.0.20</title>
2004-04-07 10:15:11 +00:00
<para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > Samba differences</primary> </indexterm>
<indexterm > <primary > changed parameters</primary> </indexterm>
<indexterm > <primary > simple guide</primary> </indexterm>
2005-05-17 09:27:28 +00:00
This chapter deals exclusively with the differences between Samba-3.0.20 and Samba-2.2.8a.
2004-04-07 10:15:11 +00:00
It points out where configuration parameters have changed, and provides a simple guide for
2005-05-17 09:27:28 +00:00
the move from 2.2.x to 3.0.20.
2004-04-07 10:15:11 +00:00
</para>
<sect1 >
<title > Quick Migration Guide</title>
<para >
2005-05-17 09:27:28 +00:00
Samba-3.0.20 default behavior should be approximately the same as Samba-2.2.x.
2005-03-12 22:34:38 +00:00
The default behavior when the new parameter <smbconfoption name= "passdb backend" />
2004-04-07 10:15:11 +00:00
is not defined in the &smb.conf; file provides the same default behavior as Samba-2.2.x
2005-06-16 02:10:11 +00:00
with <smbconfoption name= "encrypt passwords" > Yes</smbconfoption> and
2004-04-07 10:15:11 +00:00
will use the <filename > smbpasswd</filename> database.
</para>
<para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > behavior approximately same</primary> </indexterm>
<indexterm > <primary > differing protocol</primary> </indexterm>
2005-06-16 02:10:11 +00:00
So why say that <emphasis > behavior should be approximately the same as Samba-2.2.x</emphasis> ? Because
2005-05-17 09:27:28 +00:00
Samba-3.0.20 can negotiate new protocols, such as support for native Unicode, that may result in
2004-04-07 10:15:11 +00:00
differing protocol code paths being taken. The new behavior under such circumstances is not
exactly the same as the old one. The good news is that the domain and machine SIDs will be
preserved across the upgrade.
</para>
<para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > LDAP backend</primary> </indexterm>
<indexterm > <primary > database</primary> </indexterm>
<indexterm > <primary > pdbedit</primary> </indexterm>
<indexterm > <primary > Samba-3-compatible LDAP backend</primary> </indexterm>
2005-06-16 02:10:11 +00:00
If the Samba-2.2.x system is using an LDAP backend, and there is no time to update the LDAP
2005-03-12 22:34:38 +00:00
database, then make sure that <smbconfoption name= "passdb backend" > ldapsam_compat</smbconfoption>
2004-04-07 10:15:11 +00:00
is specified in the &smb.conf; file. For the rest, behavior should remain more or less the same.
2005-06-16 02:10:11 +00:00
At a later date, when there is time to implement a new Samba-3-compatible LDAP backend, it is possible
2004-04-07 10:15:11 +00:00
to migrate the old LDAP database to the new one through use of the <command > pdbedit</command> .
See <link linkend= "pdbeditthing" > The <emphasis > pdbedit</emphasis> Command</link> .
</para>
</sect1>
<sect1 >
<title > New Features in Samba-3</title>
<para >
The major new features are:
</para>
<orderedlist numeration= "arabic" >
2005-06-28 19:00:57 +00:00
<listitem > <para >
<indexterm > <primary > ADS</primary> </indexterm>
<indexterm > <primary > LDAP/Kerberos</primary> </indexterm>
2004-04-07 10:15:11 +00:00
Active Directory support. This release is able to join an ADS realm
as a member server and authenticate users using LDAP/Kerberos.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > Unicode</primary> </indexterm>
<indexterm > <primary > multibyte character sets</primary> </indexterm>
2005-06-16 02:10:11 +00:00
Unicode support. Samba will now negotiate Unicode on the wire, and
internally there is a much better infrastructure for multibyte
2004-04-07 10:15:11 +00:00
and Unicode character sets.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > authentication system</primary> </indexterm>
2004-04-07 10:15:11 +00:00
New authentication system. The internal authentication system has
been almost completely rewritten. Most of the changes are internal,
but the new authoring system is also very configurable.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > filename mangling</primary> </indexterm>
2004-04-07 10:15:11 +00:00
New filename mangling system. The filename mangling system has been
completely rewritten. An internal database now stores mangling maps
persistently.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > net command</primary> </indexterm>
2004-04-07 10:15:11 +00:00
New <quote > net</quote> command. A new <quote > net</quote> command has been added. It is
somewhat similar to the <quote > net</quote> command in Windows. Eventually, we
plan to replace a bunch of other utilities (such as smbpasswd)
with subcommands in <quote > net</quote> .
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > status32 codes</primary> </indexterm>
2004-04-07 10:15:11 +00:00
Samba now negotiates NT-style status32 codes on the wire. This
considerably improves error handling.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > printer attributes publishing</primary> </indexterm>
2005-06-16 02:10:11 +00:00
Better Windows 200x/XP printing support, including publishing
2004-04-07 10:15:11 +00:00
printer attributes in Active Directory.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > RPC modules</primary> </indexterm>
<indexterm > <primary > passdb backends</primary> </indexterm>
<indexterm > <primary > character sets</primary> </indexterm>
2004-04-07 10:15:11 +00:00
New loadable RPC modules for passdb backends and character sets.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > dual-daemon winbindd</primary> </indexterm>
2004-04-07 10:15:11 +00:00
New default dual-daemon winbindd support for better performance.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > migrating</primary> </indexterm>
<indexterm > <primary > maintaining ids</primary> </indexterm>
<indexterm > <primary > SID</primary> </indexterm>
2004-04-07 10:15:11 +00:00
Support for migrating from a Windows NT 4.0 domain to a Samba
2005-06-16 02:10:11 +00:00
domain and maintaining user, group, and domain SIDs.
2004-04-07 10:15:11 +00:00
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > trust relationships</primary> </indexterm>
<indexterm > <primary > domain controllers</primary> </indexterm>
2004-04-07 10:15:11 +00:00
Support for establishing trust relationships with Windows NT 4.0
2005-06-16 02:10:11 +00:00
domain controllers.
2004-04-07 10:15:11 +00:00
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > Winbind architecture</primary> </indexterm>
<indexterm > <primary > LDAP directory</primary> </indexterm>
<indexterm > <primary > ID mapping</primary> </indexterm>
2004-04-07 10:15:11 +00:00
Initial support for a distributed Winbind architecture using
an LDAP directory for storing SID to UID/GID mappings.
</para> </listitem>
<listitem > <para >
Major updates to the Samba documentation tree.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > SMB signing</primary> </indexterm>
<indexterm > <primary > security settings</primary> </indexterm>
2004-04-07 10:15:11 +00:00
Full support for client and server SMB signing to ensure
compatibility with default Windows 2003 security settings.
</para> </listitem>
</orderedlist>
<para >
Plus lots of other improvements!
</para>
</sect1>
<sect1 >
<title > Configuration Parameter Changes</title>
<para >
This section contains a brief listing of changes to &smb.conf; options
2005-05-17 09:27:28 +00:00
in the 3.0.20 release. Please refer to the smb.conf(5) man page for
2004-04-07 10:15:11 +00:00
complete descriptions of new or modified parameters.
</para>
<sect2 >
<title > Removed Parameters</title>
2005-06-28 19:00:57 +00:00
<indexterm > <primary > deleted parameters</primary> </indexterm>
2005-07-08 10:16:53 +00:00
<para > In alphabetical order, these are the parameters eliminated during the Samba 3.0.0 series prior to release of Samba 3.0.20.</para>
2004-04-07 10:15:11 +00:00
<itemizedlist >
<listitem > <para > admin log </para> </listitem>
<listitem > <para > alternate permissions </para> </listitem>
<listitem > <para > character set </para> </listitem>
<listitem > <para > client codepage </para> </listitem>
<listitem > <para > code page directory </para> </listitem>
<listitem > <para > coding system </para> </listitem>
<listitem > <para > domain admin group </para> </listitem>
<listitem > <para > domain guest group </para> </listitem>
<listitem > <para > force unknown acl user </para> </listitem>
2005-07-08 10:16:53 +00:00
<listitem > <para > ldap filter</para> </listitem>
2005-08-26 22:25:05 +00:00
<listitem > <para > min password length (deprecated)</para> </listitem>
2004-04-07 10:15:11 +00:00
<listitem > <para > nt smb support </para> </listitem>
<listitem > <para > post script </para> </listitem>
<listitem > <para > printer driver </para> </listitem>
<listitem > <para > printer driver file </para> </listitem>
<listitem > <para > printer driver location </para> </listitem>
2005-07-08 10:16:53 +00:00
<listitem > <para > read size</para> </listitem>
<listitem > <para > source environment</para> </listitem>
2004-04-07 10:15:11 +00:00
<listitem > <para > status </para> </listitem>
<listitem > <para > strip dot </para> </listitem>
<listitem > <para > total print jobs </para> </listitem>
2005-07-08 10:16:53 +00:00
<listitem > <para > unicode</para> </listitem>
2004-04-07 10:15:11 +00:00
<listitem > <para > use rhosts </para> </listitem>
<listitem > <para > valid chars </para> </listitem>
<listitem > <para > vfs options </para> </listitem>
2005-07-08 10:16:53 +00:00
<listitem > <para > winbind enable local accounts</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
</sect2>
<sect2 >
<title > New Parameters</title>
2005-07-08 10:16:53 +00:00
<para > New parameters in the Samba 3.0.0 series prior to release of Samba 3.0.20 are grouped by function):</para>
2004-04-07 10:15:11 +00:00
<para > Remote Management</para>
2005-06-28 19:00:57 +00:00
<indexterm > <primary > new parameters</primary> </indexterm>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > abort shutdown script</para> </listitem>
<listitem > <para > shutdown script</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
2005-06-16 02:10:11 +00:00
<para > User and Group Account Management</para>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > add group script</para> </listitem>
<listitem > <para > add machine script</para> </listitem>
<listitem > <para > add user to group script</para> </listitem>
<listitem > <para > algorithmic rid base</para> </listitem>
<listitem > <para > delete group script</para> </listitem>
<listitem > <para > delete user from group script</para> </listitem>
<listitem > <para > passdb backend</para> </listitem>
<listitem > <para > set primary group script</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
2005-06-16 02:10:11 +00:00
<para > Authentication</para>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > auth methods</para> </listitem>
<listitem > <para > ldap password sync</para> </listitem>
<listitem > <para > realm</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
2005-06-16 02:10:11 +00:00
<para > Protocol Options</para>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > afs token lifetime</para> </listitem>
<listitem > <para > client lanman auth</para> </listitem>
<listitem > <para > client NTLMv2 auth</para> </listitem>
<listitem > <para > client schannel</para> </listitem>
<listitem > <para > client signing</para> </listitem>
<listitem > <para > client use spnego</para> </listitem>
<listitem > <para > defer sharing violations</para> </listitem>
<listitem > <para > disable netbios</para> </listitem>
<listitem > <para > enable privileges</para> </listitem>
<listitem > <para > use kerberos keytab</para> </listitem>
<listitem > <para > log nt token command</para> </listitem>
<listitem > <para > ntlm auth</para> </listitem>
2004-04-07 10:15:11 +00:00
<listitem > <para > paranoid server security </para> </listitem>
2005-07-08 10:16:53 +00:00
<listitem > <para > sendfile</para> </listitem>
<listitem > <para > server schannel</para> </listitem>
<listitem > <para > server signing</para> </listitem>
<listitem > <para > smb ports</para> </listitem>
<listitem > <para > use spnego</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
2005-06-16 02:10:11 +00:00
<para > File Service</para>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > allocation roundup size</para> </listitem>
<listitem > <para > acl check permissions</para> </listitem>
2005-08-26 22:25:05 +00:00
<listitem > <para > acl group control</para> </listitem>
<listitem > <para > acl map full control</para> </listitem>
<listitem > <para > aio read size</para> </listitem>
<listitem > <para > aio write size</para> </listitem>
2005-07-08 10:16:53 +00:00
<listitem > <para > ea support</para> </listitem>
<listitem > <para > enable asu support</para> </listitem>
<listitem > <para > force unknown acl user</para> </listitem>
<listitem > <para > get quota command</para> </listitem>
<listitem > <para > hide special files</para> </listitem>
<listitem > <para > hide unwriteable files</para> </listitem>
<listitem > <para > inherit owner</para> </listitem>
<listitem > <para > hostname lookups</para> </listitem>
<listitem > <para > kernel change notify</para> </listitem>
<listitem > <para > mangle prefix</para> </listitem>
<listitem > <para > map acl inherit</para> </listitem>
<listitem > <para > max stat cache size</para> </listitem>
<listitem > <para > msdfs proxy</para> </listitem>
<listitem > <para > set quota command</para> </listitem>
<listitem > <para > store dos attributes</para> </listitem>
<listitem > <para > use sendfile</para> </listitem>
<listitem > <para > vfs objects</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
2005-06-16 02:10:11 +00:00
<para > Printing</para>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > cups options</para> </listitem>
<listitem > <para > cups server</para> </listitem>
<listitem > <para > force printername</para> </listitem>
<listitem > <para > max reported print jobs</para> </listitem>
<listitem > <para > printcap cache time</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
2005-06-16 02:10:11 +00:00
<para > Unicode and Character Sets</para>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > display charset</para> </listitem>
<listitem > <para > dos charset</para> </listitem>
<listitem > <para > UNIX charset</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
2005-06-16 02:10:11 +00:00
<para > SID to UID/GID Mappings</para>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > idmap backend</para> </listitem>
<listitem > <para > idmap gid</para> </listitem>
<listitem > <para > idmap uid</para> </listitem>
2005-08-26 22:25:05 +00:00
<listitem > <para > username map script</para> </listitem>
2005-07-08 10:16:53 +00:00
<listitem > <para > winbind nested groups</para> </listitem>
<listitem > <para > winbind trusted domains only</para> </listitem>
<listitem > <para > template primary group</para> </listitem>
<listitem > <para > enable rid algorithm</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
2005-06-16 02:10:11 +00:00
<para > LDAP</para>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > ldap delete dn</para> </listitem>
<listitem > <para > ldap group suffix</para> </listitem>
<listitem > <para > ldap idmap suffix</para> </listitem>
<listitem > <para > ldap machine suffix</para> </listitem>
<listitem > <para > ldap passwd sync</para> </listitem>
<listitem > <para > ldap replication sleep</para> </listitem>
<listitem > <para > ldap timeout</para> </listitem>
<listitem > <para > ldap user suffix</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
2005-06-16 02:10:11 +00:00
<para > General Configuration</para>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > preload modules</para> </listitem>
<listitem > <para > privatedir</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
</sect2>
<sect2 >
2005-06-16 02:10:11 +00:00
<title > Modified Parameters (Changes in Behavior)</title>
2004-04-07 10:15:11 +00:00
<itemizedlist >
2005-07-08 10:16:53 +00:00
<listitem > <para > dos filetimes (enabled by default)</para> </listitem>
2004-04-07 10:15:11 +00:00
<listitem > <para > encrypt passwords (enabled by default) </para> </listitem>
<listitem > <para > mangling method (set to hash2 by default) </para> </listitem>
2005-07-08 10:16:53 +00:00
<listitem > <para > map to guest (new parameter added)</para> </listitem>
<listitem > <para > only user (deprecated)</para> </listitem>
2004-04-07 10:15:11 +00:00
<listitem > <para > passwd chat </para> </listitem>
<listitem > <para > passwd program </para> </listitem>
<listitem > <para > password server </para> </listitem>
2005-07-08 10:16:53 +00:00
<listitem > <para > printer admin (deprecated)</para> </listitem>
2004-04-07 10:15:11 +00:00
<listitem > <para > restrict anonymous (integer value) </para> </listitem>
<listitem > <para > security (new ads value) </para> </listitem>
<listitem > <para > strict locking (enabled by default) </para> </listitem>
<listitem > <para > winbind cache time (increased to 5 minutes) </para> </listitem>
<listitem > <para > winbind uid (deprecated in favor of idmap uid) </para> </listitem>
<listitem > <para > winbind gid (deprecated in favor of idmap gid) </para> </listitem>
2005-08-26 22:25:05 +00:00
<listitem > <para > winbindd nss info</para> </listitem>
2005-07-08 10:16:53 +00:00
<listitem > <para > write cache (deprecated)</para> </listitem>
2004-04-07 10:15:11 +00:00
</itemizedlist>
</sect2>
</sect1>
<sect1 >
<title > New Functionality</title>
<sect2 >
<title > Databases</title>
<para >
This section contains brief descriptions of any new databases
2005-06-16 02:10:11 +00:00
introduced in Samba-3. Please remember to back up your existing
2004-04-07 10:15:11 +00:00
${lock directory}/*tdb before upgrading to Samba-3. Samba will
upgrade databases as they are opened (if necessary), but downgrading
from 3.0 to 2.2 is an unsupported path.
</para>
<para >
The new tdb files are described in <link linkend= "tdbfiledesc" > the next table</link> .
</para>
<table frame= 'all' id= "tdbfiledesc" > <title > TDB File Descriptions</title>
<tgroup cols= '3' >
<colspec align= "left" />
2004-09-05 16:14:06 +00:00
<colspec align= "justify" colwidth= "1*" />
2004-04-07 10:15:11 +00:00
<colspec align= "left" />
<thead >
<row >
<entry align= "left" > Name</entry>
<entry align= "justify" > Description</entry>
<entry align= "center" > Backup?</entry>
</row>
</thead>
<tbody >
<row >
<entry > account_policy</entry>
<entry > User policy settings</entry>
<entry > yes</entry>
</row>
<row >
<entry > gencache</entry>
<entry > Generic caching db</entry>
<entry > no</entry>
</row>
<row >
<entry > group_mapping</entry>
<entry > <para > Mapping table from Windows groups/SID to UNIX groups</para> </entry>
<entry > yes</entry>
</row>
<row >
<entry > idmap</entry>
2005-06-16 02:10:11 +00:00
<entry > <para > New ID map table from SIDS to UNIX UIDs/GIDs</para> </entry>
2004-04-07 10:15:11 +00:00
<entry > yes</entry>
</row>
<row >
<entry > namecache</entry>
<entry > Name resolution cache entries</entry>
<entry > no</entry>
</row>
<row >
<entry > netlogon_unigrp</entry>
<entry > <para > Cache of universal group membership obtained when operating
as a member of a Windows domain</para> </entry>
<entry > no</entry>
</row>
<row >
<entry > printing/*.tdb</entry>
2005-06-16 02:10:11 +00:00
<entry > <para > Cached output from lpq command created on a per-print-service basis</para> </entry>
2004-04-07 10:15:11 +00:00
<entry > no</entry>
</row>
<row >
<entry > registry</entry>
<entry > <para > Read-only Samba registry skeleton that provides support for
2005-06-16 02:10:11 +00:00
exporting various database tables via the winreg RPCs</para> </entry>
2004-04-07 10:15:11 +00:00
<entry > no</entry>
</row>
</tbody>
</tgroup>
</table>
</sect2>
<sect2 >
<title > Changes in Behavior</title>
<para >
The following issues are known changes in behavior between Samba-2.2 and
Samba-3 that may affect certain installations of Samba.
</para>
<orderedlist >
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > Windows domain</primary> </indexterm>
<indexterm > <primary > getpwnam() call</primary> </indexterm>
<indexterm > <primary > NT_STATUS_LOGON_FAILURE</primary> </indexterm>
2005-07-06 00:12:28 +00:00
When operating as a member of a Windows domain, Samba-2.2 would map any users authenticated by the remote DC
to the <quote > guest account</quote> if a UID could not be obtained via the getpwnam() call. Samba-3 rejects
the connection with the error message <quote > NT_STATUS_LOGON_FAILURE.</quote> There is no current workaround
to re-establish the Samba-2.2 behavior.
2004-04-07 10:15:11 +00:00
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > add user script</primary> </indexterm>
<indexterm > <primary > add machine script</primary> </indexterm>
2004-04-07 10:15:11 +00:00
When adding machines to a Samba-2.2 controlled domain, the
<quote > add user script</quote> was used to create the UNIX identity of the
2005-06-16 02:10:11 +00:00
machine trust account. Samba-3 introduces a new <quote > add machine
2004-04-07 10:15:11 +00:00
script</quote> that must be specified for this purpose. Samba-3 will
not fall back to using the <quote > add user script</quote> in the absence of
an <quote > add machine script</quote> .
</para> </listitem>
</orderedlist>
</sect2>
<sect2 >
<title > Passdb Backends and Authentication</title>
<para >
There have been a few new changes that Samba administrators should be
aware of when moving to Samba-3.
</para>
<orderedlist >
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > encrypted passwords</primary> </indexterm>
2004-04-07 10:15:11 +00:00
Encrypted passwords have been enabled by default in order to
interoperate better with out-of-the-box Windows client
installations. This does mean that either (a) a Samba account
must be created for each user, or (b) <quote > encrypt passwords = no</quote>
must be explicitly defined in &smb.conf; .
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > ADS</primary> </indexterm>
<indexterm > <primary > Kerberos</primary> </indexterm>
<indexterm > <primary > LDAP</primary> </indexterm>
2005-03-12 22:34:38 +00:00
Inclusion of new <smbconfoption name= "security" > ads</smbconfoption> option for integration
2004-04-07 10:15:11 +00:00
with an Active Directory domain using the native Windows Kerberos 5 and LDAP protocols.
</para> </listitem>
</orderedlist>
<para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > account storage backends</primary> </indexterm>
Samba-3 also includes the possibility of setting up chains of authentication methods (<smbconfoption
name="auth methods"/>) and account storage backends (<smbconfoption name= "passdb backend" /> ). Please refer to
the &smb.conf; man page and <link linkend= "passdb" > Account Information Databases</link> , for
details. While both parameters assume sane default values, it is likely that you will need to understand what
the values actually mean in order to ensure Samba operates correctly.
2004-04-07 10:15:11 +00:00
</para>
<para >
<indexterm > <primary > pdbedit</primary> </indexterm>
2005-06-28 19:00:57 +00:00
<indexterm > <primary > smbpasswd</primary> </indexterm>
<indexterm > <primary > net tool</primary> </indexterm>
2004-04-07 10:15:11 +00:00
Certain functions of the <command > smbpasswd</command> tool have been split between the
2005-06-16 02:10:11 +00:00
new <command > smbpasswd</command> utility, the <command > net</command> tool, and the new <command > pdbedit</command>
2004-04-07 10:15:11 +00:00
utility. See the respective man pages for details.
</para>
</sect2>
<sect2 >
<title > LDAP</title>
<para >
This section outlines the new features effecting Samba/LDAP integration.
</para>
<sect3 >
<title > New Schema</title>
<para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > object class</primary> </indexterm>
<indexterm > <primary > sambaSamAccount</primary> </indexterm>
<indexterm > <primary > LDIF</primary> </indexterm>
<indexterm > <primary > attributes</primary> </indexterm>
2004-04-07 10:15:11 +00:00
A new object class (sambaSamAccount) has been introduced to replace
2005-06-16 02:10:11 +00:00
the old sambaAccount. This change aids in the renaming of attributes
2004-04-07 10:15:11 +00:00
to prevent clashes with attributes from other vendors. There is a
conversion script (examples/LDAP/convertSambaAccount) to modify an LDIF
file to the new schema.
</para>
<para >
Example:
2005-06-28 19:00:57 +00:00
<indexterm > <primary > ldapsearch</primary> </indexterm>
2004-04-07 10:15:11 +00:00
</para>
<para > <screen >
&prompt; ldapsearch .... -LLL -b "ou=people,dc=..." > old.ldif
&prompt; convertSambaAccount --sid < DOM SID> --input old.ldif --output new.ldif
</screen> </para>
<para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > net</primary> <secondary > getlocalsid</secondary> </indexterm>
2004-04-07 10:15:11 +00:00
The < DOM SID> can be obtained by running
<screen >
&prompt; <userinput > net getlocalsid < DOMAINNAME> </userinput>
</screen>
2005-06-28 19:00:57 +00:00
<indexterm > <primary > PDC</primary> </indexterm>
2004-04-07 10:15:11 +00:00
on the Samba PDC as root.
</para>
2004-11-23 16:25:57 +00:00
<para >
2005-06-16 02:10:11 +00:00
Under Samba-2.x the domain SID can be obtained by executing:
2005-06-28 19:00:57 +00:00
<indexterm > <primary > smbpasswd</primary> </indexterm>
2004-11-23 16:25:57 +00:00
<screen >
2004-11-23 18:47:50 +00:00
&prompt; <userinput > smbpasswd -S < DOMAINNAME> </userinput>
2004-11-23 16:25:57 +00:00
</screen>
</para>
2004-04-07 10:15:11 +00:00
<para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > old sambaAccount</primary> </indexterm>
<indexterm > <primary > ldapsam_compat</primary> </indexterm>
<indexterm > <primary > object class declaration</primary> </indexterm>
<indexterm > <primary > samba.schema</primary> </indexterm>
The old <literal > sambaAccount</literal> schema may still be used by specifying the
2004-04-07 10:15:11 +00:00
<parameter > ldapsam_compat</parameter> passdb backend. However, the sambaAccount and
associated attributes have been moved to the historical section of
the schema file and must be uncommented before use if needed.
2005-06-28 19:00:57 +00:00
The Samba-2.2 object class declaration for a <literal > sambaAccount</literal> has not changed
in the Samba-3 <filename > samba.schema</filename> file.
2004-04-07 10:15:11 +00:00
</para>
<para >
Other new object classes and their uses include:
</para>
<itemizedlist >
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > sambaDomain</primary> </indexterm>
<indexterm > <primary > domain information</primary> </indexterm>
<indexterm > <primary > RID</primary> </indexterm>
<indexterm > <primary > ldap suffix</primary> </indexterm>
<indexterm > <primary > ldapsam</primary> </indexterm>
<indexterm > <primary > idmap</primary> </indexterm>
<literal > sambaDomain</literal> &smbmdash; domain information used to allocate RIDs
2004-04-07 10:15:11 +00:00
for users and groups as necessary. The attributes are added
in <quote > ldap suffix</quote> directory entry automatically if
an idmap UID/GID range has been set and the <quote > ldapsam</quote>
passdb backend has been selected.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > sambaGroupMapping</primary> </indexterm>
<indexterm > <primary > ldap group suffix</primary> </indexterm>
<indexterm > <primary > net groupmap</primary> </indexterm>
2004-04-07 10:15:11 +00:00
sambaGroupMapping &smbmdash; an object representing the
relationship between a posixGroup and a Windows
group/SID. These entries are stored in the <quote > ldap
group suffix</quote> and managed by the <quote > net groupmap</quote> command.
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > sambaUNIXIdPool</primary> </indexterm>
<indexterm > <primary > ldap idmap suffix</primary> </indexterm>
<indexterm > <primary > idmap UID</primary> </indexterm>
<indexterm > <primary > idmap GID</primary> </indexterm>
<literal > sambaUNIXIdPool</literal> &smbmdash; created in the <quote > ldap idmap suffix</quote> entry
2004-04-07 10:15:11 +00:00
automatically and contains the next available <quote > idmap UID</quote> and
<quote > idmap GID</quote> .
</para> </listitem>
<listitem > <para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > sambaIdmapEntry</primary> </indexterm>
<indexterm > <primary > idmap_ldap module</primary> </indexterm>
<literal > sambaIdmapEntry</literal> &smbmdash; object storing a mapping between a
2004-04-07 10:15:11 +00:00
SID and a UNIX UID/GID. These objects are created by the
idmap_ldap module as needed.
</para> </listitem>
</itemizedlist>
</sect3>
<sect3 >
<title > New Suffix for Searching</title>
<para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > LDAP queries</primary> </indexterm>
<indexterm > <primary > passdb backend</primary> </indexterm>
<indexterm > <primary > ldap suffix</primary> </indexterm>
<indexterm > <primary > ldap user suffix</primary> </indexterm>
<indexterm > <primary > ldap machine suffix</primary> </indexterm>
<indexterm > <primary > ldap group suffix</primary> </indexterm>
<indexterm > <primary > ldap idmap suffix</primary> </indexterm>
The following new &smb.conf; parameters have been added to aid in directing
2004-04-07 10:15:11 +00:00
certain LDAP queries when <parameter > passdb backend = ldapsam://...</parameter> has been
specified.
</para>
<itemizedlist >
<listitem > <para > ldap suffix &smbmdash; used to search for user and computer accounts.</para> </listitem>
<listitem > <para > ldap user suffix &smbmdash; used to store user accounts.</para> </listitem>
2005-06-16 02:10:11 +00:00
<listitem > <para > ldap machine suffix &smbmdash; used to store machine trust accounts.</para> </listitem>
2004-04-07 10:15:11 +00:00
<listitem > <para > ldap group suffix &smbmdash; location of posixGroup/sambaGroupMapping entries.</para> </listitem>
<listitem > <para > ldap idmap suffix &smbmdash; location of sambaIdmapEntry objects.</para> </listitem>
</itemizedlist>
<para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > ldap suffix</primary> </indexterm>
<indexterm > <primary > subsuffix parameters</primary> </indexterm>
2004-04-07 10:15:11 +00:00
If an <parameter > ldap suffix</parameter> is defined, it will be appended to all of the
2005-06-16 02:10:11 +00:00
remaining subsuffix parameters. In this case, the order of the suffix
2005-06-28 19:00:57 +00:00
listings in &smb.conf; is important. Always place the <parameter > ldap suffix</parameter> first
2004-04-07 10:15:11 +00:00
in the list.
</para>
<para >
Due to a limitation in Samba's &smb.conf; parsing, you should not surround
2005-06-16 02:10:11 +00:00
the domain names with quotation marks.
2004-04-07 10:15:11 +00:00
</para>
</sect3>
<sect3 >
<title > IdMap LDAP Support</title>
<para >
2005-06-16 02:10:11 +00:00
Samba-3 supports an LDAP backend for the idmap subsystem. The
2004-04-07 10:15:11 +00:00
following options inform Samba that the idmap table should be
2005-06-16 02:10:11 +00:00
stored on the directory server <emphasis > onterose</emphasis> in the ou=idmap,dc=quenya,dc=org partition.
2004-04-07 10:15:11 +00:00
</para>
<smbconfblock >
2005-03-13 18:25:08 +00:00
<smbconfsection name= "[global]" />
2004-04-07 10:15:11 +00:00
<member > ...</member>
2005-03-12 22:34:38 +00:00
<smbconfoption name= "idmap backend" > ldap:ldap://onterose/</smbconfoption>
<smbconfoption name= "ldap idmap suffix" > ou=idmap,dc=quenya,dc=org</smbconfoption>
<smbconfoption name= "idmap uid" > 40000-50000</smbconfoption>
<smbconfoption name= "idmap gid" > 40000-50000</smbconfoption>
2004-04-07 10:15:11 +00:00
</smbconfblock>
<para >
2005-06-28 19:00:57 +00:00
<indexterm > <primary > NFS</primary> </indexterm>
2004-04-07 10:15:11 +00:00
This configuration allows Winbind installations on multiple servers to
share a UID/GID number space, thus avoiding the interoperability problems
with NFS that were present in Samba-2.2.
</para>
</sect3>
</sect2>
</sect1>
</chapter>