Fixes letterpages + smbconfexample
[Samba.git] / docs / Samba3-ByExample / SBE-MigrateNW4Samba3.xml
blob9a896e256b52f3e40af4c56f2c3b4eaa94f75cbe
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE chapter PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <chapter id="nw4migration">
4   <title>Migrating NetWare Server to Samba-3</title>
6         <para>
7         <indexterm><primary>Novell</primary></indexterm>
8         <indexterm><primary>SUSE</primary></indexterm>
9         Novell is a company any seasoned IT manager has to admire. It has become increasingly
10         Linux-friendly and is emerging out of a deep regression that almost saw the company
11         disappear into obscurity. Novell's SUSE Linux hosts the NetWare server and it is the
12         platform of choice to which many older NetWare servers are being migrated. 
13         It will be interesting to see what becomes of NetWare over time.
14         Meanwhile, there can be no denying that Novell is a Linux company.
15         </para>
17         <para>
18         <indexterm><primary>Red Hat</primary></indexterm>
19         <indexterm><primary>Debian</primary></indexterm>
20         <indexterm><primary>Gentoo</primary></indexterm>
21         <indexterm><primary>Mandrake</primary></indexterm>
22         Whatever flavor of Linux is preferred in your environment, whether Red Hat, Debian,
23         Gentoo, Mandrake, or SUSE (Novell), the information in this chapter should be read with
24         the knowledge that file locations may vary a little; even so, the information
25         in this chapter should provide something of value.
26         </para>
28         <para>
29         <indexterm><primary>migration</primary></indexterm>
30         Contributions to this chapter were made by Misty Stanley-Jones, a UNIX administrator of many
31         years who surfaced on the Samba mailing list with a barrage of questions and who
32         regularly now helps other administrators to solve thorny Samba migration questions.
33         </para>
35         <para>
36         <indexterm><primary>NetWare</primary></indexterm>
37         <indexterm><primary>NLM</primary></indexterm>
38         <indexterm><primary>NetWare</primary></indexterm>
39         <indexterm><primary>Mars_NWE</primary></indexterm>
40         One wonders how many NetWare servers remain in active service. Many are being migrated
41         to Samba on Linux. Red Hat Linux, SUSE Linux 9.x, and SUSE Linux Enterprise Server 9 are
42         ideal target platforms to which a NetWare server may be migrated. The migration method
43         of choice is much dependent on the tools that the administrator finds most natural to use.
44         The old-hand NetWare guru will likely want to use tools like the NetWare NLM for
45         <command>rsync</command> to migrate files from the NetWare server to the Samba server.
46         The UNIX administrator might prefer tools that are part of the Mars_NWE (Martin Stovers' NetWare
47         Emulator) open source package. The MS Windows network administrator will likely make use of the
48         NWConv utility that is a part of Windows NT4 Server. Whatever your tool of choice,
49         migration will be filled with joyous and challenging moments &smbmdash; though probably not
50         concurrently.
51         </para>
53         <para>
54         The priority that Misty faced was one of migration of the data files off the NetWare 4.11
55         server and onto a Samba-ased Windows file and print server. This chapter does not pretend
56         to document all the different methods that could be used to migrate user and group accounts
57         off a NetWare server. Its focus is on migration of data files.
58         </para>
60         <para>
61         This chapter tells its own story, so ride along. Maybe the information presented here
62         will help to smooth over a similar migration challenge in your favorite networking environment.
63         </para>
65         <para>
66         File paths have been modified to permit use of RPM packages provided by Novell. In the
67         original documentation contributed by Misty, the Courier-IMAP package had been built
68         directly from the original source tarball.
69         </para>
71 <sect1>
72         <title>Introduction</title>
74         <para>
75         <indexterm><primary>Novell</primary></indexterm>
76         Misty Stanley-Jones was recruited by Abmas to administer a network that had
77         not received much attention for some years and was much in need of a makeover.
78         As a brand-new sysadmin to this company, she inherited a very old Novell file server
79         and came with a determination to change things for the better.
80         </para>
82         <para>
83         A site survey turned up the following details for the old NetWare server:
84         </para>
86         <simplelist>
87                 <member><para>200 MHz MMX processor</para></member>
88                 <member><para>512K RAM</para></member>
89                 <member><para>24 GB disk space in RAID1</para></member>
90                 <member><para>Novell 4.11 patched to service pack 7</para></member>
91                 <member><para>60+ users</para></member>
92                 <member><para>7 network-attached printers</para></member>
93         </simplelist>
95         <para>
96         The company had outgrown this server several years before and was dealing with
97         severe growing pains. Some of the problems experienced were:
98         </para>
99                 
100         <itemizedlist>
101                 <listitem>
102                         <para>Very slow performance</para>
103                 </listitem>
104                 <listitem>
105                         <para>Available storage hovering around the 5% range</para>
106                         <itemizedlist>
107                                 <listitem>
108                                         <para>Extremely slow print spooling.</para>
109                                 </listitem>
110                                 <listitem>
111                                         <para>
112                                         Users storing information on their local hard
113                                         drives, causing backup integrity problems
114                                         </para>
115                                 </listitem>
116                         </itemizedlist>
117                 </listitem>
118           </itemizedlist>
120         <para>
121         <indexterm><primary>payroll</primary></indexterm>
122         At one point disk space had filled up to 100 percent, causing the payroll database
123         to become corrupt. This caused the accounting department to be down for over
124         a week and necessitated deployment of another file server. The replacement
125         server was created with very poor security and design considerations from
126         a discarded desktop PC.
127         </para>
129         <sect2>
130                 <title>Assignment Tasks</title>
132         <para>
133         Misty has provided this summary of her migration experience in the hope
134         that it will help someone to avoid the challenges she faced. Perhaps her
135         configuration files and background will accelerate your learning as you
136         grapple with a similar migration challenge. Let there be no confusion,
137         the information presented in this chapter is provided to demonstrate
138         how Misty dealt with a particular NetWare migration requirement, and
139         it provides an overall approach to the implementation of a Samba-3
140         environment that is significantly divergent from that presented in
141         <link linkend="happy"/>.
142         </para>
144         <para>
145         The complete removal of all site-specific information in order to produce       
146         a generic migration solution would rob this chapter of its character.
147         It should be recognized, therefore, that the examples given require
148         significant adaptation to suit local needs and thus
149         there are some gaps in the example files. That is not Misty's fault;it
150         is the result of treatment given to her files in an attempt to make
151         the overall information more useful to you.
152         </para>
154         <para>
155         <indexterm><primary>cost-benefit</primary></indexterm>
156         After management reviewed a cost-benefit report as well as an estimated
157         time-to-completion, approval was given proceed with the solution proposed.
158         The server was built from purchased components. The total project cost
159         was $3,000. A brief description of the configuration follows:
160         </para>
162         <simplelist>
163                 <member>
164                         <para>3.0 GHz P4 Processor</para>
165                 </member>
166                 <member>
167                         <para>1 GB RAM</para>
168                 </member>
169                 <member>
170                         <para>120 GB SATA operating system drive</para>
171                 </member>
172                 <member>
173                         <para>4 x 80 GB SATA data drives (RAID5 240 GB capacity)</para>
174                 </member>
175                 <member>
176                         <para>2 x 80 GB SATA removable drives for online backup</para>
177                 </member>
178                 <member>
179                         <para>A DLT drive for asynchronous offline backup</para>
180                 </member>
181                 <member>
182                         <para>SUSE Linux Professional 9.1</para>
183                 </member>
184         </simplelist>
186         <para>
187         The new system has operated for 6 months without problems. Over the past months
188         much attention has been focused on cleaning up desktops and user profiles.
189         </para>
191         </sect2>
192 </sect1>
194 <sect1>
195         <title>Dissection and Discussion</title>
197         <para>
198         <indexterm><primary>LDAP</primary></indexterm>
199         <indexterm><primary>e-Directory</primary></indexterm>
200         <indexterm><primary>authentication</primary></indexterm>
201         <indexterm><primary>identity management</primary></indexterm>
202         A decision to use LDAP was made even though I knew nothing about LDAP except that
203         I had been reading the book <quote>LDAP System Administration,</quote> by Gerald Carter.
204         LDAP seemed to provide some of the functionality of Novell's e-Directory Services
205         and would provide centralized authentication and identity management.
206         </para>
208         <para>
209         <indexterm><primary>database</primary></indexterm>
210         <indexterm><primary>RPM</primary></indexterm>
211         <indexterm><primary>tree</primary></indexterm>
212         Building the LDAP database took a while and a lot of trial and error. Following
213         the guidance I obtained from <quote>LDAP System 
214         Administration,</quote> I installed OpenLDAP (from RPM; later I compiled
215         a more current version from source) and built my initial LDAP tree.
216         </para>
218         <sect2>
219         <title>Technical Issues</title>
221         <para>
222         <indexterm><primary>white-pages</primary></indexterm>
223         <indexterm><primary>inetOrgPerson</primary></indexterm>
224         <indexterm><primary>OpenLDAP</primary></indexterm>
225         <indexterm><primary>/etc/passwd</primary></indexterm>
226         <indexterm><primary>/etc/shadow</primary></indexterm>
227         <indexterm><primary>LDIF</primary></indexterm>
228         <indexterm><primary>IMAP</primary></indexterm>
229         <indexterm><primary>POP3</primary></indexterm>
230         <indexterm><primary>SMTP</primary></indexterm>
231         The first challenge was to create a company white pages, followed by manually
232         entering everything from the printed company directory. This used only the inetOrgPerson
233         object class from the OpenLDAP schemas. The next step was to write a shell script that
234         would look at the <filename>/etc/passwd</filename> and <filename>/etc/shadow</filename>
235         files on our mail server and create a LDIF file from which the information could be
236         imported into LDAP. This would allow use of LDAP for Linux authentication, IMAP, POP3,
237         and SMTP.
238         </para>
240         <para>
241         Because a decision was made to use Courier-IMAP the schema <quote>authldap.schema</quote>
242         from the Courier-IMAP source, tarball is necessary to resolve Courier-specific LDAP directory
243         needs. Where the Courier-IMAP file provided by SUSE is used, this file is named
244         <filename>courier.schema</filename>.
245         </para>
247         <para>
248         Looking back, it would have been much easier to populate the LDAP directory using a convenient
249         tool such as <command>phpLDAPAdmin</command> from the outset. An excessive amount of time was
250         spent trying to generate LDIF files that could be parsed using the <command>ldapmodify</command>
251         so that necessary changes could be written to the directory. This was a learning experience!
252         </para>
254         <para>
255         An attempt was made to use the PADL POSIX account migration scripts, but I gave up trying to
256         make them work. Instead, even though it is most inelegant, I wrote a simple script that did
257         what I needed. It is enclosed as a simple example to demonstrate that you do not need to be
258         a guru to make light of otherwise painful repetition. This file is listed in <link linkend="sbeamg"/>.
259         </para>
261 <example id="sbeamg">
262 <title>A Rough Tool to Create an LDIF File from the System Account Files</title>
263 <screen>
264 #!/bin/bash
266 cat /etc/passwd | while read l; do
267   uid=`echo $l | cut -d : -f 1`
268   uidNumber=`echo $l | cut -d : -f 3`
269   gidNumber=`echo $1 | cut -d : -f 4`
270   gecos=`echo $l | cut -d : -f 5`
271   homeDirectory=`echo $l | cut -d : -f 6`
272   loginShell=`echo $l | cut -d : -f 6`
273   userPassword=`cat /etc/shadow | grep $uid | cut -d : -f 2`
275   echo "dn: cn=$gecos,ou=people,dc=mycompany,dc=com"
276   echo "objectClass: account"
277   echo "objectClass: posixAccount"
278   echo "cn: $gecos"
279   echo "uid: $uid"
280   echo "uidNumber: $uidNumber"
281   echo "gidNumber: $gidNumber"
282   echo "homeDirectory: $homeDirectory"
283   echo "loginShell: $loginShell"
284   echo "userPassword: $userPassword"
285 done
286 </screen>
287 </example>
289         <note><para>
290         
291         The PADL MigrationTools are recommended for migration of the UNIX account information into
292         the LDAP directory. The tools consist of a set of Perl scripts for migration of users, groups,
293         aliases, hosts, netgroups, networks, protocols, PRCs, and services from the existing ASCII text
294         files (or from a name service such as NIS). This too set can be obtained from the <ulink url=
295         "http://www.padl.com">PADL Web site</ulink>.
296         </para></note>
298         </sect2>
300 </sect1>
302 <sect1>
303         <title>Implementation</title>
305         <para>
306         </para>
308         <sect2>
309         <title>NetWare Migration Using LDAP Backend</title>
311         <para>
312         The following software must be installed on the SUSE Linux Enterprise Server to perform
313         this migration:
314         </para>
316         <simplelist>
317                 <member><para>courier-imap</para></member>
318                 <member><para>courier-imap-ldap</para></member>
319                 <member><para>nss_ldap</para></member>
320                 <member><para>openldap2-client</para></member>
321                 <member><para>openldap2-devel (only for Samba compilation)</para></member>
322                 <member><para>openldap2</para></member>
323                 <member><para>pam_ldap</para></member>
324                 <member><para>samba-3.0.20 or later</para></member>
325                 <member><para>samba-client-3.0.20 or later</para></member>
326                 <member><para>samba-winbind-3.0.20 or later</para></member>
327                 <member><para>smbldap-tools Version 0.8.8</para></member>
328         </simplelist>
330         <para>
331         Each software application must be carefully configured in preparation for migration.
332         The configuration files used at Abmas are provided as a guide and should be modified
333         to meet needs at your site.
334         </para>
336         <sect3>
337         <title>LDAP Server Configuration</title>
339         <para>
340         The <filename>/etc/openldap/slapd.conf</filename> file Misty used is shown here:
341 <programlisting>
342 #/etc/openldap/slapd.conf
344 # See slapd.conf(5) for details on configuration options.
345 # This file should NOT be world readable.
347 include   /etc/openldap/schema/core.schema
348 include   /etc/openldap/schema/cosine.schema
349 include   /etc/openldap/schema/inetorgperson.schema
350 include   /etc/openldap/schema/nis.schema
351 include   /etc/openldap/schema/samba3.schema
352 include   /etc/openldap/schema/dhcp.schema
353 include   /etc/openldap/schema/misc.schema
354 include   /etc/openldap/schema/idpool.schema
355 include   /etc/openldap/schema/eduperson.schema
356 include   /etc/openldap/schema/commURI.schema
357 include   /etc/openldap/schema/local.schema
358 include   /etc/openldap/schema/courier.schema
360 pidfile   /var/run/slapd/run/slapd.pid
361 argsfile  /var/run/slapd/run/slapd.args
363 replogfile  /data/ldap/log/slapd.replog
365 # Load dynamic backend modules:
366 modulepath  /usr/lib/openldap/modules
368 #######################################################################
369 # Logging parameters
370 #######################################################################
371 loglevel 256
373 #######################################################################
374 # SASL and TLS options
375 #######################################################################
376 sasl-host     ldap.corp.abmas.org
377 sasl-realm    DIGEST-MD5
378 sasl-secprops   none
379 TLSCipherSuite HIGH:MEDIUM:+SSLV2
380 TLSCertificateFile    /etc/ssl/certs/private/abmas-cert.pem
381 TLSCertificateKeyFile /etc/ssl/certs/private/abmas-key.pem
382 password-hash   {SSHA}
383 defaultsearchbase "dc=abmas,dc=biz"
385 #######################################################################
386 # bdb database definitions
387 #######################################################################
388 database          bdb
389 suffix            "dc=abmas,dc=biz"
390 rootdn            "cn=manager,dc=abmas,dc=biz"
391 rootpw            {SSHA}gdo/dUvoT4ZJmULz3rUt6A3H/hBEduJ5
392 directory         /data/ldap
393 mode    0600
394 # The following is for BDB to make it flush its data to disk every
395 # 500 seconds or 5kb of data
396 checkpoint 500 5
398 ## For running slapindex
399 #readonly on
401 ## Indexes for often-requested attributes
402 index   objectClass             eq
403 index   cn                      eq,sub
404 index   sn                      eq,sub
405 index   uid                     eq,sub
406 index   uidNumber               eq
407 index   gidNumber               eq
408 index   sambaSID                eq
409 index   sambaPrimaryGroupSID    eq
410 index   sambaDomainName         eq
411 index   default                 sub
412 cachesize 2000
414 replica         host=baa.corp.abmas.org:389
415                 suffix="dc=abmas,dc=biz"
416                 binddn="cn=replica,dc=abmas,dc=biz"
417                 credentials=verysecret
418                 bindmethod=simple
419                 tls=yes
420 replica         host=ns.abmas.org:389
421                 suffix="dc=abmas,dc=biz"
422                 binddn="cn=replica,dc=abmas,dc=biz"
423                 credentials=verysecret
424                 bindmethod=simple
425                 tls=yes
427 #######################################################################
428 # ACL section
429 #######################################################################
430 ## MOST RESTRICTIVE RULES MUST GO FIRST!
431 # Admins get access to everything. This way I do not have to rename.
432 access to *
433   by group/groupOfUniqueNames/uniqueMember="cn=LDAP
434 Administrators,ou=groups,dc=abmas,dc=biz" write
435   by * break
437 ## Users can change their own passwords. 
438 access to 
439 attrs=userPassword,sambaNTPassword,sambaLMPassword,sambaPwdLastSet,
440 sambaPwdMustChange,sambaPwdCanChange
441   by self write
442   by * auth
444 ## Home contact info restricted to the logged-in user and the HR dept
445 access to attrs=hometelephoneNumber,homePostalAddress,
446 mobileTelephoneNumber,pagerTelephoneNumber
447   by group/groupOfUniqueNames/uniqueMember="cn=hr_admin,
448 ou=groups,dc=abmas,dc=biz" 
449 write
450   by self write
451   by * none
453 ## Everyone can read email aliases
454 access to dn.sub="ou=Email Aliases,dc=abmas,dc=biz"
455   by * read
457 ## Only admins can manage email aliases
458 ## If someone is the role occupant of an alias they can change it -- this
459 ## is accomplished by the "organizationalRole" objectclass and is
460 ## pretty cool -- like a groupOfUniqueNames but for individual
461 ## users.
462 access to dn.children="ou=Email Aliases,dc=abmas,dc=biz"
463   by dnattr=roleOccupant write
464   by * read
466 ## Admins and HR can add and delete users
467 access to dn.sub="ou=people,dc=abmas,dc=biz"
468   by group/groupOfUniqueNames/uniqueMember="cn=hr_admin,
469 ou=groups,dc=abmas,dc=biz" 
470 write
471   by * read
473 ## Admins and HR can add and delete bizputers
474 access to dn.sub="ou=bizputers,dc=abmas,dc=biz"
475   by group/groupOfUniqueNames/uniqueMember="cn=hr_admin,
476 ou=groups,dc=abmas,dc=biz" 
477 write
478   by * read
480 ## Admins and HR can add and delete groups
481 access to dn.sub="ou=groups,dc=abmas,dc=biz"
482   by group/groupOfUniqueNames/uniqueMember="cn=hr_admin,
483 ou=groups,dc=abmas,dc=biz" 
484 write
485   by * read
487 ## This is used to quickly deactivate any LDAP object only Admins have access.
488 access to dn.sub="ou=inactive,dc=abmas,dc=biz"
489   by * none
491 ## This is for programs like Windows Address Book that can 
492 ## detect the default search base.
493 access to attrs=namingcontexts,supportedControl
494   by anonymous =cs
495   by * read
497 ## Default to read-only access
498 access to *
499   by dn.base="cn=replica,ou=people,dc=abmas,dc=biz" write
500   by * read
501 </programlisting>
502 </para>
504         <para>
505         <indexterm><primary>/etc/ldap.conf</primary></indexterm>
506         The <filename>/etc/ldap.conf</filename> file used is listed in <link linkend="ch8ldap"/>.
507         </para>
509 <example id="ch8ldap">
510 <title>NSS LDAP Control File &smbmdash; /etc/ldap.conf</title>
511 <screen>
512 # /etc/ldap.conf
513 # This file is present on every *NIX client that authenticates to LDAP.
514 # For me, most of the defaults are fine. There is an amazing amount of
515 # customization that can be done see the man page for info.
517 # Your LDAP server. Must be resolvable without using LDAP. The following
518 # is for the LDAP server all others use the FQDN of the server
519 URI ldap://127.0.0.1
521 # The distinguished name of the search base.
522 base ou=corp,dc=abmas,dc=biz
524 # The LDAP version to use (defaults to 3 if supported by client library)
525 ldap_version 3
527 # The distinguished name to bind to the server with if the effective
528 # user ID is root. Password is stored in /etc/ldap.secret (mode 600)
529 rootbinddn cn=Manager,dc=abmas,dc=biz
531 # Filter to AND with uid=%s
532 pam_filter objectclass=posixAccount
534 # The user ID attribute (defaults to uid)
535 pam_login_attribute uid
537 # Group member attribute
538 pam_member_attribute memberUID
540 # Use the OpenLDAP password change
541 # extended operation to update the password.
542 pam_password exop
544 # OpenLDAP SSL mechanism
545 # start_tls mechanism uses the normal LDAP port, LDAPS typically 636
546 ssl start_tls
548 tls_cacertfile /etc/ssl/certs/private/abmas-cert.pem
550 </screen>
551 </example>
553         <para>
554         The NSS control file <filename>/etc/nsswitch.conf</filename> has the following contents:
555 <screen>
556 # /etc/nsswitch.conf
557 # This file controls the resolve order for system databases.
559 # the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
560 passwd:   compat ldap
561 group:    compat ldap
562 # The above are all that I store in LDAP at this point. There are 
563 # possibilities to store hosts, services, ethers, and lots of other things.
564 </screen>
565         </para>
567         <para>
568         <indexterm><primary>PAM</primary></indexterm>
569         <indexterm><primary>NSS</primary></indexterm>
570         In my setup, users authenticate via PAM and NSS using LDAP-based accounts.
571         The configuration file that controls the behavior of the PAM <command>pam_unix2</command>
572         module is shown in <link linkend="sbepu2"/> file.
573         This works out of the box with the configuration files in this chapter. It
574         enables you to have no local accounts for users (it is highly advisable 
575         to have a local account for the root user).  Traps for the unwary include the following:
576         </para>
578 <example id="sbepu2">
579 <title>The PAM Control File <filename>/etc/security/pam_unix2.conf</filename></title>
580 <screen>
581 # pam_unix2 config file
583 # This file contains options for the pam_unix2.so module.
584 # It contains a list of options for every type of management group,
585 # which will be used for authentication, account management and
586 # password management. Not all options will be used from all types of
587 # management groups.
589 # At first, pam_unix2 will read this file and then uses the local
590 # options. Not all options can be set her global.
592 # Allowed options are:
594 # debug                 (account, auth, password, session)
595 # nullok                (auth)
596 # md5                   (password / overwrites /etc/default/passwd)
597 # bigcrypt              (password / overwrites /etc/default/passwd)
598 # blowfish              (password / overwrites /etc/default/passwd)
599 # crypt_rounds=XX
600 # none                  (session)
601 # trace                 (session)
602 # call_modules=x,y,z    (account, auth, password)
604 #  Example:
605 #  auth:        nullok
606 #  account:
607 #  password:    nullok blowfish crypt_rounds=8
608 #  session:     none
610 auth: use_ldap
611 account: use_ldap
612 password: use_ldap
613 session: none
614 </screen>
615 </example>
617         <indexterm><primary>LDAP</primary></indexterm>
618         <indexterm><primary>authenticate</primary></indexterm>
619         <indexterm><primary>DNS</primary></indexterm>
620         <itemizedlist>
621                 <listitem>
622                         <para>
623                         If your LDAP database goes down, nobody can authenticate except for root.
624                         </para>
625                 </listitem>
627                 <listitem>
628                         <para>
629                         If failover is configured incorrectly, weird behavior can occur. For example, 
630                         DNS can fail to resolve.
631                         </para>
632                 </listitem>
633         </itemizedlist>
635         <para>
636         I do have two LDAP slave servers configured. That subject is beyond the scope
637         of this document, and steps for implementing it are well documented.
638         </para>
640         <para>
641         The following services authenticate using LDAP:
642         </para>
643         <indexterm><primary>UNIX</primary></indexterm>
644         <indexterm><primary>Postfix</primary></indexterm>
645         <indexterm><primary>Courier-IMAP</primary></indexterm>
646         <simplelist>
647                 <member><para>UNIX login/ssh</para></member>
648                 <member><para>Postfix (SMTP)</para></member>
649                 <member><para>Courier-IMAP/IMAPS/POP3/POP3S</para></member>
650         </simplelist>
652         <para>
653         <indexterm><primary>white-pages</primary></indexterm>
654         <indexterm><primary>Windows Address Book</primary></indexterm>
655         Companywide white pages can be searched using an LDAP client
656         such as the one in the Windows Address Book.
657         </para>
659         <para>
660         <indexterm><primary>LDAP</primary></indexterm>
661         <indexterm><primary>smbldap-tools</primary></indexterm>
662         Having gained a solid understanding of LDAP and a relatively workable LDAP tree
663         thus far, it was time to configure Samba. I compiled the latest stable Samba and
664         also installed the latest <command>smbldap-tools</command> from 
665         <ulink url="http://idealx.com">Idealx</ulink>.
666         </para>
668         <para>
669         The Samba &smb.conf; file was configured as shown in <link linkend="ch8smbconf"/>.
670         </para>
672 <example id="ch8smbconf">
673 <title>Samba Configuration File &smbmdash; smb.conf Part A</title>
674 <smbconfblock>
675 <smbconfcomment>Global parameters</smbconfcomment>
676 <smbconfsection name="[global]"/>
677 <smbconfoption name="workgroup">MEGANET2</smbconfoption>
678 <smbconfoption name="netbios name">MASSIVE</smbconfoption>
679 <smbconfoption name="server string">Corp File Server</smbconfoption>
680 <smbconfoption name="passdb backend">ldapsam:ldap://localhost</smbconfoption>
681 <smbconfoption name="pam password change">Yes</smbconfoption>
682 <smbconfoption name="username map">/etc/samba/smbusers</smbconfoption>
683 <smbconfoption name="log level">1</smbconfoption>
684 <smbconfoption name="log file">/data/samba/log/%m.log</smbconfoption>
685 <smbconfoption name="name resolve order">wins host bcast</smbconfoption>
686 <smbconfoption name="time server">Yes</smbconfoption>
687 <smbconfoption name="printcap name">cups</smbconfoption>
688 <smbconfoption name="show add printer wizard">No</smbconfoption>
689 <smbconfoption name="cups options">Raw</smbconfoption>
690 <smbconfoption name="add user script">/opt/IDEALX/sbin/smbldap-useradd -m "%u"</smbconfoption>
691 <smbconfoption name="add group script">/opt/IDEALX/sbin/smbldap-groupadd -p "%g"</smbconfoption>
692 <smbconfoption name="add user to group script">/opt/IDEALX/sbin/smbldap-groupmod -m "%u" "%g"</smbconfoption>
693 <smbconfoption name="delete user from group script">/opt/IDEALX/sbin/smbldap-groupmod -x "%u" "%g"</smbconfoption>
694 <smbconfoption name="set primary group script">/opt/IDEALX/sbin/smbldap-usermod -g "%g" "%u"</smbconfoption>
695 <smbconfoption name="add machine script">/usr/local/sbin/smbldap-useradd -w "%m"</smbconfoption>
696 <smbconfoption name="logon script">logon.bat</smbconfoption>
697 <smbconfoption name="logon path">\\%L\profiles\%U\%a</smbconfoption>
698 <smbconfoption name="logon drive">H:</smbconfoption>
699 <smbconfoption name="logon home">\\%L\%U</smbconfoption>
700 <smbconfoption name="domain logons">Yes</smbconfoption>
701 <smbconfoption name="wins support">Yes</smbconfoption>
702 <smbconfoption name="ldap admin dn">cn=Manager,dc=abmas,dc=biz</smbconfoption>
703 <smbconfoption name="ldap group suffix">ou=Groups</smbconfoption>
704 <smbconfoption name="ldap idmap suffix">ou=People</smbconfoption>
705 <smbconfoption name="ldap machine suffix">ou=People</smbconfoption>
706 <smbconfoption name="ldap passwd sync">Yes</smbconfoption>
707 <smbconfoption name="ldap suffix">ou=MEGANET2,dc=abmas,dc=biz</smbconfoption>
708 <smbconfoption name="ldap ssl">no</smbconfoption>
709 <smbconfoption name="ldap user suffix">ou=People</smbconfoption>
710 <smbconfoption name="admin users">root, "@Domain Admins"</smbconfoption>
711 <smbconfoption name="printer admin">"@Domain Admins"</smbconfoption>
712 <smbconfoption name="force printername">Yes</smbconfoption>
713 </smbconfblock>
714 </example>
716 <example id="ch8smbconf2">
717 <title>Samba Configuration File &smbmdash; smb.conf Part B</title>
718 <smbconfblock>
719 <smbconfsection name="[netlogon]"/>
720 <smbconfoption name="comment">Network logon service</smbconfoption>
721 <smbconfoption name="path">/data/samba/netlogon</smbconfoption>
722 <smbconfoption name="write list">"@Domain Admins"</smbconfoption>
723 <smbconfoption name="guest ok">Yes</smbconfoption>
725 <smbconfsection name="[profiles]"/>
726 <smbconfoption name="comment">Roaming Profile Share</smbconfoption>
727 <smbconfoption name="path">/data/samba/profiles/</smbconfoption>
728 <smbconfoption name="read only">No</smbconfoption>
729 <smbconfoption name="profile acls">Yes</smbconfoption>
730 <smbconfoption name="veto files">desktop.ini</smbconfoption>
731 <smbconfoption name="browseable">No</smbconfoption>
733 <smbconfsection name="[homes]"/>
734 <smbconfoption name="comment">Home Directories</smbconfoption>
735 <smbconfoption name="valid users">%S</smbconfoption>
736 <smbconfoption name="read only">No</smbconfoption>
737 <smbconfoption name="create mask">0770</smbconfoption>
738 <smbconfoption name="veto files">desktop.ini</smbconfoption>
739 <smbconfoption name="hide files">desktop.ini</smbconfoption>
740 <smbconfoption name="browseable">No</smbconfoption>
742 <smbconfsection name="[software]"/>
743 <smbconfoption name="comment">Software for %a computers</smbconfoption>
744 <smbconfoption name="path">/data/samba/shares/software/%a</smbconfoption>
745 <smbconfoption name="guest ok">Yes</smbconfoption>
747 <smbconfsection name="[public]"/>
748 <smbconfoption name="comment">Public Files</smbconfoption>
749 <smbconfoption name="path">/data/samba/shares/public</smbconfoption>
750 <smbconfoption name="read only">No</smbconfoption>
751 <smbconfoption name="guest ok">Yes</smbconfoption>
753 <smbconfsection name="[PDF]"/>
754 <smbconfoption name="comment">Location of documents printed to PDFCreator printer</smbconfoption>
755 <smbconfoption name="path">/data/samba/shares/pdf</smbconfoption>
756 <smbconfoption name="guest ok">Yes</smbconfoption>
757 </smbconfblock>
758 </example>
760 <example id="ch8smbconf3">
761 <title>Samba Configuration File &smbmdash; smb.conf Part C</title>
762 <smbconfblock>
763 <smbconfsection name="[EVERYTHING]"/>
764 <smbconfoption name="comment">All shares</smbconfoption>
765 <smbconfoption name="path">/data/samba</smbconfoption>
766 <smbconfoption name="valid users">"@Domain Admins"</smbconfoption>
767 <smbconfoption name="read only">No</smbconfoption>
769 <smbconfsection name="[CDROM]"/>
770 <smbconfoption name="comment">CD-ROM on MASSIVE</smbconfoption>
771 <smbconfoption name="path">/mnt</smbconfoption>
772 <smbconfoption name="guest ok">Yes</smbconfoption>
774 <smbconfsection name="[print$]"/>
775 <smbconfoption name="comment">Printer Drivers Share</smbconfoption>
776 <smbconfoption name="path">/data/samba/drivers</smbconfoption>
777 <smbconfoption name="write list">root</smbconfoption>
778 <smbconfoption name="browseable">No</smbconfoption>
780 <smbconfsection name="[printers]"/>
781 <smbconfoption name="comment">All Printers</smbconfoption>
782 <smbconfoption name="path">/data/samba/spool</smbconfoption>
783 <smbconfoption name="create mask">0644</smbconfoption>
784 <smbconfoption name="printable">Yes</smbconfoption>
785 <smbconfoption name="browseable">No</smbconfoption>
787 <smbconfsection name="[acct_hp8500]"/>
788 <smbconfoption name="comment">"Accounting Color Laser Printer"</smbconfoption>
789 <smbconfoption name="path">/data/samba/spool/private</smbconfoption>
790 <smbconfoption name="valid users">@acct, @acct_admin, @hr, "@Domain Admins",@Receptionist, dwayne, terri, danae, jerry</smbconfoption>
791 <smbconfoption name="create mask">0644</smbconfoption>
792 <smbconfoption name="printable">Yes</smbconfoption>
793 <smbconfoption name="copy">printers</smbconfoption>
795 <smbconfsection name="[plotter]"/>
796 <smbconfoption name="comment">Engineering Plotter</smbconfoption>
797 <smbconfoption name="path">/data/samba/spool</smbconfoption>
798 <smbconfoption name="create mask">0644</smbconfoption>
799 <smbconfoption name="printable">Yes</smbconfoption>
800 <smbconfoption name="use client driver">Yes</smbconfoption>
801 <smbconfoption name="copy">printers</smbconfoption>
802 </smbconfblock>
803 </example>
805 <example id="ch8smbconf4">
806 <title>Samba Configuration File &smbmdash; smb.conf Part D</title>
807 <smbconfblock>
808 <smbconfsection name="[APPS]"/>
809 <smbconfoption name="path">/data/samba/shares/Apps</smbconfoption>
810 <smbconfoption name="force group">"Domain Users"</smbconfoption>
811 <smbconfoption name="read only">No</smbconfoption>
813 <smbconfsection name="[ACCT]"/>
814 <smbconfoption name="path">/data/samba/shares/Accounting</smbconfoption>
815 <smbconfoption name="valid users">@acct, "@Domain Admins"</smbconfoption>
816 <smbconfoption name="force group">acct</smbconfoption>
817 <smbconfoption name="read only">No</smbconfoption>
818 <smbconfoption name="create mask">0660</smbconfoption>
819 <smbconfoption name="directory mask">0770</smbconfoption>
821 <smbconfsection name="[ACCT_ADMIN]"/>
822 <smbconfoption name="path">/data/samba/shares/Acct_Admin</smbconfoption>
823 <smbconfoption name="valid users">@”acct_admin”</smbconfoption>
824 <smbconfoption name="force group">acct_admin</smbconfoption>
826 <smbconfsection name="[HR_PR]"/>
827 <smbconfoption name="path">/data/samba/shares/HR_PR</smbconfoption>
828 <smbconfoption name="valid users">@hr, @acct_admin</smbconfoption>
829 <smbconfoption name="force group">hr</smbconfoption>
831 <smbconfsection name="[ENGR]"/>
832 <smbconfoption name="path">/data/samba/shares/Engr</smbconfoption>
833 <smbconfoption name="valid users">@engr, @receptionist, @truss, "@Domain Admins", cheri</smbconfoption>
834 <smbconfoption name="force group">engr</smbconfoption>
835 <smbconfoption name="read only">No</smbconfoption>
836 <smbconfoption name="create mask">0770</smbconfoption>
838 <smbconfsection name="[DATA]"/>
839 <smbconfoption name="path">/data/samba/shares/DATA</smbconfoption>
840 <smbconfoption name="valid users">@engr, @receptionist, @truss, "@Domain Admins", cheri</smbconfoption>
841 <smbconfoption name="force group">engr</smbconfoption>
842 <smbconfoption name="read only">No</smbconfoption>
843 <smbconfoption name="create mask">0770</smbconfoption>
844 <smbconfoption name="copy">engr</smbconfoption>
845 </smbconfblock>
846 </example>
848 <example id="ch8smbconf5">
849 <title>Samba Configuration File &smbmdash; smb.conf Part E</title>
850 <smbconfblock>
851 <smbconfsection name="[X]"/>
852 <smbconfoption name="path">/data/samba/shares/X</smbconfoption>
853 <smbconfoption name="valid users">@engr, @acct</smbconfoption>
854 <smbconfoption name="force group">engr</smbconfoption>
855 <smbconfoption name="read only">No</smbconfoption>
856 <smbconfoption name="create mask">0770</smbconfoption>
857 <smbconfoption name="copy">engr</smbconfoption>
859 <smbconfsection name="[NETWORK]"/>
860 <smbconfoption name="path">/data/samba/shares/network</smbconfoption>
861 <smbconfoption name="valid users">"@Domain Users"</smbconfoption>
862 <smbconfoption name="read only">No</smbconfoption>
863 <smbconfoption name="create mask">0770</smbconfoption>
864 <smbconfoption name="guest ok">Yes</smbconfoption>
866 <smbconfsection name="[UTILS]"/>
867 <smbconfoption name="path">/data/samba/shares/Utils</smbconfoption>
868 <smbconfoption name="write list">"@Domain Admins"</smbconfoption>
870 <smbconfsection name="[SYS]"/>
871 <smbconfoption name="path">/data/samba/shares/SYS</smbconfoption>
872 <smbconfoption name="valid users">chad</smbconfoption>
873 <smbconfoption name="read only">No</smbconfoption>
874 <smbconfoption name="browseable">No</smbconfoption>
875 </smbconfblock>
876 </example>
878         <para>
879         <indexterm><primary>Qbasic</primary></indexterm>
880         <indexterm><primary>Rbase</primary></indexterm>
881         <indexterm><primary>drive letters</primary></indexterm>
882         Most of these shares are only used by one company group, but they are required
883         because of some ancient Qbasic and Rbase applications were that written expecting
884         their own drive letters.
885         </para>
887         <para>
888         <indexterm><primary>rsync</primary></indexterm>
889         <indexterm><primary>rsyncd.conf</primary></indexterm>
890         <indexterm><primary>synchronize</primary></indexterm>
891         Note: During the process of building the new server, I kept data files
892         up to date with the Novell server via use of <command>rsync</command>. 
893         On a separate system (my workstation in fact), which could be rebooted
894         whenever necessary, I set up a mount point to the Novell server via
895         <command>ncpmount</command>. I then created a
896         <filename>rsyncd.conf</filename> to share that mount point out to my
897         new server, and synchronized once an hour. The script I used to synchronize
898         is shown in <link linkend="sbersync"/>. The files exclusion list I used
899         is shown in <link linkend="sbexcld"/>.  The reason I had to have the
900         <command>rsync</command> daemon running on a system that could be
901         rebooted frequently is because <constant>ncpfs</constant>
902         (part of the MARS NetWare Emulation package) has a nasty habit of creating stale
903         mount points that cannot be recovered without a reboot. The reason for hourly
904         synchronization is because some part of the chain was very slow and
905         performance-heavy (whether <command>rsync</command> itself, the network,
906         or the Novell server, I am not sure, but it was probably the Novell server).
907         </para>
909 <example id="sbersync">
910 <title>Rsync Script</title>
911 <screen>
912 #!/bin/bash
913 # Part 1 - rsync the Novell directories to the new server
914 echo "#############################################"
915 echo "New sync operation starting at `date`"
916 if ! pgrep -fl '^rsync\&gt; ; then
917         echo "Good, no rsync is running!"
918   echo "Synchronizing oink to BHPRO"
919         rsync -av --exclude-from=/root/excludes.txt 
920 baa.corp:/BHPRO/SYS1/ /data/samba/shares/SYS1
921         retval=$?
922         [ ${retval} = 0 ] &amp;&amp; echo "Sync operation completed at `date`"
923         echo "Fixing permissions"
924         # I had a whole lot more permission-fixing stuff here.  It got
925         # pared down as groups got moved over.  The problem
926         # was that the way I was mounting the directory, everything
927         # was owned by the Novell administrator which translated to
928         # Root.  This is also why I could only do one-way sync because
929         # I could not fix the ACLs on the Novell side.
930         find /data/samba/shares/Engr/ -perm +770 -exec chmod 770 {} \;
931         find /data/samba/shares/Engr/ ! -group engr -exec chgrp engr {} \;
932 else
933         # This rsync took ages and ages -- I had it set to run every hour but
934         # I needed a way to prevent it running into itself.
935         echo "Oh no, rsync is already running!"
936 echo "#############################################"
938 </screen>
939 </example>
941 <example id="sbexcld">
942 <title>Rsync Files Exclusion List &smbmdash; <filename>/root/excludes.txt</filename></title>
943 <screen>
944 /Acct/
945 /Apps/
946 /DATA/
947 /Engr/*.pc3
948 /Engr/plotter
949 /Engr/APPOLO/
950 /Engr/LIBRARY/
951 /Home/Accounting/
952 /Home/Angie/
953 /Home/AngieY/
954 /Home/Brandon/
955 /Home/Carl/
956 </screen>
957 </example>
959         <para>
960         After Samba was configured, I initialized the LDAP database. The first
961         thing I had to do was store the LDAP password in the Samba configuration by
962         issuing the command (as root):
963 <screen>
964 &rootprompt; smbpasswd -w verysecret
965 </screen>
966         where <quote>verysecret</quote> is replaced by the LDAP bind password.
967         </para>
969 <note><para>
970 The Idealx smbldap-tools package can be configured using a script called 
971 <command>configure.pl</command> that is provided as part of the tool. See <link linkend="happy"/>
972 for an example of its use. Many administrators, like Misty, choose to do this manually
973 so as to maintain greater awareness of how the tool-chain works and possibly to avoid
974 undesirable actions from occurring un-noticed.
975 </para></note>
977         <para>
978         Now Samba was ready for use and it was time to configure the smbldap-tools. There are two
979         relevant files, which are usually put into the directory
980         <filename>/etc/smbldap-tools</filename>. The main file,
981         <filename>smbldap.conf</filename> is shown in <link linkend="ch8ideal"/>.
982         </para>
984 <example id="ch8ideal">
985 <title>Idealx smbldap-tools Control File &smbmdash; Part A</title>
986 <screen>
987 #########
989 # located in /etc/smbldap-tools/smbldap.conf
991 ##############################################################################
993 # General Configuration
995 ##############################################################################
997 # Put your own SID
998 # to obtain this number do: net getlocalsid
999 SID="S-1-5-21-725326080-1709766072-2910717368"
1001 ##############################################################################
1003 # LDAP Configuration
1005 ##############################################################################
1007 # Notes: to use to dual ldap servers backend for Samba, you must patch
1008 # Samba with the dual-head patch from IDEALX. If not using this patch
1009 # just use the same server for slaveLDAP and masterLDAP.
1010 # Those two servers declarations can also be used when you have
1011 # . one master LDAP server where all writing operations must be done
1012 # . one slave LDAP server where all reading operations must be done
1013 #   (typically a replication directory)
1015 # Ex: slaveLDAP=127.0.0.1
1016 slaveLDAP="127.0.0.1"
1017 slavePort="389"
1019 # Master LDAP : needed for write operations
1020 # Ex: masterLDAP=127.0.0.1
1021 masterLDAP="127.0.0.1"
1022 masterPort="389"
1024 # Use TLS for LDAP
1025 # If set to 1, this option will use start_tls for connection
1026 # (you should also used the port 389)
1027 ldapTLS="0"
1029 # How to verify the server's certificate (none, optional or require)
1030 # see "man Net::LDAP" in start_tls section for more details
1031 verify=""
1032 </screen>
1033 </example>
1035 <example id="ch8ideal2">
1036 <title>Idealx smbldap-tools Control File &smbmdash; Part B</title>
1037 <screen>
1038 # CA certificate
1039 # see "man Net::LDAP" in start_tls section for more details
1040 cafile=""
1041  certificate to use to connect to the ldap server
1042 # see "man Net::LDAP" in start_tls section for more details
1043 clientcert=""
1045 # key certificate to use to connect to the ldap server
1046 # see "man Net::LDAP" in start_tls section for more details
1047 clientkey=""
1049 # LDAP Suffix
1050 # Ex: suffix=dc=IDEALX,dc=ORG
1051 suffix="ou=MEGANET2,dc=abmas,dc=biz"
1053 # Where are stored Users
1054 # Ex: usersdn="ou=Users,dc=IDEALX,dc=ORG"
1055 usersdn="ou=People,${suffix}"
1057 # Where are stored Computers
1058 # Ex: computersdn="ou=Computers,dc=IDEALX,dc=ORG"
1059 computersdn="ou=People,${suffix}"
1061 # Where are stored Groups
1062 # Ex groupsdn="ou=Groups,dc=IDEALX,dc=ORG"
1063 groupsdn="ou=Groups,${suffix}"
1065 # Where are stored Idmap entries (used if samba is a domain member server)
1066 # Ex groupsdn="ou=Idmap,dc=IDEALX,dc=ORG"
1067 idmapdn="ou=Idmap,${suffix}"
1069 # Where to store next uidNumber and gidNumber available
1070 sambaUnixIdPooldn="sambaDomainName=MEGANET2,dc=abmas,dc=biz"
1072 # Default scope Used
1073 scope="sub"
1074 </screen>
1075 </example>
1077 <example id="ch8ideal3">
1078 <title>Idealx smbldap-tools Control File &smbmdash; Part C</title>
1079 <screen>
1080 # Unix password encryption (CRYPT, MD5, SMD5, SSHA, SHA)
1081 hash_encrypt="MD5"
1083 # if hash_encrypt is set to CRYPT, you may set a salt format.
1084 # default is "%s", but many systems will generate MD5 hashed
1085 # passwords if you use "$1$%.8s". This parameter is optional!
1086 crypt_salt_format="%s"
1088 ##############################################################################
1090 # Unix Accounts Configuration
1092 ##############################################################################
1094 # Login defs
1095 # Default Login Shell
1096 # Ex: userLoginShell="/bin/bash"
1097 userLoginShell="/bin/false"
1099 # Home directory
1100 # Ex: userHome="/home/%U"
1101 userHome="/home/%U"
1103 # Gecos
1104 userGecos="Samba User"
1106 # Default User (POSIX and Samba) GID
1107 defaultUserGid="513"
1109 # Default Computer (Samba) GID
1110 defaultComputerGid="515"
1112 # Skel dir
1113 skeletonDir="/etc/skel"
1115 # Default password validation time (time in days) Comment the next line if
1116 # you don't want password to be enable for defaultMaxPasswordAge days (be
1117 # careful to the sambaPwdMustChange attribute's value)
1118 defaultMaxPasswordAge="45"
1119 </screen>
1120 </example>
1122 <example id="ch8ideal4">
1123 <title>Idealx smbldap-tools Control File &smbmdash; Part D</title>
1124 <screen>
1125 ##############################################################################
1127 # SAMBA Configuration
1129 ##############################################################################
1131 # The UNC path to home drives location (%U username substitution)
1132 # Ex: \\My-PDC-netbios-name\homes\%U
1133 # Just set it to a null string if you want to use the smb.conf 'logon home'
1134 # directive and/or disable roaming profiles
1135 userSmbHome=""
1137 # The UNC path to profiles locations (%U username substitution)
1138 # Ex: \\My-PDC-netbios-name\profiles\%U
1139 # Just set it to a null string if you want to use the smb.conf 'logon path'
1140 # directive and/or disable roaming profiles
1141 userProfile=""
1143 # The default Home Drive Letter mapping
1144 # (will be automatically mapped at logon time if home directory exist)
1145 # Ex: H: for H:
1146 userHomeDrive=""
1148 # The default user netlogon script name (%U username substitution)
1149 # if not used, will be automatically username.cmd
1150 # make sure script file is edited under DOS
1151 # Ex: %U.cmd
1152 # userScript="startup.cmd" # make sure script file is edited under DOS
1153 userScript=""
1155 # Domain appended to the users "mail"-attribute
1156 # when smbldap-useradd -M is used
1157 mailDomain="abmas.org"
1159 ##############################################################################
1161 # SMBLDAP-TOOLS Configuration (default are ok for a RedHat)
1163 ##############################################################################
1164 # Allows not to use smbpasswd (if with_smbpasswd == 0 in smbldap_conf.pm) but
1165 # prefer Crypt::SmbHash library
1166 with_smbpasswd="0"
1167 smbpasswd="/usr/bin/smbpasswd"
1168 </screen>
1169 </example>
1171         <para>
1172         <indexterm><primary>TLS</primary></indexterm>
1173         Note: I chose not to take advantage of the TLS capability of this. 
1174         Eventually I may go back and tweak it.  Also, I chose not to take advantage
1175         of the master/slave configuration as I heard horror stories that it was
1176         unstable.  My slave servers are replicas only.
1177         </para>
1179         <para>
1180         The <filename>/etc/smbldap-tools/smbldap_bind.conf</filename> file is shown here:
1181 <screen>
1182 # smbldap_bind.conf
1184 # This file simply tells smbldap-tools how to bind to your LDAP server.
1185 # It has to be a DN with full write access to the Samba portion of
1186 # the database.
1188 ############################
1189 # Credential Configuration #
1190 ############################
1191 # Notes: you can specify two different configurations if you use a
1192 # master ldap for writing access and a slave ldap server for reading access
1193 # By default, we will use the same DN (so it will work for standard Samba
1194 # release)
1195 slaveDN="cn=Manager,dc=abmas,dc=biz"
1196 slavePw="verysecret"
1197 masterDN="cn=Manager,dc=abmas,dc=biz"
1198 masterPw="verysecret"
1199 </screen>
1200         </para>
1202         <para>
1203         The next step was to run the <command>smbldap-populate</command> command, which populates
1204         the LDAP tree with the appropriate default users, groups, and UID and GID pools.
1205         It creates a user called Administrator with UID=0 and GID=0 matching the
1206         Domain Admins group. This is fine because you can still log on a root to a Windows system,
1207         but it will break cached credentials if you need to log on as the administrator
1208         to a system that is not on the network.
1209         </para>
1211         <para>
1212         After the LDAP database has been preloaded, it is prudent to validate that the
1213         information needed is in the LDAP directory. This can be done done by restarting
1214         the LDAP server, then performing an LDAP search by executing:
1215 <screen>
1216 &rootprompt; ldapsearch -W -x -b "dc=abmas,dc=biz"\
1217          -D "cn=Manager,dc=abmas,dc=biz" \
1218         "(Objectclass=*)"
1219 Enter LDAP Password:
1220 # extended LDIF
1222 # LDAPv3
1223 # base &lt;dc=abmas,dc=biz&gt; with scope sub
1224 # filter: (ObjectClass=*)
1225 # requesting: ALL
1228 # abmas.biz
1229 dn: dc=abmas,dc=biz
1230 objectClass: dcObject
1231 objectClass: organization
1232 o: abmas
1233 dc: abmas
1235 # People, abmas.biz
1236 dn: ou=People,dc=abmas,dc=biz
1237 objectClass: organizationalUnit
1238 ou: People
1240 # Groups, abmas.biz
1241 dn: ou=Groups,dc=abmas,dc=biz
1242 objectClass: organizationalUnit
1243 ou: Groups
1245 # Idmap, abmas.biz
1246 dn: ou=Idmap,dc=abmas,dc=biz
1247 objectClass: organizationalUnit
1248 ou: Idmap
1250 </screen>
1251         </para>
1253         <para>
1254         <indexterm><primary>Windows</primary></indexterm>
1255         <indexterm><primary>POSIX</primary></indexterm>
1256         <indexterm><primary>smbldap-groupadd</primary></indexterm>
1257         <indexterm><primary>RID</primary></indexterm>
1258         <indexterm><primary>sambaGroupMapping</primary></indexterm>
1259         With the LDAP directory now initialized, it was time to create the Windows and POSIX
1260         (UNIX) group accounts as well as the mappings from Windows groups to UNIX groups.
1261         The easiest way to do this was to use <command>smbldap-groupadd</command> command.
1262         It creates the group with the posixGroup and sambaGroupMapping attributes, a
1263         unique GID, and an automatically determined RID. I learned the hard way not to
1264         try to do this by hand.
1265         </para>
1267         <para>
1268         <indexterm><primary>group mapping</primary></indexterm>
1269         <indexterm><primary>smbldap-groupmod</primary></indexterm>
1270         <indexterm><primary>memberUID</primary></indexterm>
1271         After I had my group mappings in place, I added users to the groups (the users
1272         don't really have to exist yet). I used the <command>smbldap-groupmod</command>
1273         command to accomplish this. It can also be done manually by adding memberUID
1274         attributes to the group entries in LDAP.
1275         </para>
1277         <para>
1278         <indexterm><primary>sambaSamAccount</primary></indexterm>
1279         <indexterm><primary>posixAccount</primary></indexterm>
1280         <indexterm><primary>smbldap-usermod</primary></indexterm>
1281         The most monumental task of all was adding the sambaSamAccount information to each
1282         already existent posixAccount entry.  I did it one at a time as I moved people onto
1283         the new server, by issuing the command:
1284 <screen>
1285 &rootprompt; smbldap-usermod -a -P username
1286 </screen>
1287         <indexterm><primary>NetWare</primary></indexterm>
1288         <indexterm><primary>LDIF</primary></indexterm>
1289         <indexterm><primary>slapcat</primary></indexterm>
1290         I completed that step for every user after asking the person what his or her current
1291         NetWare password was. The wiser way to have done it would probably have been to dump the
1292         entire database to an LDIF file. This can be done by executing:
1293 <screen>
1294 &rootprompt; slapcat &gt; somefile.ldif
1295 </screen>
1296         <indexterm><primary>Perl</primary></indexterm>
1297         <indexterm><primary>objectClass</primary></indexterm>
1298         Then update the LDIF file created by using a Perl script to parse and add the
1299         appropriate attributes and objectClasses to each entry, followed by re-importing
1300         the entire database into the LDAP directory. 
1301         </para>
1303         <para>
1304         Rebuilding of the LDAP directory can be done as follows:
1305 <screen>
1306 &rootprompt; rcldap stop
1307 &rootprompt; cd /data/ldap
1308 &rootprompt; rm *bdb _* log*
1309 &rootprompt; su - ldap -c "slapadd -l somefile.ldif"
1310 &rootprompt; rcldap start
1311 </screen>
1312         This can be done at any time and for any reason, with no harm to the database.
1313         </para>
1315         <para>
1316         I first added a test user, of course. The LDIF for this test user looks like
1317         this, to give you an idea:
1318 <screen>
1319 # Entry 1: cn=Test User,ou=people,ou=corp,dc=abmas,dc=biz
1320 dn:cn=Test User,ou=people,ou=corp,dc=abmas,dc=biz
1321 cn: Test User
1322 gecos: Test User
1323 gidNumber: 513
1324 givenName: Test
1325 homeDirectory: /home/test.user
1326 homePhone: 555
1327 l: Somewhere
1328 l: ST
1329 mail: test.user
1330 o: Corp
1331 objectClass: top
1332 objectClass: inetOrgPerson
1333 objectClass: posixAccount
1334 objectClass: sambaSamAccount
1335 postalCode: 12345
1336 sn: User
1337 street: 10 Some St.
1338 uid: test.user
1339 uidNumber: 1074
1340 sambaLogonTime: 0
1341 sambaLogoffTime: 2147483647
1342 sambaKickoffTime: 2147483647
1343 sambaPwdCanChange: 0
1344 displayName: Samba User
1345 sambaSID: S-1-5-21-725326080-1709766072-2910717368-3148
1346 sambaLMPassword: 9D29C287C58448F9AAD3B435B51404EE
1347 sambaAcctFlags: [U]
1348 sambaNTPassword: D062088E99C95E37D7702287BB35E770
1349 sambaPwdLastSet: 1102537694
1350 sambaPwdMustChange: 1106425694
1351 userPassword: {SSHA}UzFZ2VxRGdwUueLnTGtsTBtnsvMO1oj8
1352 loginShell: /bin/false
1353 </screen>
1354         </para>
1356         <para>
1357         Then I went over to a spare Windows NT machine and joined it to the MEGANET2 domain.
1358         It worked, and the machine's account entry under ou=Computers looks like this:
1359 <screen>
1360 dn:uid=w2kengrspare$,ou=Computers,ou=MEGANET2,dc=abmas,dc=biz
1361 objectClass: top
1362 objectClass: inetOrgPerson
1363 objectClass: posixAccount
1364 objectClass: sambaSamAccount
1365 cn: w2kengrspare$
1366 sn: w2kengrspare$
1367 uid: w2kengrspare$
1368 uidNumber: 1104
1369 gidNumber: 515
1370 homeDirectory: /dev/null
1371 loginShell: /bin/false
1372 description: Computer
1373 gecos: Computer
1374 sambaSID: S-1-5-21-725326080-1709766072-2910717368-3208
1375 sambaPrimaryGroupSID: S-1-5-21-725326080-1709766072-2910717368-2031
1376 displayName: W2KENGRSPARE$
1377 sambaPwdCanChange: 1103149236
1378 sambaPwdMustChange: 2147483647
1379 sambaNTPassword: CA199C45CB6737035DB6D9D9F6CD1834
1380 sambaPwdLastSet: 1103149236
1381 sambaAcctFlags: [W          ]
1382 </screen>
1383         </para>
1385         <para>
1386         <indexterm><primary>netlogon</primary></indexterm>
1387         So now I could log on with a test user from the machine w2kengrspare. It was all fine and
1388         good, but that user was in no groups yet and so had pretty boring access.  I fixed that
1389         by writing the login script! To write the login script, I used
1390         <ulink url="http://www.kixtart.org">Kixtart</ulink> because it will work
1391         with every architecture of Windows, has an active and helpful user base, and was both
1392         easier to learn and more powerful than the standard netlogon scripts I have seen.
1393         I also did not have to do a logon script per user or per group.
1394         </para>
1396         <para>
1397         <indexterm><primary>Kixtart</primary></indexterm>
1398         I downloaded Kixtart and put the following files in my netlogon share:
1399 <screen>
1400 KIX32.EXE
1401 KX32.dll
1402 KX95.dll  &lt;-- Not needed unless you are running Win9x clients.
1403 kx16.dll  &lt;-- Probably not needed unless you are running DOS clients.
1404 kxrpc.exe &lt;-- Probably useless as it has to run on the server and can
1405           only be run on NT.  It's for Windows 95 to become group-aware.
1406           We can get around the need.
1407 </screen>
1408         </para>
1410         <para>
1411         <indexterm><primary>logon.kix</primary></indexterm>
1412         I then wrote the <filename>logon.kix</filename> file that is shown in
1413         <link linkend="ch8kix"/>. I chose to keep it all in one file, but it
1414         can be split up and linked via include directives.
1415         </para>
1417 <example id="ch8kix">
1418 <title>Kixtart Control File &smbmdash; File: logon.kix</title>
1419 <screen>
1420 ; This script just calls the other scripts.
1422 ; First we want to get things done for everyone.
1424 ; Second, we do first-time login stuff.
1426 ; Third, we go through the group-oriented scripts one at a time.
1429 ; We want to check for group membership here to avoid the overhead of running
1430 ; scripts which don't apply.
1431 call "\\massive\netlogon\scripts\main.kix"
1432 call "\\massive\netlogon\scripts\setup.kix"
1433 IF INGROUP("MEGANET2\ACCT")
1434   call "scripts\acct.kix"
1435 ENDIF
1436 IF INGROUP("MEGANET2\ENGR","MEGANET2\RECEPTIONIST")
1437 call "\\massive\netlogon\scripts\engr.kix"
1438 ENDIF
1439 IF INGROUP("MEGANET2\FURN")
1440   call "\\massive\netlogon\scripts\furn.kix"
1441 ENDIF
1442 IF INGROUP("MEGANET2\TRUSS")
1443   call "\\massive\netlogon\scripts\truss.kix"
1444 ENDIF
1445 </screen>
1446 </example>
1448 <example id="ch8kix2">
1449 <title>Kixtart Control File &smbmdash; File: main.kix</title>
1450 <screen>
1451 break on
1453 ; Choose whether to hide the login window or not
1454 IF INGROUP("MEGANET2\Domain Admins")
1455   USE Z: \\massive\everything
1456   SETCONSOLE("show")
1457 ELSE
1458   ; Nobody cares about seeing the login script except admins
1459   SETCONSOLE("hide")
1460 ENDIF
1462 ; Delete all previously connected shares
1463 USE * /delete
1465 SETTITLE("Logging on @USERID to @LDOMAIN at @TIME")
1467 ; Set the time on the workstation
1468 $Timeserver = "\\massive"
1469 Settime $TimeServer
1471 ; Map the home directory
1472 USE H: @HOMESHR ; connect to user's home share
1473 IF @ERROR = 0
1475   H:
1476   CD @HOMEDIR ; change directory to user's home directory
1477 ENDIF
1479 ; Everyone gets the N drive
1480 USE N: \\massive\network
1481 </screen>
1482 </example>
1484 <example id="ch8kix3">
1485 <title>Kixtart Control File &smbmdash; File: setup.kix, Part A</title>
1486 <screen>
1487 ; My setup.kix is where all of the redirection stuff happens.  Note that with 
1488 ; the use of registry keys, this only happens the first time they log in ,or if 
1489 ; I delete the pertinent registry keys which triggers it to happen again:
1491 ; Check to see if we have written the abmas sub-key before
1492 $RETURNCODE = EXISTKEY("HKEY_CURRENT_USER\abmas")
1493 IF NOT $RETURNCODE = 0
1494 ; Add key for abmas-specific things on the first login
1495   ADDKEY("HKEY_CURRENT_USER\abmas")
1496   ; The following key gets deleted at the end of the first login
1497   ADDKEY("HKEY_CURRENT_USER\abmas\FIRST_LOGIN")
1498 ENDIF
1500 ; People with laptops need My Documents to be in their profile.  People with
1501 ; desktops can have My Documents redirected to their home directory to avoid
1502 ; long delays with logging out and out-of-sync files.
1504 ; Check to see if this is the first login -- doesn't make sense to do this
1505 ; at the very first login
1507 $RETURNCODE = EXISTKEY("HKEY_CURRENT_USER\abmas\FIRST_LOGIN")
1508 IF NOT $RETURNCODE = 0
1510 ; We don't want to do this stuff for people with laptops or people in the FURN
1511 ; group.  (They store their profiles in a different server)
1513   IF NOT INGROUP("MASSIVE\Laptop","MASSIVE\FURN")
1514     $RETURNCODE=EXISTKEY("HKEY_CURRENT_USER\abmas\profile_copied")
1516 ; A  crude way to tell what OS our profile is for and copy the "My Documents"
1517 ; to the redirected folder on the server.  It works because the profiles
1518 ; are stored as \\server\profiles\user\architecture
1519     IF NOT $RETURNCODE = 0
1520       IF EXIST("\\massive\profiles\@userID\WinXP")
1521         copy "\\massive\profiles\@userID\WinXP\My Documents\*" 
1522 "\\massive\@userID\"
1523       ENDIF
1524       IF EXIST("\\massive\profiles\@userID\Win2K")
1525         copy "\\massive\profiles\@userID\Win2K\My Documents\*" 
1526 "\\massive\@userID\"
1527       ENDIF
1528       IF EXIST("\\massive\profiles\@userID\WinNT")
1529         copy "\\massive\profiles\@userID\WinNT\My Documents\*" 
1530 "\\massive\@userID\"
1531       ENDIF
1532 </screen>
1533 </example>
1535 <example id="ch8kix3b">
1536 <title>Kixtart Control File &smbmdash; File: setup.kix, Part B</title>
1537 <screen>
1538 ; Now we will write the registry values to redirect the locations of "My 
1539 Documents"
1540 ; and other folders.
1541       ADDKEY("HKEY_CURRENT_USER\abmas\profile_copied")
1542       WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\
1543 Windows\CurrentVersion\Explorer\User 
1544 Shell Folders", "Personal","\\massive\@userID","REG_SZ")
1545       WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\
1546 Windows\CurrentVersion\Explorer\User 
1547 Shell Folders", "My Pictures", "\\massive\@userID\My Pictures", "REG_SZ")
1548       IF @PRODUCTTYPE="Windows 2000 Professional" or @PRODUCTTYPE="Windows XP
1549 Professional"
1550       WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\
1551 Windows\CurrentVersion\Explorer\User 
1552 Shell Folders", "My Videos", "\\massive\@userID\My Videos", "REG_SZ")
1553       WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\
1554 Windows\CurrentVersion\Explorer\User 
1555 Shell Folders", "My Music", "\\massive\@userID\My Music", "REG_SZ")
1556       WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\
1557 Windows\CurrentVersion\Explorer\User 
1558 Shell Folders", "My eBooks", "\\massive\@userID\My eBooks", "REG_SZ")
1559       ENDIF
1560     ENDIF
1561   ENDIF
1563 ; Now we will delete the FIRST_LOGIN sub-key that we made before.
1564 ; Note - to run this script again you will want to delete the HKCU\abmas
1565 ; sub-key, log out, and log back in.
1566 $RETURNVALUE = EXISTKEY("HKEY_CURRENT_USER\abmas\FIRST_LOGIN")
1567 IF $RETURNVALUE = 0
1568   DELKEY("HKEY_CURRENT_USER\abmas\FIRST_LOGIN")
1569 ENDIF
1570 </screen>
1571 </example>
1573 <example id="ch8kix4">
1574 <title>Kixtart Control File &smbmdash; File: acct.kix</title>
1575 <screen>
1576 ; And here is one group-oriented script to show what can be
1577 ; done that way: acct.kix:
1579 IF INGROUP("MASSIVE\Acct_Admin","MASSIVE\HR")
1580   USE I: \\MEGANET2\HR_PR
1581 ENDIF
1583 ; Set up printer
1584 $RETURNVALUE = existkey("HKEY_CURRENT_USER\Printers\,,massive,acct_hp8500")
1585 IF NOT $RETURNVALUE = 0
1586   ADDPRINTERCONNECTION("\\massive\acct_hp8500")
1587   SETDEFAULTPRINTER("\\massive\acct_hp8500")
1588 ENDIF
1589 ; Set up drive mappings
1590   USE M: \\massive\ACCT
1591   IF INGROUP("MEGANET2\ABRA")
1592     USE T: \\trussrv\abra
1593   ENDIF
1594 </screen>
1595 </example>
1597         <para>
1598         As you can see in the script, I redirected the My Documents to the user's home
1599         share if he or she were not in the Laptop group. I also added printers on a
1600         group-by-group basis, and if applicable I set the group printer. For this to
1601         be effective, the print drivers must be installed on the Samba server in the
1602         <filename>[print$]</filename> share. Ample documentation exists about how to
1603         do that, so it is not covered here.
1604         </para>
1606         <para>
1607         I call this script via the logon.bat script in the [netlogon] directory:
1608 <screen>
1609 \\corpsrv\netlogon\kix32 \\corpsrv\netlogon\logon.kix /f
1610 </screen>
1611         I only had to fully qualify the paths for Windows 9x, as Windows NT and
1612         greater automatically add [NETLOGON] to the path.
1613         </para>
1615         <para>
1616         Also of note for Win9x is that the drive mappings and printer setup will not
1617         work because they rely on RPC. You merely have to put the appropriate settings
1618         into the <filename>c:\autoexec.bat</filename> file or map the drives manually.
1619         One option is to check the OS as part of the Kixtart script, and if it
1620         is Win9x and is the first login, copy a premade
1621         <filename>autoexec.bat</filename> to the <filename>C:</filename> drive. I
1622         have onlythree such machines, and one is going away in the very near future,
1623         so it was easier to do it by hand.
1624         </para>
1626         <para>
1627         <indexterm><primary>upgrade</primary></indexterm>
1628         At this point I was able to add the users. This is the part that really falls
1629         into upgrade. I moved the users over one group at a time, starting with the
1630         people who used the least amount of resources on the network. With each group
1631         that I moved, I first logged on as a standard user in that group and took
1632         careful note of the environment, mainly the printers he or she used, the PATH,
1633         and what network resources he or she had access to (most importantly, which ones
1634         the user actually needed access to).
1635         </para>
1637         <para>
1638         I then added the user's SambaSamAccount information as mentioned earlier,
1639         and join the computer to the domain. The very first thing I had to do was to
1640         copy the user's profile to the new server. This was very important, and I really
1641         struggled with the most effective way to do it.  Here is the method that worked
1642         for every one of my users on Windows NT, 2000, and XP:
1643         </para>
1645         <procedure>
1646                 <step><para>
1647                         Log in as the user on the domain. This creates the local copy
1648                         of the user's profile and copies it to the server as he or she logs out.
1649                 </para></step>
1651                 <step><para>
1652                         Reboot the computer and log in as the local machine administrator.
1653                 </para></step>
1655                 <step><para>
1656                         Right-click My Computer, click Properties, and navigate to the
1657                         user profiles tab (varies per version of Windows).
1658                 </para></step>
1660                 <step><para>
1661                         Select the user's local profile <constant>(COMPUTERNAME\username)</constant>,
1662                         and click the <command>Copy To</command> button.
1663                 </para></step>
1665                 <step><para>
1666                         In the next dialog, copy it directly to the profiles share on the
1667                         Samba server (\\PDCname\profiles\user\&lt;architecture&gt; in my
1668                         case). You will have had to make a connection to the share as that
1669                         user (e.g., Windows Explorer type \\PDCname\profiles\username).
1670                 </para></step>
1672                 <step><para>
1673                         When the copy is complete (it can take a while) log out, and log back in
1674                         as the user. All of his or her settings and all contents of My Documents,
1675                         Favorites, and the registry should have been copied successfully.
1676                 </para></step>
1678                 <step><para>
1679                         If it doesn't look right (the dead giveaway is the desktop background),
1680                         shut down the computer without logging out (power cycle) and try logging
1681                         in as the user again. If it still doesn't work, repeat the steps above.
1682                         I only had to ever repeat it once.
1683                 </para></step>
1685         </procedure>
1687         <para>
1688         Words to the Wise:
1689         </para>
1691         <itemizedlist>
1692                 <listitem><para>
1693                         If the user was anything other than a standard user on his or her system
1694                         before, you will save yourself some headaches by giving him or her identical
1695                         permissions (on the local machine) as his or her domain account <emphasis>before</emphasis>
1696                         copying the profile over. Do this through the User Administrator
1697                         in the Control Panel, after joining the computer to the domain and
1698                         before logging on as that user for the first time. Otherwise the user will
1699                         have trouble with permissions on his or her registry keys.
1700                 </para></listitem>
1702                 <listitem><para>
1703                         If any application was installed for the user only, rather than for
1704                         the entire system, it will probably not work without being reinstalled.
1705                 </para></listitem>
1706         </itemizedlist>
1708         <para>
1709         After all these steps are accomplished, only cleanup details are left. Make sure user's
1710         shortcuts and Network Places point to the appropriate place on the new server, check
1711         the important applications to be sure they work as expected and troubleshoot any problems
1712         that might arise, and check to be sure the user's printers are present and working. By the
1713         way, if there are any network printers installed as system printers (the Novell way),
1714         you will need to log in as a local administrator and delete them.
1715         </para>
1717         <para>
1718         For my non-laptop systems, I would then log in and out a couple times as the user
1719         to be sure that his or her registry settings were modified, and then I was finished.
1720         </para>
1722         <para>
1723         Some compatibility issues that cropped up included the following:
1724         </para>
1726         <para>
1727         Blackberry client: It did not like having its registry settings moved around
1728         and so had to be reinstalled. Also, it needed write permissions to a portion of
1729         the hard drive, and I had to give it those manually on the one system where
1730         this was an issue.
1731         </para>
1733         <para>
1734         CAMedia: Digital camera software for Canon cameras caused all kinds of trouble
1735         with the registry. I had to use the Run as service to open the registry of
1736         the local user while logged in as the domain user, and give the domain user
1737         the appropriate permissions to some registry keys, then export that portion
1738         of the registry to a file. Then, as the domain user, I had to import that file
1739         into the registry.
1740         </para>
1742         <para>
1743         Crystal Reports version 7: More registry problems that were solved by recopying
1744         the user's profile.
1745         </para>
1747         <para>
1748         Printing from legacy applications: I found out that Novell sends its jobs to
1749         the printer in a raw format. CUPS sends them in PostScript by default. I had
1750         to make a second printer definition for one printer and tell CUPS specifically
1751         to send raw data to the printer, then assign this printer to the LPT port with
1752         Kixtart's version of the net use command.
1753         </para>
1755         <para>
1756         These were all eventually solved by elbow grease, queries to the Samba mailing
1757         list and others, and diligence. The complete migration took about 5 weeks.
1758         My userbase is relatively small but includes multiple versions of Windows,
1759         multiple Linux member servers, a mechanized saw, a pen plotter, and legacy
1760         applications written in Qbasic and R:Base, just to name a few. I actually
1761         ended up making some of these applications work better (or work again, as
1762         some of them had stopped functioning on the old server) because as part of
1763         the process I had to find out how things were supposed to work.
1764         </para>
1766         <para>
1767         The one thing I have not been able to get working is a very old database that
1768         we had around for reference purposes; it uses Novell's Btrieve engine.
1769         </para>
1771         <para>
1772         As the resources compare, I went from 95 percent disk usage to just around 10 percent.
1773         I went from a very high load on the server to an average load of between one
1774         and two runnable processes on the server. I have improved the security and
1775         robustness of the system. I have also implemented
1776         <ulink url="http://www.clamav.net">ClamAV</ulink> antivirus software,
1777         which scans the entire Samba server for viruses every 2 hours and
1778         quarantines them. I have found it much less problematic than our ancient
1779         version of Norton Antivirus Corporate Edition, and much more up-to-date.
1780         </para>
1782         <para>
1783         In short, my users are much happier now that the new server is running, and that
1784         is what is important to me.
1785         </para>
1787         </sect3>
1789         </sect2>
1791 </sect1>
1793 </chapter>