summaryrefslogtreecommitdiff
path: root/docs/Samba3-HOWTO/TOSHARG-ServerType.xml
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>2005-06-16 01:33:35 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:49 -0500
commitfa96398866a4bcdcc13b42ab4f8d3f516cd9238a (patch)
treeca055132ca3289d5b512b8cc3858033be3df3bae /docs/Samba3-HOWTO/TOSHARG-ServerType.xml
parent77aa4181f19460a6e8b848877edb107c09f574d8 (diff)
downloadsamba-fa96398866a4bcdcc13b42ab4f8d3f516cd9238a.tar.gz
samba-fa96398866a4bcdcc13b42ab4f8d3f516cd9238a.tar.bz2
samba-fa96398866a4bcdcc13b42ab4f8d3f516cd9238a.zip
Stage 1 of PHPTR Edits.
(This used to be commit 64a9e3e8619bf33dcf6b0ff8171b47a3e2581239)
Diffstat (limited to 'docs/Samba3-HOWTO/TOSHARG-ServerType.xml')
-rw-r--r--docs/Samba3-HOWTO/TOSHARG-ServerType.xml181
1 files changed, 90 insertions, 91 deletions
diff --git a/docs/Samba3-HOWTO/TOSHARG-ServerType.xml b/docs/Samba3-HOWTO/TOSHARG-ServerType.xml
index cd7f578cc0..877f2d6f80 100644
--- a/docs/Samba3-HOWTO/TOSHARG-ServerType.xml
+++ b/docs/Samba3-HOWTO/TOSHARG-ServerType.xml
@@ -12,7 +12,7 @@
<para>
This chapter provides information regarding the types of server that Samba may be
configured to be. A Microsoft network administrator who wishes to migrate to or
-use Samba will want to know the meaning, within a Samba context, of terms familiar to MS Windows
+use Samba will want to know the meaning, within a Samba context, of terms familiar to an MS Windows
administrator. This means that it is essential also to define how critical security
modes function before we get into the details of how to configure the server itself.
</para>
@@ -26,7 +26,7 @@ and how they relate to MS Windows servers and clients.
A question often asked is, <quote>Why would I want to use Samba?</quote> Most chapters contain a section
that highlights features and benefits. We hope that the information provided will help to
answer this question. Be warned though, we want to be fair and reasonable, so not all
-features are positive towards Samba. The benefit may be on the side of our competition.
+features are positive toward Samba. The benefit may be on the side of our competition.
</para>
<sect1>
@@ -49,8 +49,8 @@ a source of discomfort.
<para>
Samba started out as a project that sought to provide interoperability for MS Windows 3.x
clients with a UNIX server. It has grown up a lot since its humble beginnings and now provides
-features and functionality fit for large scale deployment. It also has some warts. In sections
-like this one we tell of both.
+features and functionality fit for large-scale deployment. It also has some warts. In sections
+like this one, we tell of both.
</para>
<para>
@@ -59,7 +59,7 @@ So, what are the benefits of features mentioned in this chapter?
<itemizedlist>
<listitem><para>
- Samba-3 can replace an MS Windows NT4 Domain Controller.
+ Samba-3 can replace an MS Windows NT4 domain controller.
</para></listitem>
<listitem><para>
@@ -68,12 +68,12 @@ So, what are the benefits of features mentioned in this chapter?
</para></listitem>
<listitem><para>
- Samba-3 permits full NT4-style Interdomain Trusts.
+ Samba-3 permits full NT4-style interdomain trusts.
</para></listitem>
<listitem><para>
Samba has security modes that permit more flexible
- authentication than is possible with MS Windows NT4 Domain Controllers.
+ authentication than is possible with MS Windows NT4 domain controllers.
</para></listitem>
<listitem><para>
@@ -103,8 +103,8 @@ different type of servers:</para>
<itemizedlist>
<listitem><para>Domain Controller</para>
<itemizedlist>
- <listitem><para>Primary Domain Controller</para></listitem>
- <listitem><para>Backup Domain Controller</para></listitem>
+ <listitem><para>Primary Domain Controller (PDC)</para></listitem>
+ <listitem><para>Backup Domain Controller (BDC)</para></listitem>
<listitem><para>ADS Domain Controller</para></listitem>
</itemizedlist>
</listitem>
@@ -114,13 +114,15 @@ different type of servers:</para>
<listitem><para>NT4 Style Domain Domain Server</para></listitem>
</itemizedlist>
</listitem>
- <listitem><para>Stand-alone Server</para></listitem>
+ <listitem><para>Standalone Server</para></listitem>
</itemizedlist>
<para>
-The chapters covering Domain Control, Backup Domain Control and Domain Membership provide
+The chapters covering domain control (<link linkend="samba-pdc">Domain Control</link>),
+backup domain control (<link linkend="samba-bdc">Backup Domain Control</link>), and
+domain membership (<link linkend="domain-member">Domain Membership</link>) provide
pertinent information regarding Samba configuration for each of these server roles.
-The reader is strongly encouraged to become intimately familiar with the information
+You are strongly encouraged to become intimately familiar with the information
presented.
</para>
@@ -140,20 +142,19 @@ reduce user complaints and administrator heartache.
</para>
<para>
-In the SMB/CIFS networking world, there are only two types of security: <emphasis>User Level</emphasis>
-and <emphasis>Share Level</emphasis>. We refer to these collectively as <emphasis>security levels</emphasis>.
-In implementing these two security levels, Samba provides flexibilities
-that are not available with Microsoft Windows NT4/200x servers. In actual fact, Samba implements
-<emphasis>Share Level</emphasis> security only one way, but has four ways of implementing
-<emphasis>User Level</emphasis> security. Collectively, we call the Samba implementations
-<emphasis>Security Modes</emphasis>. They are known as: <emphasis>SHARE</emphasis>, <emphasis>USER</emphasis>,
-<emphasis>DOMAIN</emphasis>, <emphasis>ADS</emphasis>, and <emphasis>SERVER</emphasis> modes.
-They are documented in this chapter.
+In the SMB/CIFS networking world, there are only two types of security: <emphasis>user level</emphasis> and
+<emphasis>share level</emphasis>. We refer to these collectively as <emphasis>security levels</emphasis>. In
+implementing these two security levels, Samba provides flexibilities that are not available with MS Windows
+NT4/200x servers. In actual fact, Samba implements <emphasis>share-level</emphasis> security only one way, but
+has four ways of implementing <emphasis>user-level</emphasis> security. Collectively, we call the Samba
+implementations <emphasis>security modes</emphasis>. They are known as <emphasis>share</emphasis>,
+<emphasis>user</emphasis>, <emphasis>domain</emphasis>, <emphasis>ADS</emphasis>, and
+<emphasis>server</emphasis> modes. They are documented in this chapter.
</para>
<para>
An SMB server tells the client at startup what security level it is running. There are two options:
-Share Level and User Level. Which of these two the client receives affects the way the client then
+share level and user level. Which of these two the client receives affects the way the client then
tries to authenticate itself. It does not directly affect (to any great extent) the way the Samba
server does security. This may sound strange, but it fits in with the client/server approach of SMB.
In SMB everything is initiated and controlled by the client, and the server can only tell the client
@@ -164,8 +165,8 @@ what is available and whether an action is allowed.
<title>User Level Security</title>
<para>
-We will describe User Level Security first, as its simpler.
-In User Level Security, the client will send a
+We describe user-level security first because its simpler.
+In user-level security, the client sends a
session setup request directly following protocol negotiation.
This request provides a username and password. The server can either accept or reject that
username/password combination. At this stage the server has no idea what
@@ -179,7 +180,7 @@ share the client will eventually try to connect to, so it can't base the
</orderedlist>
<para>
-If the server accepts the username/password then the client expects to be able to
+If the server accepts the username/password, then the client expects to be able to
mount shares (using a <emphasis>tree connection</emphasis>) without specifying a
password. It expects that all access rights will be as the username/password
specified in the <emphasis>session setup</emphasis>.
@@ -196,7 +197,7 @@ authentication contexts in this way (WinDD is an example of an application that
<title>Example Configuration</title>
<para>
-The &smb.conf; parameter that sets user level security is:
+The &smb.conf; parameter that sets user-level security is:
</para>
<para><smbconfblock>
@@ -211,33 +212,33 @@ This is the default setting since Samba-2.2.x.
</sect2>
<sect2>
-<title>Share Level Security</title>
+<title>Share-Level Security</title>
<para>
-In Share Level security, the client authenticates
+In share-level security, the client authenticates
itself separately for each share. It sends a password along with each
tree connection (share mount). It does not explicitly send a
username with this operation. The client expects a password to be associated
with each share, independent of the user. This means that Samba has to work out what
username the client probably wants to use. It is never explicitly sent the username.
Some commercial SMB servers such as NT actually associate passwords directly with
-shares in Share Level security, but Samba always uses the UNIX authentication scheme
+shares in share-level security, but Samba always uses the UNIX authentication scheme
where it is a username/password pair that is authenticated, not a share/password pair.
</para>
<para>
-To understand the MS Windows networking parallels, one should think
-in terms of MS Windows 9x/Me where one can create a shared folder that provides read-only
+To understand the MS Windows networking parallels, think
+in terms of MS Windows 9x/Me where you can create a shared folder that provides read-only
or full access, with or without a password.
</para>
<para>
-Many clients send a session setup even if the server is in Share Level security. They
+Many clients send a session setup even if the server is in share-level security. They
normally send a valid username but no password. Samba records this username in a list
-of possible usernames. When the client then does a tree connection it also adds to this list the name
+of possible usernames. When the client then does a tree connection, it also adds to this list the name
of the share they try to connect to (useful for home directories) and any users
listed in the <smbconfoption name="user"/> parameter in the &smb.conf; file.
-The password is then checked in turn against these possible usernames. If a match is found
+The password is then checked in turn against these possible usernames. If a match is found,
then the client is authenticated as that user.
</para>
@@ -245,7 +246,7 @@ then the client is authenticated as that user.
<title>Example Configuration</title>
<para>
-The &smb.conf; parameter that sets Share Level security is:
+The &smb.conf; parameter that sets share-level security is:
</para>
<para><smbconfblock>
@@ -256,14 +257,14 @@ The &smb.conf; parameter that sets Share Level security is:
</sect2>
<sect2>
-<title>Domain Security Mode (User Level Security)</title>
+<title>Domain Security Mode (User-Level Security)</title>
<para>
<indexterm><primary>Domain Member</primary></indexterm>
When Samba is operating in <smbconfoption name="security">domain</smbconfoption> mode,
the Samba server has a domain security trust account (a machine account) and causes
-all authentication requests to be passed through to the Domain Controllers.
-In other words, this configuration makes the Samba server a Domain Member server.
+all authentication requests to be passed through to the domain controllers.
+In other words, this configuration makes the Samba server a domain member server.
</para>
<sect3>
@@ -292,7 +293,7 @@ security domain. This is done as follows:
<procedure>
- <step><para>On the MS Windows NT Domain Controller, using
+ <step><para>On the MS Windows NT domain controller, using
the Server Manager, add a machine account for the Samba server.
</para></step>
@@ -303,7 +304,7 @@ security domain. This is done as follows:
</procedure>
<note><para>
-Samba-2.2.4 and later can auto-join a Windows NT4-style Domain just by executing:
+Samba-2.2.4 and later can autojoin a Windows NT4-style domain just by executing:
<screen>
&rootprompt;<userinput>smbpasswd -j <replaceable>DOMAIN_NAME</replaceable> -r <replaceable>PDC_NAME</replaceable> \
-U Administrator%<replaceable>password</replaceable></userinput>
@@ -314,38 +315,38 @@ Samba-3 can do the same by executing:
&rootprompt;<userinput>net rpc join -U Administrator%<replaceable>password</replaceable></userinput>
</screen>
It is not necessary with Samba-3 to specify the <replaceable>DOMAIN_NAME</replaceable> or the
-<replaceable>PDC_NAME</replaceable> as it figures this out from the &smb.conf; file settings.
+<replaceable>PDC_NAME</replaceable>, as it figures this out from the &smb.conf; file settings.
</para></note>
<para>
-Use of this mode of authentication does require there to be a standard UNIX account
+Use of this mode of authentication requires there to be a standard UNIX account
for each user in order to assign a UID once the account has been authenticated by
-the remote Windows DC. This account can be blocked to prevent logons by clients other than
+the remote Windows domain controller. This account can be blocked to prevent logons by clients other than
MS Windows through means such as setting an invalid shell in the
<filename>/etc/passwd</filename> entry.
</para>
<para>
An alternative to assigning UIDs to Windows users on a Samba member server is
-presented in <link linkend="winbind">Winbind: Use of Domain Accounts</link>.
+presented in <link linkend="winbind">Winbind</link>, <link linkend="winbind">Winbind: Use of Domain Accounts</link>.
</para>
<para>
-For more information regarding Domain Membership, see <link linkend="domain-member">Domain Membership</link>.
+For more information regarding domain membership, <link linkend="domain-member">Domain Membership</link>.
</para>
</sect3>
</sect2>
<sect2>
-<title>ADS Security Mode (User Level Security)</title>
+<title>ADS Security Mode (User-Level Security)</title>
<para>
Both Samba-2.2, and Samba-3 can join an Active Directory domain. This is
possible if the domain is run in native mode. Active Directory in
-native mode perfectly allows NT4-style Domain Members. This is contrary to
+native mode perfectly allows NT4-style domain members. This is contrary to
popular belief. Active Directory in native mode prohibits only the use of
-Backup Domain Controllers running MS Windows NT4.
+BDCs running MS Windows NT4.
</para>
<para>
@@ -353,8 +354,8 @@ If you are using Active Directory, starting with Samba-3 you can
join as a native AD member. Why would you want to do that?
Your security policy might prohibit the use of NT-compatible
authentication protocols. All your machines are running Windows 2000
-and above and all use Kerberos. In this case Samba as an NT4-style
-domain would still require NT-compatible authentication data. Samba in
+and above and all use Kerberos. In this case Samba, as an NT4-style
+domain, would still require NT-compatible authentication data. Samba in
AD-member mode can accept Kerberos tickets.
</para>
@@ -375,7 +376,7 @@ The following parameter may be required:
</smbconfblock></para>
<para>
-Please refer to <link linkend="domain-member">Domain Membership</link> and <link linkend="ads-member">Samba ADS Domain Membership</link>
+Please refer to <link linkend="domain-member">Domain Membership</link>, and <link linkend="ads-member">Samba ADS Domain Membership</link>
for more information regarding this configuration option.
</para>
@@ -386,32 +387,32 @@ for more information regarding this configuration option.
<title>Server Security (User Level Security)</title>
<para>
-Server Security Mode is left over from the time when Samba was not capable of acting
-as a Domain Member server. It is highly recommended not to use this feature. Server
+Server security mode is left over from the time when Samba was not capable of acting
+as a domain member server. It is highly recommended not to use this feature. Server
security mode has many drawbacks that include:
</para>
<itemizedlist>
- <listitem><para>Potential Account Lockout on MS Windows NT4/200x password servers.</para></listitem>
+ <listitem><para>Potential account lockout on MS Windows NT4/200x password servers.</para></listitem>
<listitem><para>Lack of assurance that the password server is the one specified.</para></listitem>
<listitem><para>Does not work with Winbind, which is particularly needed when storing profiles remotely.</para></listitem>
- <listitem><para>This mode may open connections to the password server, and keep them open for extended periods.</para></listitem>
+ <listitem><para>This mode may open connections to the password server and keep them open for extended periods.</para></listitem>
<listitem><para>Security on the Samba server breaks badly when the remote password server suddenly shuts down.</para></listitem>
<listitem><para>With this mode there is NO security account in the domain that the password server belongs to for the Samba server.</para></listitem>
</itemizedlist>
<para>
-In Server Security Mode the Samba server reports to the client that it is in User Level
+In server security mode the Samba server reports to the client that it is in user-level
security. The client then does a session setup as described earlier.
The Samba server takes the username/password that the client sends and attempts to login to the
<smbconfoption name="password server"/> by sending exactly the same username/password that
-it got from the client. If that server is in User Level Security and accepts the password,
+it got from the client. If that server is in user-level security and accepts the password,
then Samba accepts the client's connection. This allows the Samba server to use another SMB
server as the <smbconfoption name="password server"/>.
</para>
<para>
-You should also note that at the start of all this where the server tells the client
+You should also note that at the start of all this, when the server tells the client
what security level it is in, it also tells the client if it supports encryption. If it
does, it supplies the client with a random cryptkey. The client will then send all
passwords in encrypted form. Samba supports this type of encryption by default.
@@ -420,19 +421,19 @@ passwords in encrypted form. Samba supports this type of encryption by default.
<para>
The parameter <smbconfoption name="security">server</smbconfoption> means that Samba reports to clients that
it is running in <emphasis>user mode</emphasis> but actually passes off all authentication
-requests to another <emphasis>user mode</emphasis> server. This requires an additional
+requests to another user mode server. This requires an additional
parameter <smbconfoption name="password server"/> that points to the real authentication server.
The real authentication server can be another Samba server, or it can be a Windows NT server,
the latter being natively capable of encrypted password support.
</para>
<note><para>
-When Samba is running in <emphasis>Server Security Mode</emphasis> it is essential that
+When Samba is running in <emphasis>server security mode</emphasis>, it is essential that
the parameter <emphasis>password server</emphasis> is set to the precise NetBIOS machine
name of the target authentication server. Samba cannot determine this from NetBIOS name
lookups because the choice of the target authentication server is arbitrary and cannot
be determined from a domain name. In essence, a Samba server that is in
-<emphasis>Server Security Mode</emphasis> is operating in what used to be known as
+<emphasis>server security mode</emphasis> is operating in what used to be known as
workgroup mode.
</para></note>
@@ -460,11 +461,11 @@ process, the other uses just an error code.
</para>
<para>
-The downside of this mode of configuration is the fact that for security reasons Samba
-will send the password server a bogus username and a bogus password and if the remote
-server fails to reject the username and password pair then an alternative mode of
-identification of validation is used. Where a site uses password lock out after a
-certain number of failed authentication attempts this will result in user lockouts.
+The downside of this mode of configuration is that for security reasons Samba
+will send the password server a bogus username and a bogus password, and if the remote
+server fails to reject the username and password pair, then an alternative mode of
+identification or validation is used. Where a site uses password lockout, after a
+certain number of failed authentication attempts, this will result in user lockouts.
</para>
<para>
@@ -484,7 +485,7 @@ This account can be blocked to prevent logons by non-SMB/CIFS clients.
MS Windows clients may use encrypted passwords as part of a challenge/response
authentication model (a.k.a. NTLMv1 and NTLMv2) or alone, or clear-text strings for simple
password-based authentication. It should be realized that with the SMB protocol,
-the password is passed over the network either in plain-text or encrypted, but
+the password is passed over the network either in plaintext or encrypted, but
not both in the same authentication request.
</para>
@@ -498,19 +499,18 @@ is encrypted in two ways:
string. This is known as the NT hash.
</para></listitem>
- <listitem><para>The password is converted to upper case,
+ <listitem><para>The password is converted to uppercase,
and then padded or truncated to 14 bytes. This string is
then appended with 5 bytes of NULL characters and split to
- form two 56-bit DES keys to encrypt a <quote>magic</quote> 8-byte value.
+ form two 56-bit DES keys to encrypt a "magic" 8-byte value.
The resulting 16 bytes form the LanMan hash.
</para></listitem>
</itemizedlist>
<para>
-MS Windows 95 pre-service pack 1, MS Windows NT versions 3.x and version 4.0
+MS Windows 95 pre-service pack 1 and MS Windows NT versions 3.x and version 4.0
pre-service pack 3 will use either mode of password authentication. All
-versions of MS Windows that follow these versions no longer support plain
-text passwords by default.
+versions of MS Windows that follow these versions no longer support plain-text passwords by default.
</para>
<para>
@@ -522,16 +522,16 @@ a cached copy of the password.
<para>
When Microsoft changed the default password mode, support was dropped for caching
-of the plain-text password. This means that when the registry parameter is changed
-to re-enable use of plain-text passwords it appears to work, but when a dropped
+of the plaintext password. This means that when the registry parameter is changed
+to re-enable use of plaintext passwords, it appears to work, but when a dropped
service connection mapping attempts to revalidate, this will fail if the remote
authentication server does not support encrypted passwords. It is definitely not
-a good idea to re-enable plain-text password support in such clients.
+a good idea to re-enable plaintext password support in such clients.
</para>
<para>
The following parameters can be used to work around the issue of Windows 9x/Me clients
-upper-casing usernames and passwords before transmitting them to the SMB server
+uppercasing usernames and passwords before transmitting them to the SMB server
when using clear-text authentication:
</para>
@@ -541,9 +541,9 @@ when using clear-text authentication:
</smbconfblock></para>
<para>
-By default Samba will convert to lower case the username before attempting to lookup the user
+By default Samba will convert to lowercase the username before attempting to lookup the user
in the database of local system accounts. Because UNIX usernames conventionally
-only contain lower-case characters, the <smbconfoption name="username level"/> parameter
+only contain lowercase characters, the <smbconfoption name="username-level"/> parameter
is rarely needed.
</para>
@@ -551,17 +551,16 @@ is rarely needed.
However, passwords on UNIX systems often make use of mixed-case characters.
This means that in order for a user on a Windows 9x/Me client to connect to a Samba
server using clear-text authentication, the <smbconfoption name="password level"/>
-must be set to the maximum number of upper case letters that <emphasis>could</emphasis>
-appear in a password. Note that if the server OS uses the traditional DES version
-of crypt(), a <smbconfoption name="password level"/> of 8 will result in case
-insensitive passwords as seen from Windows users. This will also result in longer
-login times as Samba has to compute the permutations of the password string and
+must be set to the maximum number of uppercase letters that <emphasis>could</emphasis>
+appear in a password. Note that if the Server OS uses the traditional DES version
+of crypt(), a <smbconfoption name="password level"/> of 8 will result in case-insensitive passwords as seen from Windows users. This will also result in longer
+login times because Samba has to compute the permutations of the password string and
try them one by one until a match is located (or all combinations fail).
</para>
<para>
The best option to adopt is to enable support for encrypted passwords wherever
-Samba is used. Most attempts to apply the registry change to re-enable plain-text
+Samba is used. Most attempts to apply the registry change to re-enable plaintext
passwords will eventually lead to user complaints and unhappiness.
</para>
@@ -572,15 +571,15 @@ passwords will eventually lead to user complaints and unhappiness.
<para>
We all make mistakes. It is okay to make mistakes, as long as they are made in the right places
-and at the right time. A mistake that causes lost productivity is seldom tolerated, however a mistake
+and at the right time. A mistake that causes lost productivity is seldom tolerated; however, a mistake
made in a developmental test lab is expected.
</para>
<para>
Here we look at common mistakes and misapprehensions that have been the subject of discussions
on the Samba mailing lists. Many of these are avoidable by doing your homework before attempting
-a Samba implementation. Some are the result of a misunderstanding of the English language. The
-English language, which has many phrases that are potentially vague and may be highly confusing
+a Samba implementation. Some are the result of a misunderstanding of the English language,
+which has many phrases that are potentially vague and may be highly confusing
to those for whom English is not their native tongue.
</para>
@@ -588,7 +587,7 @@ to those for whom English is not their native tongue.
<title>What Makes Samba a Server?</title>
<para>
-To some the nature of the Samba <emphasis>security</emphasis> mode is obvious, but entirely
+To some the nature of the Samba security mode is obvious, but entirely
wrong all the same. It is assumed that <smbconfoption name="security">server</smbconfoption> means that Samba
will act as a server. Not so! This setting means that Samba will <emphasis>try</emphasis>
to use another SMB server as its source for user authentication alone.
@@ -601,7 +600,7 @@ to use another SMB server as its source for user authentication alone.
<para>
The &smb.conf; parameter <smbconfoption name="security">domain</smbconfoption> does not really make Samba behave
-as a Domain Controller. This setting means we want Samba to be a Domain Member. See <link linkend="samba-pdc">Samba as a PDC</link> for more information.
+as a domain controller. This setting means we want Samba to be a domain member. See <link linkend="samba-pdc">Samba as a PDC</link> for more information.
</para>
</sect2>
@@ -611,8 +610,8 @@ as a Domain Controller. This setting means we want Samba to be a Domain Member.
<para>
Guess! So many others do. But whatever you do, do not think that <smbconfoption name="security">user</smbconfoption>
-makes Samba act as a Domain Member. Read the manufacturer's manual before the warranty expires. See
-<link linkend="domain-member">Domain Membership</link> for more information.
+makes Samba act as a domain member. Read the manufacturer's manual before the warranty expires. See
+<link linkend="domain-member">Domain Membership</link>, for more information.
</para>
</sect2>