diff options
author | Gerald Carter <jerry@samba.org> | 2002-09-25 15:10:57 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-09-25 15:10:57 +0000 |
commit | 115a39775cb923d026dde58633b6ba6aef3a1943 (patch) | |
tree | 4e9f7bb19788459fb8a8f88d52c59f3885d29fc6 /docs/docbook/projdoc/Samba-BDC-HOWTO.sgml | |
parent | ec0b8aa70454cab4a918ab09e8ed52d60b4b3256 (diff) | |
download | samba-115a39775cb923d026dde58633b6ba6aef3a1943.tar.gz samba-115a39775cb923d026dde58633b6ba6aef3a1943.tar.bz2 samba-115a39775cb923d026dde58633b6ba6aef3a1943.zip |
sync'ing up for 3.0alpha20 release
(This used to be commit b5d03c7b55fb2f34fa4d0228abe4389020e5ed5f)
Diffstat (limited to 'docs/docbook/projdoc/Samba-BDC-HOWTO.sgml')
-rw-r--r-- | docs/docbook/projdoc/Samba-BDC-HOWTO.sgml | 109 |
1 files changed, 69 insertions, 40 deletions
diff --git a/docs/docbook/projdoc/Samba-BDC-HOWTO.sgml b/docs/docbook/projdoc/Samba-BDC-HOWTO.sgml index 53a0959c39..08cdc3a668 100644 --- a/docs/docbook/projdoc/Samba-BDC-HOWTO.sgml +++ b/docs/docbook/projdoc/Samba-BDC-HOWTO.sgml @@ -64,9 +64,13 @@ parameters in the [global]-section of the smb.conf have to be set: </para> <para><programlisting> -workgroup = SAMBA -domain master = yes -domain logons = yes +[global] + workgroup = SAMBA + domain master = yes + domain logons = yes + encrypt passwords = yes + security = user + .... </programlisting></para> <para> @@ -156,35 +160,48 @@ Several things have to be done: <itemizedlist> -<listitem><para> -The file private/MACHINE.SID identifies the domain. When a samba -server is first started, it is created on the fly and must never be -changed again. This file has to be the same on the PDC and the BDC, -so the MACHINE.SID has to be copied from the PDC to the BDC. -</para></listitem> - -<listitem><para> -The Unix user database has to be synchronized from the PDC to the -BDC. This means that both the /etc/passwd and /etc/group have to be -replicated from the PDC to the BDC. This can be done manually -whenever changes are made, or the PDC is set up as a NIS master -server and the BDC as a NIS slave server. To set up the BDC as a -mere NIS client would not be enough, as the BDC would not be able to -access its user database in case of a PDC failure. -</para></listitem> - -<listitem><para> -The Samba password database in the file private/smbpasswd has to be -replicated from the PDC to the BDC. This is a bit tricky, see the -next section. -</para></listitem> - -<listitem><para> -Any netlogon share has to be replicated from the PDC to the -BDC. This can be done manually whenever login scripts are changed, -or it can be done automatically together with the smbpasswd -synchronization. -</para></listitem> + <listitem><para> + The file <filename>private/MACHINE.SID</filename> identifies the domain. When a samba + server is first started, it is created on the fly and must never be + changed again. This file has to be the same on the PDC and the BDC, + so the MACHINE.SID has to be copied from the PDC to the BDC. Note that in the + latest Samba 2.2.x releases, the machine SID (and therefore domain SID) is stored + in the <filename>private/secrets.tdb</filename> database. This file cannot just + be copied because Samba looks under the key <constant>SECRETS/SID/<replaceable>DOMAIN</replaceable></constant>. + where <replaceable>DOMAIN</replaceable> is the machine's netbios name. Since this name has + to be unique for each SAMBA server, this lookup will fail. </para> + <para> + A new option has been added to the <command>smbpasswd(8)</command> + command to help ease this problem. When running <command>smbpasswd -S</command> as the root user, + the domain SID will be retrieved from a domain controller matching the value of the + <parameter>workgroup</parameter> parameter in <filename>smb.conf</filename> and stored as the + new Samba server's machine SID. See the <ulink url="smbpasswd.8.html"><command>smbpasswd(8)</command></ulink> + man page for more details on this functionality. + </para></listitem> + + <listitem><para> + The Unix user database has to be synchronized from the PDC to the + BDC. This means that both the /etc/passwd and /etc/group have to be + replicated from the PDC to the BDC. This can be done manually + whenever changes are made, or the PDC is set up as a NIS master + server and the BDC as a NIS slave server. To set up the BDC as a + mere NIS client would not be enough, as the BDC would not be able to + access its user database in case of a PDC failure. LDAP is also a + potential vehicle for sharing this information. + </para></listitem> + + <listitem><para> + The Samba password database in the file <filename>private/smbpasswd</filename> + has to be replicated from the PDC to the BDC. This is a bit tricky, see the + next section. + </para></listitem> + + <listitem><para> + Any netlogon share has to be replicated from the PDC to the + BDC. This can be done manually whenever login scripts are changed, + or it can be done automatically together with the smbpasswd + synchronization. + </para></listitem> </itemizedlist> @@ -194,9 +211,13 @@ by setting </para> <para><programlisting> -workgroup = samba -domain master = no -domain logons = yes +[global] + workgroup = SAMBA + domain master = yes + domain logons = yes + encrypt passwords = yes + security = user + .... </programlisting></para> <para> @@ -213,8 +234,9 @@ name is reserved for the Primary Domain Controller. <para> Replication of the smbpasswd file is sensitive. It has to be done -whenever changes to the SAM are made. Every user's password change is -done in the smbpasswd file and has to be replicated to the BDC. So +whenever changes to the SAM are made. Every user's password change +(including machine trust account password changes) is done in the +smbpasswd file and has to be replicated to the BDC. So replicating the smbpasswd file very often is necessary. </para> @@ -222,11 +244,18 @@ replicating the smbpasswd file very often is necessary. As the smbpasswd file contains plain text password equivalents, it must not be sent unencrypted over the wire. The best way to set up smbpasswd replication from the PDC to the BDC is to use the utility -rsync. rsync can use ssh as a transport. ssh itself can be set up to -accept *only* rsync transfer without requiring the user to type a -password. +<command>rsync(1)</command>. <command>rsync</command> can use +<command>ssh(1)</command> as a transport. <command>ssh</command> itself +can be set up to accept <emphasis>only</emphasis> <command>rsync</command> transfer without requiring the user to +type a password. Refer to the man pages for these two tools for more details. </para> +<para> +Another solution with high potential is to use Samba's <parameter>--with-ldapsam</parameter> +for sharing and/or replicating the list of <constant>sambaAccount</constant> entries. +This can all be done over SSL to ensure security. See the <ulink url="Samba-LDAP-HOWTO.html">Samba-LDAP-HOWTO</ulink> +for more details. +</para> </sect2> </sect1> |