Add link to appropriate chapter.
[Samba.git] / docs / Samba-HOWTO-Collection / ServerType.xml
blob28ccd7158b3802ddda6583b331e9004cce8f7fb7
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3                 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
5   <!-- entities files to use -->
6   <!ENTITY % global_entities SYSTEM '../entities/global.entities'>
7   %global_entities;
9 ]>
11 <chapter id="ServerType">
12 <chapterinfo>
13         &author.tridge;
14         &author.jelmer;
15         &author.jht;
16 </chapterinfo>
18 <title>Server Types and Security Modes</title>
20 <para>
21 This chapter provides information regarding the types of server that Samba may be
22 configured to be. A Microsoft network administrator who wishes to migrate to or
23 use Samba will want to know the meaning, within a Samba context, of terms familiar to MS Windows
24 administrator. This means that it is essential also to define how critical security
25 modes function before we get into the details of how to configure the server itself.
26 </para>
28 <para>
29 The chapter provides an overview of the security modes of which Samba is capable
30 and how they relate to MS Windows servers and clients.
31 </para>
33 <para>
34 A question often asked is, <quote>Why would I want to use Samba?</quote> Most chapters contain a section
35 that highlights features and benefits. We hope that the information provided will help to
36 answer this question. Be warned though, we want to be fair and reasonable, so not all
37 features are positive towards Samba. The benefit may be on the side of our competition.
38 </para>
40 <sect1>
41 <title>Features and Benefits</title>
43 <para>
44 Two men were walking down a dusty road, when one suddenly kicked up a small red stone. It
45 hurt his toe and lodged in his sandal. He took the stone out and cursed it with a passion
46 and fury befitting his anguish. The other looked at the stone and said, <quote>This is a garnet.
47 I can turn that into a precious gem and some day it will make a princess very happy!</quote>
48 </para>
50 <para>
51 The moral of this tale: Two men, two very different perspectives regarding the same stone.
52 Like it or not, Samba is like that stone. Treat it the right way and it can bring great
53 pleasure, but if you are forced to use it and have no time for its secrets, then it can be
54 a source of discomfort.
55 </para>
57 <para>
58 Samba started out as a project that sought to provide interoperability for MS Windows 3.x
59 clients with a UNIX server. It has grown up a lot since its humble beginnings and now provides
60 features and functionality fit for large scale deployment. It also has some warts. In sections
61 like this one we tell of both.
62 </para>
64 <para>
65 So, what are the benefits of features mentioned in this chapter?
66 </para>
68 <itemizedlist>
69         <listitem><para>
70         Samba-3 can replace an MS Windows NT4 Domain Controller.
71         </para></listitem>
73         <listitem><para>
74         Samba-3 offers excellent interoperability with MS Windows NT4-style
75         domains as well as natively with Microsoft Active Directory domains.
76         </para></listitem>
78         <listitem><para>
79         Samba-3 permits full NT4-style Interdomain Trusts.
80         </para></listitem>
82         <listitem><para>
83         Samba has security modes that permit more flexible
84         authentication than is possible with MS Windows NT4 Domain Controllers.
85         </para></listitem>
87         <listitem><para>
88         Samba-3 permits use of multiple account database backends.
89         </para></listitem>
91         <listitem><para>
92         The account (password) database backends can be distributed
93         and replicated using multiple methods. This gives Samba-3
94         greater flexibility than MS Windows NT4 and in many cases a
95         significantly higher utility than Active Directory domains
96         with MS Windows 200x.
97         </para></listitem>
98 </itemizedlist>
100 </sect1>
102 <sect1>
103 <title>Server Types</title>
106 <para>
107 <indexterm><primary>Server Type</primary></indexterm>
108 Administrators of Microsoft networks often refer to three
109 different type of servers:</para>
111 <itemizedlist>
112         <listitem><para>Domain Controller</para>
113                 <itemizedlist>
114                         <listitem>Primary Domain Controller</listitem>
115                         <listitem>Backup Domain Controller</listitem>
116                         <listitem>ADS Domain Controller</listitem>
117                 </itemizedlist>
118         </listitem>
119         <listitem><para>Domain Member Server</para>
120                 <itemizedlist>
121                         <listitem>Active Directory Domain Server</listitem>
122                         <listitem>NT4 Style Domain Domain Server</listitem>
123                 </itemizedlist>
124         </listitem>
125         <listitem><para>Stand-alone Server</para></listitem>
126 </itemizedlist>
128 <para>
129 The chapters covering Domain Control, Backup Domain Control and Domain Membership provide
130 pertinent information regarding Samba configuration for each of these server roles.
131 The reader is strongly encouraged to become intimately familiar with the information 
132 presented.
133 </para>
135 </sect1>
137 <sect1>
138 <title>Samba Security Modes</title>
141 <para>
142 <indexterm><primary>Security Mode</primary></indexterm>
143 <indexterm><primary>security</primary></indexterm>
144 In this section the function and purpose of Samba's security
145 modes are described. An accurate understanding of how Samba implements each security
146 mode as well as how to configure MS Windows clients for each mode will significantly
147 reduce user complaints and administrator heartache.
148 </para>
150 <para>
151 In the SMB/CIFS networking world, there are only two types of security: <emphasis>User Level</emphasis>
152 and <emphasis>Share Level</emphasis>. We refer to these collectively as <emphasis>security levels</emphasis>.
153 In implementing these two security levels, Samba provides flexibilities
154 that are not available with Microsoft Windows NT4/200x servers. In actual fact, Samba implements
155 <emphasis>Share Level</emphasis> security only one way, but has four ways of implementing
156 <emphasis>User Level</emphasis> security. Collectively, we call the Samba implementations
157 <emphasis>Security Modes</emphasis>. They are known as: <emphasis>SHARE</emphasis>, <emphasis>USER</emphasis>,
158 <emphasis>DOMAIN</emphasis>, <emphasis>ADS</emphasis>, and <emphasis>SERVER</emphasis> modes.
159 They are documented in this chapter.
160 </para>
162 <para>
163 An SMB server tells the client at startup what security level it is running. There are two options:
164 Share Level and User Level. Which of these two the client receives affects the way the client then
165 tries to authenticate itself. It does not directly affect (to any great extent) the way the Samba
166 server does security. This may sound strange, but it fits in with the client/server approach of SMB.
167 In SMB everything is initiated and controlled by the client, and the server can only tell the client
168 what is available and whether an action is allowed.
169 </para>
171 <sect2>
172 <title>User Level Security</title>
174 <para>
175 We will describe User Level Security first, as its simpler.
176 In User Level Security, the client will send a
177 session setup request directly following protocol negotiation.
178 This request provides a username and password. The server can either accept or reject that
179 username/password combination. At this stage the server has no idea what
180 share the client will eventually try to connect to, so it can't base the
181 <emphasis>accept/reject</emphasis> on anything other than:
182 </para>
184 <orderedlist>
185 <listitem><para>the username/password.</para></listitem>
186 <listitem><para>the name of the client machine.</para></listitem>
187 </orderedlist>
189 <para>
190 If the server accepts the username/password then the client expects to be able to
191 mount shares (using a <emphasis>tree connection</emphasis>) without specifying a
192 password. It expects that all access rights will be as the username/password
193 specified in the <emphasis>session setup</emphasis>.
194 </para>
196 <para>
197 It is also possible for a client to send multiple <emphasis>session setup</emphasis>
198 requests. When the server responds, it gives the client a <emphasis>uid</emphasis> to use
199 as an authentication tag for that username/password. The client can maintain multiple
200 authentication contexts in this way (WinDD is an example of an application that does this).
201 </para>
203 <sect3>
204 <title>Example Configuration</title>
206 <para>
207 The &smb.conf; parameter that sets user level security is:
208 </para>
210 <para><smbconfblock>
211 <smbconfoption><name>security</name><value>user</value></smbconfoption>
212 </smbconfblock></para>
214 <para>
215 This is the default setting since Samba-2.2.x.
216 </para>
218 </sect3>
220 </sect2>
221 <sect2>
222 <title>Share Level Security</title>
224 <para>
225 In Share Level security, the client authenticates
226 itself separately for each share. It sends a password along with each 
227 tree connection (share mount). It does not explicitly send a
228 username with this operation. The client expects a password to be associated
229 with each share, independent of the user. This means that Samba has to work out what
230 username the client probably wants to use. It is never explicitly sent the username.
231 Some commercial SMB servers such as NT actually associate passwords directly with
232 shares in Share Level security, but Samba always uses the UNIX authentication scheme
233 where it is a username/password pair that is authenticated, not a share/password pair.
234 </para>
236 <para>
237 To understand the MS Windows networking parallels, one should think
238 in terms of MS Windows 9x/Me where one can create a shared folder that provides read-only
239 or full access, with or without a password.
240 </para>
242 <para>
243 Many clients send a session setup even if the server is in Share Level security. They
244 normally send a valid username but no password. Samba records this username in a list
245 of possible usernames. When the client then does a tree connection it also adds to this list the name
246 of the share they try to connect to (useful for home directories) and any users
247 listed in the <smbconfoption><name>user</name></smbconfoption> parameter in the &smb.conf; file.
248 The password is then checked in turn against these possible usernames. If a match is found
249 then the client is authenticated as that user.
250 </para>
252 <sect3>
253 <title>Example Configuration</title>
255 <para>
256 The &smb.conf; parameter that sets Share Level security is:
257 </para>
259 <para><smbconfblock>
260 <smbconfoption><name>security</name><value>share</value></smbconfoption>
261 </smbconfblock></para>
263 <para>
264 There are reports that recent MS Windows clients do not like to work
265 with share mode security servers. You are strongly discouraged from using Share Level security.
266 </para>
268 </sect3>
269 </sect2>
271 <sect2>
272 <title>Domain Security Mode (User Level Security)</title>
274 <para>
275 <indexterm><primary>Domain Member</primary></indexterm>
276 When Samba is operating in <smbconfoption><name>security</name><value>domain</value></smbconfoption> mode,
277 the Samba server has a domain security trust account (a machine account) and causes
278 all authentication requests to be passed through to the Domain Controllers.
279 In other words, this configuration makes the Samba server a Domain Member server.
280 </para>
282 <sect3>
283 <title>Example Configuration</title>
284 <para><emphasis>
285 Samba as a Domain Member Server
286 </emphasis></para>
289 <para>
290 <indexterm><primary>Server Type</primary><secondary>Domain Member</secondary></indexterm>
291 This method involves addition of the following parameters in the &smb.conf; file:
292 </para>
294 <para><smbconfblock>
295 <smbconfoption><name>security</name><value>domain</value></smbconfoption>
296 <smbconfoption><name>workgroup</name><value>&example.workgroup;</value></smbconfoption>
297 </smbconfblock></para>
299 <para>
300 In order for this method to work, the Samba server needs to join the MS Windows NT
301 security domain. This is done as follows:
302 <indexterm><primary>net</primary><secondary>rpc</secondary></indexterm>
303 <indexterm><primary>Domain Member</primary><secondary>joining</secondary></indexterm>
304 </para>
307 <procedure>
308         <step><para>On the MS Windows NT Domain Controller, using
309         the Server Manager, add a machine account for the Samba server.
310         </para></step>
312         <step><para>On the UNIX/Linux system execute:</para>
313         
314                         <para><screen>&rootprompt;<userinput>net rpc join -U administrator%password</userinput></screen></para>
315                 </step>
316 </procedure>
318 <note><para>
319 Samba-2.2.4 and later can auto-join a Windows NT4-style Domain just by executing:
320 <screen>
321 &rootprompt;<userinput>smbpasswd -j <replaceable>DOMAIN_NAME</replaceable> -r <replaceable>PDC_NAME</replaceable> \
322          -U Administrator%<replaceable>password</replaceable></userinput>
323 </screen>
325 Samba-3 can do the same by executing:
326 <screen>
327 &rootprompt;<userinput>net rpc join -U Administrator%<replaceable>password</replaceable></userinput>
328 </screen>
329 It is not necessary with Samba-3 to specify the <replaceable>DOMAIN_NAME</replaceable> or the
330 <replaceable>PDC_NAME</replaceable> as it figures this out from the &smb.conf; file settings.
331 </para></note>
333 <para>
334 Use of this mode of authentication does require there to be a standard UNIX account
335 for each user in order to assign a UID once the account has been authenticated by
336 the remote Windows DC. This account can be blocked to prevent logons by clients other than
337 MS Windows through means such as setting an invalid shell in the
338 <filename>/etc/passwd</filename> entry.
339 </para>
341 <para>
342 An alternative to assigning UIDs to Windows users on a Samba member server is
343 presented in <link linkend="winbind">Winbind: Use of Domain Accounts</link>.
344 </para>
346 <para>
347 For more information regarding Domain Membership, see <link linkend="domain-member">Domain Membership</link>.
348 </para>
350 </sect3>
351 </sect2>
353 <sect2>
354 <title>ADS Security Mode (User Level Security)</title>
356 <para>
357 Both Samba-2.2, and Samba-3 can join an Active Directory domain. This is
358 possible if the domain is run in native mode. Active Directory in
359 native mode perfectly allows NT4-style Domain Members. This is contrary to
360 popular belief. Active Directory in native mode prohibits only the use of
361 Backup Domain Controllers running MS Windows NT4.
362 </para>
364 <para>
365 If you are using Active Directory, starting with Samba-3 you can
366 join as a native AD member. Why would you want to do that?
367 Your security policy might prohibit the use of NT-compatible
368 authentication protocols. All your machines are running Windows 2000
369 and above and all use Kerberos. In this case Samba as an NT4-style
370 domain would still require NT-compatible authentication data. Samba in
371 AD-member mode can accept Kerberos tickets.
372 </para>
374 <sect3>
375 <title>Example Configuration</title>
377 <para><smbconfblock>
378 <smbconfoption><name>realm</name><value>your.kerberos.REALM</value></smbconfoption>
379 <smbconfoption><name>security</name><value>ADS</value></smbconfoption>
380 </smbconfblock></para>
382 <para>
383 The following parameter may be required:
384 </para>
386 <para><smbconfblock>
387 <smbconfoption><name>password server</name><value>your.kerberos.server</value></smbconfoption>
388 </smbconfblock></para>
390 <para>
391 Please refer to <link linkend="domain-member">Domain Membership</link> and <link linkend="ads-member">Samba ADS Domain Membership</link>
392 for more information regarding this configuration option.
393 </para>
395 </sect3>
396 </sect2>
398 <sect2>
399 <title>Server Security (User Level Security)</title>
401 <para>
402 Server Security Mode is left over from the time when Samba was not capable of acting
403 as a Domain Member server. It is highly recommended not to use this feature. Server
404 security mode has many drawbacks that include:
405 </para>
407 <itemizedlist>
408         <listitem><para>Potential Account Lockout on MS Windows NT4/200x password servers.</para></listitem>
409         <listitem><para>Lack of assurance that the password server is the one specified.</para></listitem>
410         <listitem><para>Does not work with Winbind, which is particularly needed when storing profiles remotely.</para></listitem>
411         <listitem><para>This mode may open connections to the password server, and keep them open for extended periods.</para></listitem>
412         <listitem><para>Security on the Samba server breaks badly when the remote password server suddenly shuts down.</para></listitem>
413         <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>
414 </itemizedlist>
416 <para>
417 In Server Security Mode the Samba server reports to the client that it is in User Level
418 security. The client then does a session setup as described earlier.
419 The Samba server takes the username/password that the client sends and attempts to login to the
420 <smbconfoption><name>password server</name></smbconfoption> by sending exactly the same username/password that
421 it got from the client. If that server is in User Level Security and accepts the password,
422 then Samba accepts the client's connection. This allows the Samba server to use another SMB
423 server as the <smbconfoption><name>password server</name></smbconfoption>.
424 </para>
426 <para>
427 You should also note that at the start of all this where the server tells the client
428 what security level it is in, it also tells the client if it supports encryption. If it
429 does, it supplies the client with a random cryptkey. The client will then send all
430 passwords in encrypted form. Samba supports this type of encryption by default.
431 </para>
433 <para>
434 The parameter <smbconfoption><name>security</name><value>server</value></smbconfoption> means that Samba reports to clients that
435 it is running in <emphasis>user mode</emphasis> but actually passes off all authentication
436 requests to another <emphasis>user mode</emphasis> server. This requires an additional
437 parameter <smbconfoption><name>password server</name></smbconfoption> that points to the real authentication server.
438 The real authentication server can be another Samba server, or it can be a Windows NT server,
439 the latter being natively capable of encrypted password support.
440 </para>
442 <note><para>
443 When Samba is running in <emphasis>Server Security Mode</emphasis> it is essential that
444 the parameter <emphasis>password server</emphasis> is set to the precise NetBIOS machine
445 name of the target authentication server. Samba cannot determine this from NetBIOS name
446 lookups because the choice of the target authentication server is arbitrary and cannot
447 be determined from a domain name. In essence, a Samba server that is in
448 <emphasis>Server Security Mode</emphasis> is operating in what used to be known as
449 workgroup mode.
450 </para></note>
452 <sect3>
453 <title>Example Configuration</title>
454 <para><emphasis>
455 Using MS Windows NT as an Authentication Server
456 </emphasis></para>
458 <para>
459 This method involves the additions of the following parameters in the &smb.conf; file:
460 </para>
462 <para><smbconfblock>
463 <smbconfoption><name>encrypt passwords</name><value>Yes</value></smbconfoption>
464 <smbconfoption><name>security</name><value>server</value></smbconfoption>
465 <smbconfoption><name>password server</name><value>"NetBIOS_name_of_a_DC"</value></smbconfoption>
466 </smbconfblock></para>
469 <para>
470 There are two ways of identifying whether or not a username and password pair is valid.
471 One uses the reply information provided as part of the authentication messaging
472 process, the other uses just an error code.
473 </para>
475 <para>
476 The downside of this mode of configuration is the fact that for security reasons Samba
477 will send the password server a bogus username and a bogus password and if the remote
478 server fails to reject the username and password pair then an alternative mode of
479 identification of validation is used. Where a site uses password lock out after a
480 certain number of failed authentication attempts this will result in user lockouts.
481 </para>
483 <para>
484 Use of this mode of authentication requires a standard UNIX account for the user.
485 This account can be blocked to prevent logons by non-SMB/CIFS clients.
486 </para>
488 </sect3>
489 </sect2>
491 </sect1>
493 <sect1>
494 <title>Password Checking</title>
496 <para>
497 MS Windows clients may use encrypted passwords as part of a challenge/response
498 authentication model (a.k.a. NTLMv1 and NTLMv2) or alone, or clear-text strings for simple
499 password-based authentication. It should be realized that with the SMB protocol,
500 the password is passed over the network either in plain-text or encrypted, but
501 not both in the same authentication request.
502 </para>
504 <para>
505 When encrypted passwords are used, a password that has been entered by the user
506 is encrypted in two ways:
507 </para>
509 <itemizedlist>
510         <listitem><para>An MD4 hash of the unicode of the password
511         string. This is known as the NT hash.
512         </para></listitem>
514         <listitem><para>The password is converted to upper case,
515         and then padded or truncated to 14 bytes. This string is
516         then appended with 5 bytes of NULL characters and split to
517         form two 56-bit DES keys to encrypt a <quote>magic</quote> 8-byte value.
518         The resulting 16 bytes form the LanMan hash.
519         </para></listitem>
520 </itemizedlist>
522 <para>
523 MS Windows 95 pre-service pack 1, MS Windows NT versions 3.x and version 4.0
524 pre-service pack 3 will use either mode of password authentication. All
525 versions of MS Windows that follow these versions no longer support plain
526 text passwords by default.
527 </para>
529 <para>
530 MS Windows clients have a habit of dropping network mappings that have been idle
531 for 10 minutes or longer. When the user attempts to use the mapped drive
532 connection that has been dropped, the client re-establishes the connection using
533 a cached copy of the password.
534 </para>
536 <para>
537 When Microsoft changed the default password mode, support was dropped for caching
538 of the plain-text password. This means that when the registry parameter is changed
539 to re-enable use of plain-text passwords it appears to work, but when a dropped
540 service connection mapping attempts to revalidate, this will fail if the remote
541 authentication server does not support encrypted passwords. It is definitely not
542 a good idea to re-enable plain-text password support in such clients.
543 </para>
545 <para>
546 The following parameters can be used to work around the issue of Windows 9x/Me clients
547 upper-casing usernames and passwords before transmitting them to the SMB server
548 when using clear-text authentication:
549 </para>
551 <para><smbconfblock>
552 <smbconfoption><name>password level</name><value><replaceable>integer</replaceable></value></smbconfoption>
553 <smbconfoption><name>username level</name><value><replaceable>integer</replaceable></value></smbconfoption>
554 </smbconfblock></para>
556 <para>
557 By default Samba will convert to lower case the username before attempting to lookup the user
558 in the database of local system accounts. Because UNIX usernames conventionally
559 only contain lower-case characters, the <smbconfoption><name>username level</name></smbconfoption> parameter
560 is rarely needed.
561 </para>
563 <para>
564 However, passwords on UNIX systems often make use of mixed-case characters.
565 This means that in order for a user on a Windows 9x/Me client to connect to a Samba
566 server using clear-text authentication, the <smbconfoption><name>password level</name></smbconfoption>
567 must be set to the maximum number of upper case letters that <emphasis>could</emphasis>
568 appear in a password. Note that if the server OS uses the traditional DES version
569 of crypt(), a <smbconfoption><name>password level</name></smbconfoption> of 8 will result in case
570 insensitive passwords as seen from Windows users. This will also result in longer
571 login times as Samba has to compute the permutations of the password string and
572 try them one by one until a match is located (or all combinations fail).
573 </para>
575 <para>
576 The best option to adopt is to enable support for encrypted passwords wherever
577 Samba is used. Most attempts to apply the registry change to re-enable plain-text
578 passwords will eventually lead to user complaints and unhappiness.
579 </para>
581 </sect1>
583 <sect1>
584 <title>Common Errors</title>
586 <para>
587 We all make mistakes. It is okay to make mistakes, as long as they are made in the right places
588 and at the right time. A mistake that causes lost productivity is seldom tolerated, however a mistake
589 made in a developmental test lab is expected.
590 </para>
592 <para>
593 Here we look at common mistakes and misapprehensions that have been the subject of discussions
594 on the Samba mailing lists. Many of these are avoidable by doing your homework before attempting
595 a Samba implementation. Some are the result of a misunderstanding of the English language. The
596 English language, which has many phrases that are potentially vague and may be highly confusing
597 to those for whom English is not their native tongue.
598 </para>
600 <sect2>
601 <title>What Makes Samba a Server?</title>
603 <para>
604 To some the nature of the Samba <emphasis>security</emphasis> mode is obvious, but entirely
605 wrong all the same. It is assumed that <smbconfoption><name>security</name><value>server</value></smbconfoption> means that Samba
606 will act as a server. Not so! This setting means that Samba will <emphasis>try</emphasis>
607 to use another SMB server as its source for user authentication alone.
608 </para>
610 </sect2>
612 <sect2>
613 <title>What Makes Samba a Domain Controller?</title>
615 <para>
616 The &smb.conf; parameter <smbconfoption><name>security</name><value>domain</value></smbconfoption> does not really make Samba behave
617 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.
618 </para>
620 </sect2>
622 <sect2>
623 <title>What Makes Samba a Domain Member?</title>
625 <para>
626 Guess! So many others do. But whatever you do, do not think that <smbconfoption><name>security</name><value>user</value></smbconfoption>
627 makes Samba act as a Domain Member. Read the manufacturer's manual before the warranty expires. See 
628 <link linkend="domain-member">Domain Membership</link> for more information.
629 </para>
631 </sect2>
634 <sect2>
635 <title>Constantly Losing Connections to Password Server</title>
637 <para>
638         <quote>
639 Why does server_validate() simply give up rather than re-establish its connection to the
640 password server?  Though I am not fluent in the SMB protocol, perhaps the cluster server
641 process passes along to its client workstation the session key it receives from the password
642 server, which means the password hashes submitted by the client would not work on a subsequent
643 connection whose session key would be different. So server_validate() must give up.</quote>
644 </para>
646 <para>
647 Indeed. That's why <smbconfoption><name>security</name><value>server</value></smbconfoption>
648 is at best a nasty hack. Please use <smbconfoption><name>security</name><value>domain</value></smbconfoption>;
649 <smbconfoption><name>security</name><value>server</value></smbconfoption> mode is also known as pass-through authentication.
650 </para>
652 </sect2>
654 </sect1>
656 </chapter>