Another set of updates; includes the new examples code and use of
authorJelmer Vernooij <jelmer@samba.org>
Mon, 13 Jun 2005 00:48:46 +0000 (00:48 +0000)
committerGerald W. Carter <jerry@samba.org>
Wed, 23 Apr 2008 14:00:27 +0000 (09:00 -0500)
10.5pt fonts. Still needs some polishing..

37 files changed:
docs/Makefile
docs/Makefile.settings.in
docs/Samba3-ByExample/SBE-2000UserNetwork.xml
docs/Samba3-ByExample/SBE-500UserNetwork.xml
docs/Samba3-ByExample/SBE-AddingUNIXClients.xml
docs/Samba3-ByExample/SBE-DomainAppsSupport.xml
docs/Samba3-ByExample/SBE-MakingHappyUsers.xml
docs/Samba3-ByExample/SBE-MigrateNT4Samba3.xml
docs/Samba3-ByExample/SBE-MigrateNW4Samba3.xml
docs/Samba3-ByExample/SBE-SecureOfficeServer.xml
docs/Samba3-ByExample/SBE-SimpleOfficeServer.xml
docs/Samba3-ByExample/SBE-TheSmallOffice.xml
docs/Samba3-HOWTO/TOSHARG-BDC.xml
docs/Samba3-HOWTO/TOSHARG-CUPS-printing.xml
docs/Samba3-HOWTO/TOSHARG-Diagnosis.xml
docs/Samba3-HOWTO/TOSHARG-FastStart.xml
docs/Samba3-HOWTO/TOSHARG-Group-Mapping.xml
docs/Samba3-HOWTO/TOSHARG-Install.xml
docs/Samba3-HOWTO/TOSHARG-NetworkBrowsing.xml
docs/Samba3-HOWTO/TOSHARG-Other-Clients.xml
docs/Samba3-HOWTO/TOSHARG-PDC.xml
docs/Samba3-HOWTO/TOSHARG-Passdb.xml
docs/Samba3-HOWTO/TOSHARG-Printing.xml
docs/Samba3-HOWTO/TOSHARG-StandAloneServer.xml
docs/Samba3-HOWTO/TOSHARG-Unicode.xml
docs/Samba3-HOWTO/TOSHARG-VFS.xml
docs/Samba3-HOWTO/TOSHARG-Winbind.xml
docs/Samba3-HOWTO/TOSHARG-WindowsClientConfig.xml
docs/Samba3-HOWTO/TOSHARG-locking.xml
docs/Samba3-HOWTO/TOSHARG-msdfs.xml
docs/configure.in
docs/manpages-3/smb.conf.5.xml
docs/settings.xsl.in
docs/xslt/expand-sambadoc.xsl
docs/xslt/latex.xsl
docs/xslt/latex/sambadoc.cls
docs/xslt/sambadoc2pearson.xsl

index ee719ed0c361ed89755274c2ec5649036b128d02..f7f6ed5ff39431c0ca9f8d679fcf226ec35fd279 100644 (file)
@@ -9,6 +9,7 @@ include Makefile.settings
 # Docs to build
 MAIN_DOCS = $(patsubst %/index.xml,%,$(wildcard */index.xml))
 MANPAGES3 = $(wildcard $(MANPAGEDIR3)/*.?.xml)
+export TEXINPUTS=xslt/latex:.:
 
 # Lists of files to process
 LATEX_FIGURES = xslt/figures/caution.pdf xslt/figures/important.pdf xslt/figures/note.pdf xslt/figures/tip.pdf xslt/figures/warning.pdf
@@ -74,11 +75,11 @@ validate: $(addsuffix -validate,$(MAIN_DOCS))
 #
 $(DOCBOOKDIR)/%.xml: %/index.xml xslt/expand-sambadoc.xsl
        mkdir -p $(@D)
-       $(XSLTPROC) --stringparam latex.imagebasedir "$*/" --stringparam noreference 1 --xinclude --output $@ xslt/expand-sambadoc.xsl $<
+       $(XSLTPROC) --stringparam noreference 1 --xinclude --output $@ xslt/expand-sambadoc.xsl $<
 
 $(DOCBOOKDIR)/manpages-3/%.xml: $(MANPAGEDIR3)/%.xml xslt/expand-sambadoc.xsl
        mkdir -p $(@D)
-       $(XSLTPROC) --xinclude --stringparam latex.imagebasedir "$*/" --stringparam noreference 1 --output $@ xslt/expand-sambadoc.xsl $<
+       $(XSLTPROC) --xinclude --stringparam noreference 1 --output $@ xslt/expand-sambadoc.xsl $<
 
 $(DOCBOOKDIR)/manpages-3/index.xml: $(MANPAGES3) xslt/manpage-summary.xsl
        mkdir -p $(@D)
@@ -116,9 +117,9 @@ $(TXTDIR)/%.txt: $(HTMLDIR)/%.html
        $(HTML2TEXT) -nobs -style pretty -o $@ $<
 
 # Tex files
-%.tex: $(DOCBOOKDIR)/%.xml xslt/latex.xsl
+%.tex: %/index.xml xslt/latex.xsl
        mkdir -p $(@D)
-       $(XSLTPROC) --output $@ xslt/latex.xsl $<
+       $(XSLTPROC) --stringparam latex.imagebasedir "$*/" --xinclude --output $@ xslt/latex.xsl $<
 
 latexfigures: $(LATEX_FIGURES)
 
index c2b9d8aec6380a86218a10e2d365d3509fe1855f..ee67fd1133996a70e5a42eebea3dd8c2f744e08e 100644 (file)
@@ -13,8 +13,8 @@ MAKEINFO = @MAKEINFO@
 PLUCKERBUILD = @PLUCKERBUILD@
 COPY_IMAGES = ./scripts/copy-images.sh
 THUMBPDF = @THUMBPDF@
-PDFLATEX = TEXINPUTS=xslt/latex:.: @PDFLATEX@ --file-line-error-style
-LATEX = TEXINPUTS=xslt/latex:.: @LATEX@ --file-line-error-style
+PDFLATEX = @PDFLATEX@ --file-line-error-style
+LATEX = @LATEX@ --file-line-error-style
 FOP = @FOP@
 RM = @RM@
 PERL = @PERL@
index f55fc34f280b3b5a23148bdd3c1c2cfbb7c5ee4a..feab045ddd49c83e533211215a4061ff9701415f 100644 (file)
@@ -1049,8 +1049,9 @@ index default               sub
 </screen>
 </example>
 
-<smbconfexample id="ch7-massmbconfA">
+<example id="ch7-massmbconfA">
 <title>Primary Domain Controller &smb.conf; File &smbmdash; Part A</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="unix charset">LOCALE</smbconfoption>
@@ -1096,10 +1097,12 @@ index default               sub
 <smbconfoption name="idmap gid">10000-20000</smbconfoption>
 <smbconfoption name="printer admin">root</smbconfoption>
 <smbconfoption name="printing">cups</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="ch7-massmbconfB">
+<example id="ch7-massmbconfB">
 <title>Primary Domain Controller &smb.conf; File &smbmdash; Part B</title>
+<smbconfblock>
 <smbconfsection name="[IPC$]"/>
 <smbconfoption name="path">/tmp</smbconfoption>
 
@@ -1130,10 +1133,12 @@ index default               sub
 <smbconfoption name="guest ok">Yes</smbconfoption>
 <smbconfoption name="printable">Yes</smbconfoption>
 <smbconfoption name="browseable">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="ch7-massmbconfC">
+<example id="ch7-massmbconfC">
 <title>Primary Domain Controller &smb.conf; File &smbmdash; Part C</title>
+<smbconfblock>
 <smbconfsection name="[apps]"/>
 <smbconfoption name="comment">Application Files</smbconfoption>
 <smbconfoption name="path">/apps</smbconfoption>
@@ -1164,10 +1169,12 @@ index default               sub
 <smbconfoption name="path">/var/lib/samba/drivers</smbconfoption>
 <smbconfoption name="write list">root</smbconfoption>
 <smbconfoption name="admin users">root, Administrator</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="ch7-slvsmbocnfA">
+<example id="ch7-slvsmbocnfA">
 <title>Backup Domain Controller &smb.conf; File &smbmdash; Part A</title>
+<smbconfblock>
 <smbconfcomment># Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="unix charset">LOCALE</smbconfoption>
@@ -1211,10 +1218,12 @@ index default               sub
 <smbconfoption name="comment">Financial Services Files</smbconfoption>
 <smbconfoption name="path">/data/service</smbconfoption>
 <smbconfoption name="read only">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="ch7-slvsmbocnfB">
+<example id="ch7-slvsmbocnfB">
 <title>Backup Domain Controller &smb.conf; File &smbmdash; Part B</title>
+<smbconfblock>
 <smbconfsection name="[pidata]"/>
 <smbconfoption name="comment">Property Insurance Files</smbconfoption>
 <smbconfoption name="path">/data/pidata</smbconfoption>
@@ -1256,7 +1265,8 @@ index default               sub
 <smbconfoption name="path">/var/lib/samba/profdata</smbconfoption>
 <smbconfoption name="read only">No</smbconfoption>
 <smbconfoption name="profile acls">Yes</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
        <sect2>
                <title>Key Points Learned</title>
index 1f4e9f709318c99fd3bbcd1f8499148060460c51..b94c8d69e4153da598eb0367055b63454b64fac2 100644 (file)
@@ -948,8 +948,9 @@ hosts:      files dns wins
        </sect2>
 
 <!-- One -->
-<smbconfexample id="ch5-massivesmb">
+<example id="ch5-massivesmb">
 <title>Server: MASSIVE (PDC), File: <filename>/etc/samba/smb.conf</filename></title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MEGANET</smbconfoption>
@@ -987,11 +988,13 @@ hosts:      files dns wins
 <smbconfoption name="comment">Property Insurance Files</smbconfoption>
 <smbconfoption name="path">/data/pidata</smbconfoption>
 <smbconfoption name="read only">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 <!-- Two -->
-<smbconfexample id="ch5-dc-common">
+<example id="ch5-dc-common">
 <title>Server: MASSIVE (PDC), File: <filename>/etc/samba/dc-common.conf</filename></title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="shutdown script">/var/lib/samba/scripts/shutdown.sh</smbconfoption>
@@ -1021,11 +1024,13 @@ hosts:      files dns wins
 <smbconfoption name="path">/var/lib/samba/profiles</smbconfoption>
 <smbconfoption name="read only">No</smbconfoption>
 <smbconfoption name="profile acls">Yes</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 <!-- Three -->
-<smbconfexample id="ch5-commonsmb">
+<example id="ch5-commonsmb">
 <title>Common Samba Configuration File: <filename>/etc/samba/common.conf</filename></title>
+<smbconfblock
 <smbconfsection name="[global]"/>
 <smbconfoption name="username map">/etc/samba/smbusers</smbconfoption>
 <smbconfoption name="log level">1</smbconfoption>
@@ -1061,31 +1066,37 @@ hosts:      files dns wins
 <smbconfoption name="path">/apps</smbconfoption>
 <smbconfoption name="admin users">bjordan</smbconfoption>
 <smbconfoption name="read only">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 <!-- Four -->
-<smbconfexample id="ch5-bldg1-smb">
+<example id="ch5-bldg1-smb">
 <title>Server: BLDG1 (Member), File: smb.conf</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MEGANET</smbconfoption>
 <smbconfoption name="netbios name">BLDG1</smbconfoption>
 <smbconfoption name="include">/etc/samba/dom-mem.conf</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 <!-- Five -->
-<smbconfexample id="ch5-bldg2-smb">
+<example id="ch5-bldg2-smb">
 <title>Server: BLDG2 (Member), File: smb.conf</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MEGANET</smbconfoption>
 <smbconfoption name="netbios name">BLDG2</smbconfoption>
 <smbconfoption name="include">/etc/samba/dom-mem.conf</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 <!-- Six -->
-<smbconfexample id="ch5-dommem-smb">
+<example id="ch5-dommem-smb">
 <title>Common Domain Member Include File: dom-mem.conf</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="shutdown script">/var/lib/samba/scripts/shutdown.sh</smbconfoption>
@@ -1095,7 +1106,8 @@ hosts:      files dns wins
 <smbconfoption name="idmap uid">15000-20000</smbconfoption>
 <smbconfoption name="idmap gid">15000-20000</smbconfoption>
 <smbconfoption name="include">/etc/samba/common.conf</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 <!-- Seven -->
 <example id="massive-dhcp">
index 57487916b26b82591f174a6ffd736a9cb1721005..78c76c91eb7bb03f37e7b21e3eee327c0e3b2318 100644 (file)
@@ -680,8 +680,9 @@ Join to 'MEGANET2' failed.
 
        </procedure>
 
-<smbconfexample id="ch9-sdmsdc">
+<example id="ch9-sdmsdc">
 <title>Samba Domain Member in Samba Domain Using LDAP &smbmdash; &smb.conf; File</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="unix charset">LOCALE</smbconfoption>
@@ -727,7 +728,8 @@ Join to 'MEGANET2' failed.
 <smbconfoption name="path">/var/lib/samba/drivers</smbconfoption>
 <smbconfoption name="admin users">root, Administrator</smbconfoption>
 <smbconfoption name="write list">root</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 <example id="ch9-ldifadd">
 <title>LDIF IDMAP Add-On Load File &smbmdash; File: /etc/openldap/idmap.LDIF</title>
@@ -979,8 +981,9 @@ MEGANET2+PIOps:x:10005:
                </para></step>
        </procedure>
 
-<smbconfexample id="ch0-NT4DSDM">
+<example id="ch0-NT4DSDM">
 <title>Samba Domain Member Server Using Winbind &smb.conf; File for NT4 Domain</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="unix charset">LOCALE</smbconfoption>
@@ -1022,7 +1025,8 @@ MEGANET2+PIOps:x:10005:
 <smbconfoption name="path">/var/lib/samba/drivers</smbconfoption>
 <smbconfoption name="admin users">root, Administrator</smbconfoption>
 <smbconfoption name="write list">root</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
        </sect2>
 
@@ -1071,8 +1075,9 @@ Joined domain MEGANET2.
                </para></step>
        </procedure>
 
-<smbconfexample id="ch0-NT4DSCM">
+<example id="ch0-NT4DSCM">
 <title>Samba Domain Member Server Using Local Accounts &smb.conf; File for NT4 Domain</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="unix charset">LOCALE</smbconfoption>
@@ -1114,7 +1119,8 @@ Joined domain MEGANET2.
 <smbconfoption name="path">/var/lib/samba/drivers</smbconfoption>
 <smbconfoption name="admin users">root, Administrator</smbconfoption>
 <smbconfoption name="write list">root</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
        </sect2>
 
        <sect2 id="adssdm">
@@ -1672,8 +1678,9 @@ data = "\00\00\00\00bp\00\00\06krbtgt\06krbtgt-
        May this server serve well all who happen upon it.
        </para>
 
-<smbconfexample id="ch9-adssdm">
+<example id="ch9-adssdm">
 <title>Samba Domain Member &smb.conf; File for Active Directory Membership</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="unix charset">LOCALE</smbconfoption>
@@ -1713,7 +1720,8 @@ data = "\00\00\00\00bp\00\00\06krbtgt\06krbtgt-
 <smbconfoption name="path">/var/lib/samba/drivers</smbconfoption>
 <smbconfoption name="admin users">root, Administrator</smbconfoption>
 <smbconfoption name="write list">root</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
         <sect3>
         <title>IDMAP_RID with Winbind</title>
@@ -1755,8 +1763,9 @@ data = "\00\00\00\00bp\00\00\06krbtgt\06krbtgt-
         An example &smb.conf; file for an ADS domain environment is shown in <link linkend="sbe-idmapridex"/>.
         </para>
 
-<smbconfexample id="sbe-idmapridex">
+<example id="sbe-idmapridex">
 <title>Example &smb.conf; File Using <constant>idmap_rid</constant></title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">KPAK</smbconfoption>
@@ -1774,7 +1783,8 @@ data = "\00\00\00\00bp\00\00\06krbtgt\06krbtgt-
 <smbconfoption name="winbind enum groups">No</smbconfoption>
 <smbconfoption name="winbind nested groups">Yes</smbconfoption>
 <smbconfoption name="printer admin">"KPAK\Domain Admins"</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
         <para>
         <indexterm><primary>large domain</primary></indexterm>
@@ -1876,8 +1886,9 @@ administrator:x:1000:1013:Administrator:/home/BE/administrator:/bin/bash
         The example in <link linkend="sbeunxa"/> is for an ADS-style domain.
         </para>
 
-<smbconfexample id="sbeunxa">
+<example id="sbeunxa">
 <title>Typical ADS Style Domain &smb.conf; File</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">SNOWSHOW</smbconfoption>
@@ -1894,7 +1905,8 @@ administrator:x:1000:1013:Administrator:/home/BE/administrator:/bin/bash
 <smbconfoption name="idmap gid">150000-550000</smbconfoption>
 <smbconfoption name="template shell">/bin/bash</smbconfoption>
 <smbconfoption name="winbind use default domain">Yes</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
         <para>
         <indexterm><primary>realm</primary></indexterm>
@@ -2078,8 +2090,9 @@ Joined 'GOODELF' to realm 'SNOWSHOW.COM'
         An example &smb.conf; file is shown in <link linkend="sbewinbindex"/>.
         </para>
 
-<smbconfexample id="sbewinbindex">
+<example id="sbewinbindex">
 <title>ADS Membership Using RFC2307bis Identity Resolution &smb.conf; File</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">BUBBAH</smbconfoption>
@@ -2093,7 +2106,8 @@ Joined 'GOODELF' to realm 'SNOWSHOW.COM'
 <smbconfoption name="winbind use default domain">Yes</smbconfoption>
 <smbconfoption name="winbind trusted domains only">Yes</smbconfoption>
 <smbconfoption name="winbind nested groups">Yes</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
         <para>
         <indexterm><primary>nss_ldap</primary></indexterm>
index 49dafda9fa64add26e000a05205c2b16f9ccc2ee..4ca9a097a8b3634952f85f35dfdbf79790dcc09c 100644 (file)
@@ -581,8 +581,9 @@ password: XXXXXXXX
        in <link linkend="ch10-etcnsscfg"/>.
        </para>
 
-<smbconfexample id="ch10-smbconf">
+<example id="ch10-smbconf">
 <title>Samba Configuration &smbmdash; File: <filename>/etc/samba/smb.conf</filename></title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">LONDON</smbconfoption>
 <smbconfoption name="netbios name">W2K3S</smbconfoption>
@@ -603,7 +604,8 @@ password: XXXXXXXX
 <smbconfoption name="winbind enum users">yes</smbconfoption>
 <smbconfoption name="winbind enum groups">yes</smbconfoption>
 <smbconfoption name="winbind user default domain">yes</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 <example id="ch10-etcnsscfg">
 <title>NSS Configuration File Extract &smbmdash; File: <filename>/etc/nsswitch.conf</filename></title>
index 024cfd6643bc8044fbd3c735e39f17be263d0ba1..a20a8f1633cecd5e19d1ac10a1181bfca3f31a4d 100644 (file)
@@ -1852,8 +1852,9 @@ SID for domain MASSIVE is: S-1-5-21-3504140859-1010554828-2431957765
        configuration of the LDAP server.
        </para>
 
-<smbconfexample id="sbehap-massive-smbconfa">
+<example id="sbehap-massive-smbconfa">
 <title>LDAP Based &smb.conf; File, Server: MASSIVE &smbmdash; global Section: Part A</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
        <smbconfoption name="unix charset">LOCALE</smbconfoption>
@@ -1884,10 +1885,12 @@ SID for domain MASSIVE is: S-1-5-21-3504140859-1010554828-2431957765
        <smbconfoption name="set primary group script">/opt/IDEALX/sbin/</smbconfoption>
 <member><parameter>smbldap-usermod -g "%g" "%u"</parameter></member>
        <smbconfoption name="add machine script">/opt/IDEALX/sbin/smbldap-useradd -w "%u"</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="sbehap-massive-smbconfb">
+<example id="sbehap-massive-smbconfb">
 <title>LDAP Based &smb.conf; File, Server: MASSIVE &smbmdash; global Section: Part B</title>
+<smbconfblock>
        <smbconfoption name="logon script">scripts\logon.bat</smbconfoption>
        <smbconfoption name="logon path">\\%L\profiles\%U</smbconfoption>
        <smbconfoption name="logon drive">X:</smbconfoption>
@@ -1906,7 +1909,8 @@ SID for domain MASSIVE is: S-1-5-21-3504140859-1010554828-2431957765
        <smbconfoption name="map acl inherit">Yes</smbconfoption>
        <smbconfoption name="printing">cups</smbconfoption>
        <smbconfoption name="printer admin">root, chrisr</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
        </sect2>
 
@@ -3185,8 +3189,9 @@ smb: \> q
 
        </procedure>
 
-<smbconfexample id="sbehap-bldg1-smbconf">
+<example id="sbehap-bldg1-smbconf">
 <title>LDAP Based &smb.conf; File, Server: BLDG1</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
        <smbconfoption name="unix charset">LOCALE</smbconfoption>
@@ -3220,11 +3225,13 @@ smb: \> q
        <smbconfoption name="idmap gid">10000-20000</smbconfoption>
        <smbconfoption name="printing">cups</smbconfoption>
        <smbconfoption name="printer admin">root, chrisr</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 
-<smbconfexample id="sbehap-bldg2-smbconf">
+<example id="sbehap-bldg2-smbconf">
 <title>LDAP Based &smb.conf; File, Server: BLDG2</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
        <smbconfoption name="unix charset">LOCALE</smbconfoption>
@@ -3258,11 +3265,13 @@ smb: \> q
        <smbconfoption name="idmap gid">10000-20000</smbconfoption>
        <smbconfoption name="printing">cups</smbconfoption>
        <smbconfoption name="printer admin">root, chrisr</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 
-<smbconfexample id="sbehap-shareconfa">
+<example id="sbehap-shareconfa">
 <title>LDAP Based &smb.conf; File, Shares Section &smbmdash; Part A</title>
+<smbconfblock>
 <smbconfsection name="[accounts]"/>
        <smbconfoption name="comment">Accounting Files</smbconfoption>
        <smbconfoption name="path">/data/accounts</smbconfoption>
@@ -3290,10 +3299,12 @@ smb: \> q
        <smbconfoption name="guest ok">Yes</smbconfoption>
        <smbconfoption name="printable">Yes</smbconfoption>
        <smbconfoption name="browseable">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="sbehap-shareconfb">
+<example id="sbehap-shareconfb">
 <title>LDAP Based &smb.conf; File, Shares Section &smbmdash; Part B</title>
+<smbconfblock>
 <smbconfsection name="[apps]"/>
        <smbconfoption name="comment">Application Files</smbconfoption>
        <smbconfoption name="path">/apps</smbconfoption>
@@ -3325,7 +3336,8 @@ smb: \> q
        <smbconfoption name="guest ok">no</smbconfoption>
        <smbconfoption name="read only">yes</smbconfoption>
        <smbconfoption name="write list">root, chrisr</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 <example id="sbehap-ldifadd">
 <title>LDIF IDMAP Add-On Load File &smbmdash; File: /etc/openldap/idmap.LDIF</title>
index 476d55a0ec0af64180419110a0beb4aa999725c0..57328217b2d2a01a456234e004e43aa6cfafc195 100644 (file)
                no account information can be deleted.
                </para></step>
 
-<smbconfexample id="sbent4smb">
+<example id="sbent4smb">
 <title>NT4 Migration Samba-3 Server <filename>smb.conf</filename> &smbmdash; Part: A</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
         <smbconfoption name="workgroup">DAMNATION</smbconfoption>
         <smbconfoption name="netbios name">MERLIN</smbconfoption>
         <smbconfoption name="winbind nested groups">Yes</smbconfoption>
         <smbconfoption name="ea support">Yes</smbconfoption>
         <smbconfoption name="map acl inherit">Yes</smbconfoption>
-</smbconfexample>
+       </smbconfblock>
+</example>
 
-<smbconfexample id="sbent4smb2">
+<example id="sbent4smb2">
 <title>NT4 Migration Samba-3 Server <filename>smb.conf</filename> &smbmdash; Part: B</title>
+<smbconfblock>
 <smbconfsection name="[apps]"/>
         <smbconfoption name="comment">Application Data</smbconfoption>
         <smbconfoption name="path">/data/home/apps</smbconfoption>
 <smbconfsection name="[print$]"/>
         <smbconfoption name="comment">Printer Drivers</smbconfoption>
         <smbconfoption name="path">/var/lib/samba/drivers</smbconfoption>
-</smbconfexample>
+       </smbconfblock>
+</example>
 
                <step><para>
                <indexterm><primary>slapd.conf</primary></indexterm>
index 43dee10a322110631e15b0d5fd2751554deba084..f823cc67bb07b1dc363b69ea7a641d91301148a0 100644 (file)
@@ -669,8 +669,9 @@ session: none
        The Samba &smb.conf; file was configured as shown in <link linkend="ch8smbconf"/>.
        </para>
 
-<smbconfexample id="ch8smbconf">
+<example id="ch8smbconf">
 <title>Samba Configuration File &smbmdash; smb.conf Part A</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MEGANET2</smbconfoption>
@@ -712,10 +713,12 @@ session: none
 <smbconfoption name="admin users">root, "@Domain Admins"</smbconfoption>
 <smbconfoption name="printer admin">"@Domain Admins"</smbconfoption>
 <smbconfoption name="force printername">Yes</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="ch8smbconf2">
+<example id="ch8smbconf2">
 <title>Samba Configuration File &smbmdash; smb.conf Part B</title>
+<smbconfblock>
 <smbconfsection name="[netlogon]"/>
 <smbconfoption name="comment">Network logon service</smbconfoption>
 <smbconfoption name="path">/data/samba/netlogon</smbconfoption>
@@ -754,10 +757,12 @@ session: none
 <smbconfoption name="comment">Location of documents printed to PDFCreator printer</smbconfoption>
 <smbconfoption name="path">/data/samba/shares/pdf</smbconfoption>
 <smbconfoption name="guest ok">Yes</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="ch8smbconf3">
+<example id="ch8smbconf3">
 <title>Samba Configuration File &smbmdash; smb.conf Part C</title>
+<smbconfblock>
 <smbconfsection name="[EVERYTHING]"/>
 <smbconfoption name="comment">All shares</smbconfoption>
 <smbconfoption name="path">/data/samba</smbconfoption>
@@ -798,10 +803,12 @@ session: none
 <smbconfoption name="printable">Yes</smbconfoption>
 <smbconfoption name="use client driver">Yes</smbconfoption>
 <smbconfoption name="copy">printers</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="ch8smbconf4">
+<example id="ch8smbconf4">
 <title>Samba Configuration File &smbmdash; smb.conf Part D</title>
+<smbconfblock>
 <smbconfsection name="[APPS]"/>
 <smbconfoption name="path">/data/samba/shares/Apps</smbconfoption>
 <smbconfoption name="force group">"Domain Users"</smbconfoption>
@@ -839,10 +846,12 @@ session: none
 <smbconfoption name="read only">No</smbconfoption>
 <smbconfoption name="create mask">0770</smbconfoption>
 <smbconfoption name="copy">engr</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="ch8smbconf5">
+<example id="ch8smbconf5">
 <title>Samba Configuration File &smbmdash; smb.conf Part E</title>
+<smbconfblock>
 <smbconfsection name="[X]"/>
 <smbconfoption name="path">/data/samba/shares/X</smbconfoption>
 <smbconfoption name="valid users">@engr, @acct</smbconfoption>
@@ -867,7 +876,8 @@ session: none
 <smbconfoption name="valid users">chad</smbconfoption>
 <smbconfoption name="read only">No</smbconfoption>
 <smbconfoption name="browseable">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
        <para>
        <indexterm><primary>Qbasic</primary></indexterm>
index 6e8a5c85a1485ea53550083a2401188ca7d105ba..00d767033608683c8ef3085aec5f5571bc563a86 100644 (file)
@@ -804,8 +804,9 @@ echo -e "\nNAT firewall done.\n"
                and <link linkend="promisnetsvcb"/>. Concatenate (join) all three files to make a single &smb.conf;
                file. The final, fully qualified path for this file should be <filename>/etc/samba/smb.conf</filename>.
 
-<smbconfexample id="promisnet">
+<example id="promisnet">
 <title>130 User Network with <emphasis>tdbsam</emphasis> &smbmdash; [globals] Section</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">PROMISES</smbconfoption>
@@ -849,10 +850,12 @@ echo -e "\nNAT firewall done.\n"
 <smbconfoption name="cups options">Raw</smbconfoption>
 <smbconfoption name="veto files">/*.eml/*.nws/*.{*}/</smbconfoption>
 <smbconfoption name="veto oplock files">/*.doc/*.xls/*.mdb/</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="promisnetsvca">
+<example id="promisnetsvca">
 <title>130 User Network with <emphasis>tdbsam</emphasis> &smbmdash; Services Section Part A</title>
+<smbconfblock>
 <smbconfsection name="[homes]"/>
 <smbconfoption name="comment">Home Directories</smbconfoption>
 <smbconfoption name="valid users">%S</smbconfoption>
@@ -884,10 +887,12 @@ echo -e "\nNAT firewall done.\n"
 <smbconfoption name="comment">Accounting Files</smbconfoption>
 <smbconfoption name="path">/data/accounts</smbconfoption>
 <smbconfoption name="read only">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="promisnetsvcb">
+<example id="promisnetsvcb">
 <title>130 User Network with <emphasis>tdbsam</emphasis> &smbmdash; Services Section Part B</title>
+<smbconfblock>
 <smbconfsection name="[service]"/>
 <smbconfoption name="comment">Financial Services Files</smbconfoption>
 <smbconfoption name="path">/data/service</smbconfoption>
@@ -903,7 +908,8 @@ echo -e "\nNAT firewall done.\n"
 <smbconfoption name="path">/apps</smbconfoption>
 <smbconfoption name="read only">Yes</smbconfoption>
 <smbconfoption name="admin users">bjordan</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
                </para></step>
 
                <step><para>
index 1213caf2d1c92c560db5cd0b915af7daafaa4636..1c41ec98111fb290928d4d1cf0701ff1c675c47f 100644 (file)
                        Install the &smb.conf; file shown in <link linkend="draft-smbconf"/> in the
                        <filename>/etc/samba</filename> directory.
 
-<smbconfexample id="draft-smbconf">
+<example id="draft-smbconf">
 <title>Drafting Office &smb.conf; File</title>
+<smbconfblock>
 <smbconfcomment>Global Parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
 <smbconfoption name="path">/plans</smbconfoption>
 <smbconfoption name="read only">Yes</smbconfoption>
 <smbconfoption name="guest ok">Yes</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
                        </para></step>
 
                        <step><para>
@@ -642,8 +644,9 @@ application/octet-stream
 
                        </procedure>
 
-<smbconfexample id="charity-smbconfnew">
+<example id="charity-smbconfnew">
 <title>Charity Administration Office &smb.conf; New-style File</title>
+<smbconfblock>
 <smbconfcomment>Global Parameters - Newer Configuration</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
@@ -678,10 +681,12 @@ application/octet-stream
 <smbconfoption name="guest ok">Yes</smbconfoption>
 <smbconfoption name="use client driver">Yes</smbconfoption>
 <smbconfoption name="browseable">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="charity-smbconf">
+<example id="charity-smbconf">
 <title>Charity Administration Office &smb.conf; Old-style File</title>
+<smbconfblock>
 <smbconfcomment>Global Parameters - Older Style Configuration</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
@@ -717,7 +722,8 @@ application/octet-stream
 <smbconfoption name="guest ok">Yes</smbconfoption>
 <smbconfoption name="use client driver">Yes</smbconfoption>
 <smbconfoption name="browseable">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
                        <procedure>
                        <title>Windows Client Configuration</title>
@@ -1278,8 +1284,9 @@ application/octet-stream
 
                </procedure>
 
-<smbconfexample id="acctconf">
+<example id="acctconf">
 <title>Accounting Office Network &smb.conf; Old Style Configuration File</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">BILLMORE</smbconfoption>
@@ -1306,7 +1313,8 @@ application/octet-stream
 <smbconfoption name="guest ok">Yes</smbconfoption>
 <smbconfoption name="use client driver">Yes</smbconfoption>
 <smbconfoption name="browseable">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
                </sect3>
        </sect2>
index 7b6f9f760043621223281cde32a6d76c17e49763..037881c33fd7a86ee7e09460c38b1f8baab342c0 100644 (file)
@@ -630,8 +630,9 @@ hosts:      files wins
 
        </procedure>
 
-<smbconfexample id="acct2conf">
+<example id="acct2conf">
 <title>Accounting Office Network &smb.conf; File &smbmdash; [globals] Section</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">BILLMORE</smbconfoption>
@@ -656,10 +657,12 @@ hosts:    files wins
 <smbconfoption name="preferred master">Yes</smbconfoption>
 <smbconfoption name="wins support">Yes</smbconfoption>
 <smbconfoption name="printing">CUPS</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
-<smbconfexample id="acct3conf">
+<example id="acct3conf">
 <title>Accounting Office Network &smb.conf; File &smbmdash; Services and Shares Section</title>
+<smbconfblock>
 <smbconfsection name="[homes]"/>
 <smbconfoption name="comment">Home Directories</smbconfoption>
 <smbconfoption name="valid users">%S</smbconfoption>
@@ -691,7 +694,8 @@ hosts:      files wins
 <smbconfoption name="path">/data/finsvcs</smbconfoption>
 <smbconfoption name="valid users">%G</smbconfoption>
 <smbconfoption name="read only">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
                <sect2>
                <title>Validation</title>
index 7d4ff18dd77990db3fa7b48a1b0df85cadf7b63e..c553950f76c67f7472c713e8d7e87c84213106de 100644 (file)
@@ -251,13 +251,15 @@ parameters in the <smbconfsection name="[global]"/>-section of the &smb.conf; ha
 Refer to <link linkend="minimalPDC">following configuration</link> for an example of the minimum required settings.
 </para>
 
-<para><smbconfexample id="minimalPDC">
+<example id="minimalPDC">
 <title>Minimal smb.conf for a PDC in Use With a BDC &smbmdash; LDAP Server on PDC.</title>
+<smbconfblock>
 <smbconfoption name="workgroup">&example.workgroup;</smbconfoption>
 <smbconfoption name="passdb backend">ldapsam://localhost:389</smbconfoption>
 <smbconfoption name="domain master">yes</smbconfoption>
 <smbconfoption name="domain logons">yes</smbconfoption>
-</smbconfexample></para>
+</smbconfblock>
+</example>
 
 <para>
 Several other things like a <smbconfsection name="[homes]"/> and a
@@ -341,15 +343,15 @@ In order to have a fall-back configuration (secondary) LDAP server one would spe
 the secondary LDAP server in the &smb.conf; file as shown in <link linkend="mulitldapcfg">following example</link>.
 </para>
 
-<para>
-<smbconfexample id="mulitldapcfg">
+<example id="mulitldapcfg">
 <title>Multiple LDAP Servers in &smb.conf;</title>
+<smbconfblock>
 <member>...</member>
 <smbconfoption name="passdb backend"> </smbconfoption>
 <member><parameter>ldapsam:"ldap://master.quenya.org ldap://slave.quenya.org"</parameter></member>
 <member>...</member>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 </sect2>
 
@@ -509,14 +511,16 @@ The creation of a BDC requires some steps to prepare the Samba server before
 done by setting Samba as shown in <link linkend="minim-bdc">the next example</link>.
 </para>
 
-<para><smbconfexample id="minim-bdc">
+<example id="minim-bdc">
 <title>Minimal setup for being a BDC</title>
+<smbconfblock>
 <smbconfoption name="workgroup">&example.workgroup;</smbconfoption>
 <smbconfoption name="passdb backend">ldapsam:ldap://slave-ldap.quenya.org</smbconfoption>
 <smbconfoption name="domain master">no</smbconfoption>
 <smbconfoption name="domain logons">yes</smbconfoption>
 <smbconfoption name="idmap backend">ldap:ldap://slave-ldap.quenya.org</smbconfoption>
-</smbconfexample></para>
+</smbconfblock>
+</example>
 
 <para>
 In the <smbconfsection name="[global]"/>-section of the &smb.conf; of the BDC. This makes the BDC
index cd96ba60abc1325f99a4a8090462fc96e561c511..12f797c84a4f0076131bf76510c78623977dc07f 100644 (file)
@@ -156,8 +156,9 @@ libcups.so.2 =&gt; /usr/lib/libcups.so.2 (0x40123000)
                To summarize, <link linkend="cups-exam-simple">following example</link> shows simplest printing-related setup for &smb.conf; to enable basic CUPS support:
                </para>
 
-               <para><smbconfexample id="cups-exam-simple">
+               <example id="cups-exam-simple">
                <title>Simplest printing-related smb.conf</title>
+               <smbconfblock>
                <smbconfsection name="[global]"/>
                <smbconfoption name="load printers">yes</smbconfoption>
                <smbconfoption name="printing">cups</smbconfoption>
@@ -173,7 +174,8 @@ libcups.so.2 =&gt; /usr/lib/libcups.so.2 (0x40123000)
                <smbconfoption name="printable">yes</smbconfoption>
                <smbconfoption name="printer admin">root, @ntadmins</smbconfoption>
 
-               </smbconfexample></para>
+               </smbconfblock>
+               </example>
 
                <para>
                This is all you need for basic printing setup for CUPS. It will print
@@ -203,8 +205,9 @@ libcups.so.2 =&gt; /usr/lib/libcups.so.2 (0x40123000)
        up differently. 
        </para>
 
-       <para><smbconfexample id="overridesettings">
+       <example id="overridesettings">
        <title>Overriding global CUPS settings for one printer</title>
+       <smbconfblock>
        <smbconfsection name="[global]"/>
        <smbconfoption name="printing">cups</smbconfoption>
        <smbconfoption name="printcap name">cups</smbconfoption>
@@ -235,7 +238,8 @@ libcups.so.2 =&gt; /usr/lib/libcups.so.2 (0x40123000)
        <smbconfoption name="printer admin">kurt</smbconfoption>
        <smbconfoption name="hosts deny">0.0.0.0</smbconfoption>
        <smbconfoption name="hosts allow">turbo_xp, 10.160.50.23, 10.160.51.60</smbconfoption>
-       </smbconfexample></para>
+       </smbconfblock>
+       </example>
 
        <para>
        This special share is only there for testing purposes. It does not write the print job to a file. It just logs the job parameters
@@ -2475,8 +2479,9 @@ Prior to running <command>cupsaddsmb</command>, you need the settings in
 &smb.conf; as shown in <link linkend="cupsadd-ex">the next example</link>:
 </para>
 
-<para><smbconfexample id="cupsadd-ex">
+<example id="cupsadd-ex">
 <title>smb.conf for cupsaddsmb usage</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="load printers">yes</smbconfoption>
 <smbconfoption name="printing">cups</smbconfoption>
@@ -2499,7 +2504,8 @@ Prior to running <command>cupsaddsmb</command>, you need the settings in
 <smbconfoption name="guest ok">no</smbconfoption>
 <smbconfoption name="read only">yes</smbconfoption>
 <smbconfoption name="write list">root</smbconfoption>
-</smbconfexample></para>
+</smbconfblock>
+</example>
 </sect2>
 
 <sect2>
index 9f4f3dd2c05df74ba515cb1e2885004d8f2c36d8..6b844dc17e54502d805eeae06aff1286311bac02 100644 (file)
@@ -55,14 +55,15 @@ You can add a <smbconfsection name="tmp"/> share like this by adding the
 lines shown in <link linkend="tmpshare">the next example</link>.
 </para>
 
-<para><smbconfexample id="tmpshare">
-<title>smb.conf with [tmp] share</title>
+<example id="tmpshare">
+       <title>smb.conf with [tmp] share</title>
+       <smbconfblock>
 <smbconfsection name="[tmp]"/>
 <smbconfoption name="comment">temporary files </smbconfoption>
 <smbconfoption name="path">/tmp</smbconfoption>
 <smbconfoption name="read only">yes</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 <note><para>
 These tests assume version 3.0.0 or later of the Samba suite.
@@ -239,18 +240,16 @@ the &smb.conf; file entries as shown in <link linkend="modif1">the next example<
 </para>
 
 
-<para>
-<smbconfexample id="modif1">
+<example id="modif1">
        <title>Configuration for only allowing connections from a certain subnet</title>
+       <smbconfblock>
 <smbconfsection name="[globals]"/>
-<member>...</member>
 <smbconfoption name="hosts deny">ALL</smbconfoption>
 <smbconfoption name="hosts allow">xxx.xxx.xxx.xxx/yy</smbconfoption>
 <smbconfoption name="interfaces">eth0</smbconfoption>
 <smbconfoption name="bind interfaces only">Yes</smbconfoption>
-<member>...</member>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 <para>
 In the above, no allowance has been made for any session requests that
@@ -258,17 +257,15 @@ will automatically translate to the loopback adapter address 127.0.0.1.
 To solve this problem, change these lines as shown in <link linkend="modif2">the following example</link>.
 </para>
 
-<para>
-<smbconfexample id="modif2">
+<example id="modif2">
        <title>Configuration for allowing connections from a certain subnet and localhost</title>
+       <smbconfblock>
 <smbconfsection name="[globals]"/>
-<member>...</member>
 <smbconfoption name="hosts deny">ALL</smbconfoption>
 <smbconfoption name="hosts allow">xxx.xxx.xxx.xxx/yy 127.</smbconfoption>
 <smbconfoption name="interfaces">eth0 lo</smbconfoption>
-<member>...</member>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 <para>
 <indexterm><primary>inetd</primary></indexterm>
index 5395f6907069c91ca82fc9ec21deac726b5f236d..108c787d640b5d60249f9d28ae981cf5314e705b 100644 (file)
@@ -139,8 +139,9 @@ of the packages that are provided by the operating system vendor, or through oth
 
                <para>The configuration file is:</para>
 
-               <para><smbconfexample id="anon-example">
+               <example id="anon-example">
                                <title>Anonymous Read-Only Server Configuration</title>
+               <smbconfblock>
                <smbconfcomment>Global parameters</smbconfcomment>
                <smbconfsection name="[global]"/>
                <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
@@ -152,8 +153,8 @@ of the packages that are provided by the operating system vendor, or through oth
                <smbconfoption name="path">/export</smbconfoption>
                <smbconfoption name="read only">Yes</smbconfoption>
                <smbconfoption name="guest ok">Yes</smbconfoption>
-               </smbconfexample>
-               </para>
+               </smbconfblock>
+               </example>
 
                <itemizedlist>
                        <listitem><para>
@@ -274,8 +275,8 @@ Added user jackb.
                The complete, modified &smb.conf; file is as shown in <link linkend="anon-rw"/>.
                </para>
 
-               <para>
-<smbconfexample id="anon-rw"><title>Modified Anonymous Read-Write smb.conf</title>
+<example id="anon-rw"><title>Modified Anonymous Read-Write smb.conf</title>
+       <smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
@@ -289,8 +290,8 @@ Added user jackb.
 <smbconfoption name="force group">users</smbconfoption>
 <smbconfoption name="read only">No</smbconfoption>
 <smbconfoption name="guest ok">Yes</smbconfoption>
-</smbconfexample>
-               </para>
+</smbconfblock>
+</example>
 
                </sect3>
 
@@ -327,8 +328,8 @@ Added user jackb.
                configuration. <link linkend="anon-print"></link> is the resulting &smb.conf; file.
                </para>
 
-               <para>
-<smbconfexample id="anon-print"><title>Anonymous Print Server smb.conf</title>
+<example id="anon-print"><title>Anonymous Print Server smb.conf</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
@@ -346,8 +347,8 @@ Added user jackb.
 <smbconfoption name="printable">Yes</smbconfoption>
 <smbconfoption name="use client driver">Yes</smbconfoption>
 <smbconfoption name="browseable">No</smbconfoption>
-</smbconfexample>
-               </para>
+</smbconfblock>
+</example>
 
                <para>
                The above configuration is not ideal. It uses no smart features, and it deliberately
@@ -449,8 +450,10 @@ Added user jackb.
 
                        <step><para>
                        Configure the Samba &smb.conf; file as shown in <link linkend="OfficeServer"/>.
-<smbconfexample id="OfficeServer">
-<title>Secure Office Server smb.conf</title>
+               </para>
+<example id="OfficeServer">
+       <title>Secure Office Server smb.conf</title>
+       <smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
@@ -483,8 +486,8 @@ Added user jackb.
 <smbconfoption name="printable">Yes</smbconfoption>
 <smbconfoption name="use client driver">Yes</smbconfoption>
 <smbconfoption name="browseable">No</smbconfoption>
-                       </smbconfexample>
-                       </para></step>
+                       </smbconfblock>
+                       </example></step>
 
                        <step><para>
                        Initialize the Microsoft Windows password database with the new users:
@@ -663,9 +666,9 @@ smb: \> <userinput>q</userinput>
                        and <link linkend="fast-memberserver-shares"></link>.
                        </para>
 
-                       <para>
-                       <smbconfexample id="fast-member-server">
+                       <example id="fast-member-server">
                        <title>Member server smb.conf (globals)</title>
+                       <smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
@@ -678,11 +681,11 @@ smb: \> <userinput>q</userinput>
 <smbconfoption name="idmap gid">15000-20000</smbconfoption>
 <smbconfoption name="winbind use default domain">Yes</smbconfoption>
 <smbconfoption name="printing">cups</smbconfoption>
-                       </smbconfexample></para>
+                       </smbconfblock></example>
 
-                       <para>
-                       <smbconfexample id="fast-memberserver-shares">
+                       <example id="fast-memberserver-shares">
                        <title>Member server smb.conf (shares and services)</title>
+                       <smbconfblock>
 <smbconfsection name="[homes]"/>
 <smbconfoption name="comment">Home Directories</smbconfoption>
 <smbconfoption name="valid users">%S</smbconfoption>
@@ -710,8 +713,8 @@ smb: \> <userinput>q</userinput>
 <smbconfoption name="printable">Yes</smbconfoption>
 <smbconfoption name="use client driver">Yes</smbconfoption>
 <smbconfoption name="browseable">No</smbconfoption>
-                       </smbconfexample>
-                       </para></step>
+                       </smbconfblock>
+                       </example></step>
 
 
                        <step><para>
@@ -892,8 +895,9 @@ maryo:x:15000:15003:Mary Orville:/home/MIDEARTH/maryo:/bin/false
                        
                        <para>
 <indexterm><primary>pdbedit</primary></indexterm>
-                       <smbconfexample id="fast-engoffice-global">
+                       <example id="fast-engoffice-global">
                        <title>Engineering Office smb.conf (globals)</title>
+                       <smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
 <smbconfoption name="netbios name">FRODO</smbconfoption>
@@ -920,10 +924,13 @@ maryo:x:15000:15003:Mary Orville:/home/MIDEARTH/maryo:/bin/false
 <smbconfoption name="idmap uid">15000-20000</smbconfoption>
 <smbconfoption name="idmap gid">15000-20000</smbconfoption>
 <smbconfoption name="printing">cups</smbconfoption>
-                       </smbconfexample>
+                       </smbconfblock>
+               </example>
+               </para>
 
-                       <smbconfexample id="fast-engoffice-shares">
+                       <example id="fast-engoffice-shares">
                        <title>Engineering Office smb.conf (shares and services)</title>
+                       <smbconfblock>
 <smbconfsection name="[homes]"/>
 <smbconfoption name="comment">Home Directories</smbconfoption>
 <smbconfoption name="valid users">%S</smbconfoption>
@@ -963,8 +970,8 @@ maryo:x:15000:15003:Mary Orville:/home/MIDEARTH/maryo:/bin/false
 <smbconfoption name="profile acls">Yes</smbconfoption>
 
 <smbconfcomment>Other resource (share/printer) definitions would follow below.</smbconfcomment>
-                       </smbconfexample>
-                       </para></step>
+                       </smbconfblock>
+                       </example></step>
 
                        <step><para>
                        Create UNIX group accounts as needed using a suitable operating system tool:
@@ -1156,9 +1163,9 @@ userPassword: {SSHA}0jBHgQ1vp4EDX2rEMMfIudvRMJoGwjVb
                                The &smb.conf; file that drives this backend can be found in example <link linkend="fast-ldap"/>.
                                </para>
 
-                               <para>
-<smbconfexample id="fast-ldap">
+<example id="fast-ldap">
 <title>LDAP backend smb.conf for PDC</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
@@ -1193,8 +1200,8 @@ userPassword: {SSHA}0jBHgQ1vp4EDX2rEMMfIudvRMJoGwjVb
 <smbconfoption name="idmap uid">15000-20000</smbconfoption>
 <smbconfoption name="idmap gid">15000-20000</smbconfoption>
 <smbconfoption name="printing">cups</smbconfoption>
-</smbconfexample>
-                               </para></step>
+</smbconfblock>
+                               </example></step>
 
                                <step><para>
                                Add the LDAP password to the <filename>secrets.tdb</filename> file so Samba can update
@@ -1226,8 +1233,10 @@ userPassword: {SSHA}0jBHgQ1vp4EDX2rEMMfIudvRMJoGwjVb
                                Decide if the BDC should have its own LDAP server or not. If the BDC is to be
                                the LDAP server change the following &smb.conf; as indicated. The default
                                configuration in <link linkend="fast-bdc"/> uses a central LDAP server.
-<smbconfexample id="fast-bdc">
+                       </para>
+<example id="fast-bdc">
 <title>Remote LDAP BDC smb.conf</title>
+<smbconfblock>
 <smbconfcomment>Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">MIDEARTH</smbconfoption>
@@ -1254,8 +1263,8 @@ userPassword: {SSHA}0jBHgQ1vp4EDX2rEMMfIudvRMJoGwjVb
 <smbconfoption name="idmap uid">15000-20000</smbconfoption>
 <smbconfoption name="idmap gid">15000-20000</smbconfoption>
 <smbconfoption name="printing">cups</smbconfoption>
-</smbconfexample>
-                               </para></step>
+</smbconfblock>
+                               </example></step>
 
                                <step><para>
                                Configure the NETLOGON and PROFILES directory as for the PDC in <link linkend="fast-bdc"/>.
index b0e1a8cf48c228b89f30780ae546ce9dd8b05c06..a2625edb773065a47561eb9d0803b449df751c70 100644 (file)
@@ -642,11 +642,13 @@ exit 0
 
                <para>
                The &smb.conf; entry for the above script would be something like that in <link linkend="smbgrpadd">the following example</link>.
-<smbconfexample id="smbgrpadd" fragment="1">
+<example id="smbgrpadd">
 <title>Configuration of &smb.conf; for the add group script.</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="add group script">/path_to_tool/smbgrpadd.sh &quot;%g&quot;</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
                </para>
 
        </sect2>
index 1cec899cdde93c9528996152ae3b99e4965c0d11..1d9445e50b6be80c0d2772762c53d745cfb0d443 100644 (file)
@@ -61,8 +61,9 @@
        <indexterm><primary>minimal configuration</primary></indexterm>
 </para>
 
-       <smbconfexample id="smbconfminimal">
+       <example id="smbconfminimal">
                <title>A minimal smb.conf</title>
+               <smbconfblock>
 
                <smbconfsection name="[global]"/>
                <smbconfoption name="workgroup">WKG</smbconfoption>
@@ -73,7 +74,8 @@
                <smbconfsection name="[share2]"/>
                <smbconfoption name="path">/my_shared_folder</smbconfoption>
                <smbconfoption name="comment">Some random files</smbconfoption>
-       </smbconfexample>
+       </smbconfblock>
+       </example>
 
 </sect2>
 
 
        <para>
        <indexterm><primary>simple configuration</primary></indexterm>
-       <smbconfexample id="simple-example">
+       <example id="simple-example">
                <title>Another simple smb.conf File</title>
+               <smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">&example.workgroup;</smbconfoption>
 
 <smbconfsection name="[homes]"/>
 <smbconfoption name="guest ok">no</smbconfoption>
 <smbconfoption name="read only">no</smbconfoption>
-       </smbconfexample>
+       </smbconfblock>
+</example>
        </para>
        
        <para>
index dbbaac7b085630d5052adcef97982dd88e212fb3..e9f39414d56ec7f6fa42c155b87124beda520947 100644 (file)
@@ -624,16 +624,16 @@ options in the <smbconfsection name="[global]"/> section of the &smb.conf;
 file as shown in <link linkend="dmbexample">the following example</link>:
 </para>
 
-<para>
-<smbconfexample id="dmbexample">
+<example id="dmbexample">
 <title>Domain Master Browser smb.conf</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="domain master">yes</smbconfoption>
 <smbconfoption name="local master">yes</smbconfoption>
 <smbconfoption name="preferred master">yes</smbconfoption>
 <smbconfoption name="os level">65</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 <para>
 The Domain Master Browser may be the same machine as the WINS server, if necessary.
@@ -649,16 +649,16 @@ server a Local Master Browser set the following options in the
 shown in <link linkend="lmbexample">following example</link>:
 </para>
 
-<para>
-<smbconfexample id="lmbexample">
+<example id="lmbexample">
 <title>Local master browser smb.conf</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="domain master">no</smbconfoption>
 <smbconfoption name="local master">yes</smbconfoption>
 <smbconfoption name="preferred master">yes</smbconfoption>
 <smbconfoption name="os level">65</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 <para>
 Do not do this for more than one Samba server on each subnet, or they will war with
@@ -678,16 +678,16 @@ becoming a Local Master Browser by setting the following options in the <smbconf
 &smb.conf; file as shown in <link linkend="nombexample">following example</link>:
 </para>
 
-<para>
-<smbconfexample id="nombexample">
+<example id="nombexample">
 <title>smb.conf for not being a Master Browser</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="domain master">no</smbconfoption>
 <smbconfoption name="local master">no</smbconfoption>
 <smbconfoption name="preferred master">no</smbconfoption>
 <smbconfoption name="os level">0</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 </sect2>
 
@@ -707,16 +707,16 @@ described. To make a Samba server a Local Master Browser, set the following opti
 of the &smb.conf; file as shown in <link linkend="remsmb">following example</link>:
 </para>
 
-<para>
-<smbconfexample id="remsmb">
+<example id="remsmb">
 <title>Local Master Browser smb.conf</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="domain master">no</smbconfoption>
 <smbconfoption name="local master">yes</smbconfoption>
 <smbconfoption name="preferred master">yes</smbconfoption>
 <smbconfoption name="os level">65</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 <para>
 If you wish to have a Samba server fight the election with machines on the same subnet you
@@ -732,16 +732,16 @@ and ever becoming a Local Master Browser by setting the following options in the
 <smbconfsection name="[global]"/> section of the &smb.conf; file as shown in <link linkend="xremmb">next example</link>:
 </para>
 
-<para>
-<smbconfexample id="xremmb">
+<example id="xremmb">
 <title>&smb.conf; for not being a master browser</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="domain master">no</smbconfoption>
 <smbconfoption name="local master">no</smbconfoption>
 <smbconfoption name="preferred master">no</smbconfoption>
 <smbconfoption name="os level">0</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 </sect2>
 
index 0a0d78fd91908ec3a4bd612d0c4e9d063b55bfed..61f100f7c6dcadcbcc992ce44e33b88159001105 100644 (file)
@@ -308,15 +308,17 @@ releases prior to Samba 2.2.2.
 <link linkend="minimalprofile">Following example</link> provides a minimal profile share.
 </para>
 
-<para><smbconfexample id="minimalprofile">
+<example id="minimalprofile">
 <title>Minimal profile share</title>
+<smbconfblock>
 <smbconfsection name="[profile]"/>
 <smbconfoption name="path">/export/profile</smbconfoption>
 <smbconfoption name="create mask">0600</smbconfoption>
 <smbconfoption name="directory mask">0700</smbconfoption>
 <smbconfoption name="nt acl support">no</smbconfoption>
 <smbconfoption name="read only">no</smbconfoption>
-</smbconfexample></para>
+</smbconfblock>
+</example>
 
 <para>
 The reason for this bug is that the Windows 200x SP2 client copies
index 595deaa0ca6f113fa99a915cae9d5c7a1f3e4fdc..e28de99470da73df468b9be3d841d7fd288ba49f 100644 (file)
@@ -426,9 +426,9 @@ The first step in creating a working Samba PDC is to understand the parameters n
 in &smb.conf;. An example &smb.conf; for acting as a PDC can be found in <link linkend="pdc-example">the next example</link>. 
 </para>
 
-<para>
-<smbconfexample id="pdc-example">
+<example id="pdc-example">
 <title>smb.conf for being a PDC</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="netbios name"><replaceable>BELERIAND</replaceable></smbconfoption>
 <smbconfoption name="workgroup"><replaceable>&example.workgroup;</replaceable></smbconfoption>
@@ -454,8 +454,8 @@ in &smb.conf;. An example &smb.conf; for acting as a PDC can be found in <link l
 <smbconfoption name="read only">no</smbconfoption>
 <smbconfoption name="create mask">0600</smbconfoption>
 <smbconfoption name="directory mask">0700</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 <para>
 The basic options shown in <link linkend="pdc-example">this example</link> are explained as follows:
@@ -582,8 +582,9 @@ must be set.
 <sect3>
 <title>Example Configuration</title>
 
-<smbconfexample id="PDC-config">
+<example id="PDC-config">
 <title>smb.conf for being a PDC</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="domain logons">Yes</smbconfoption>
 <smbconfoption name="domain master">(Yes on PDC, No on BDCs)</smbconfoption>
@@ -593,7 +594,8 @@ must be set.
 <smbconfoption name="path">/var/lib/samba/netlogon</smbconfoption>
 <smbconfoption name="guest ok">Yes</smbconfoption>
 <smbconfoption name="browseable">No</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 </sect3>
 <sect3>
index 45077188e8dcf445aa359870ff6cb230c0c07055..00ac479e2bdc3a43627b65063ed83197f3712499 100644 (file)
@@ -418,13 +418,15 @@ Samba-3 introduces a number of new password backend capabilities.
 
        <para>
 <indexterm><primary>SAM backend</primary><secondary>ldapsam</secondary></indexterm>
-<smbconfexample id="idmapbackendexample">
+<example id="idmapbackendexample">
 <title>Example configuration with the LDAP idmap backend</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="idmap backend">ldap:ldap://ldap-server.quenya.org:636</smbconfoption>
 <smbconfcomment>Alternately, this could be specified as:</smbconfcomment>
 <smbconfoption name="idmap backend">ldap:ldaps://ldap-server.quenya.org</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
        </para>
 
        <para>
@@ -1148,9 +1150,9 @@ userPassword: {SSHA}c3ZM9tBaBo9autm1dL3waDS21+JSfQVz
                        use with an LDAP directory could appear as shown below.
                        </para>
 
-<para>
-<smbconfexample id="confldapex">
+<example id="confldapex">
 <title>Configuration with LDAP</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="security">user</smbconfoption>
 <smbconfoption name="encrypt passwords">yes</smbconfoption>
@@ -1190,8 +1192,8 @@ userPassword: {SSHA}c3ZM9tBaBo9autm1dL3waDS21+JSfQVz
 
 <smbconfcomment> generally the default ldap search filter is ok</smbconfcomment>
 <smbconfoption name="ldap filter">(uid=%u)</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
                </sect3>
 
@@ -1634,8 +1636,9 @@ access to attrs=SambaLMPassword,SambaNTPassword
                        <para><link linkend="mysqlsam">An example configuration</link> looks like:
                        </para>
 
-                       <smbconfexample id="mysqlsam">
+                       <example id="mysqlsam">
                                <title>Example configuration for the MySQL passdb backend</title>
+                               <smbconfblock>
                        <smbconfsection name="[global]"/>
                        <smbconfoption name="passdb backend">mysql:foo</smbconfoption>
                        <smbconfoption name="foo:mysql user">samba</smbconfoption>
@@ -1650,7 +1653,8 @@ access to attrs=SambaLMPassword,SambaNTPassword
                        <smbconfoption name="foo:nt pass column">nt_pass:</smbconfoption>
                        <smbconfcomment>The unknown 3 column is not stored</smbconfcomment>
                        <smbconfoption name="foo:unknown 3 column">NULL</smbconfoption>
-                       </smbconfexample>
+               </smbconfblock>
+       </example>
                </sect3>
 
                <sect3>
index 349d64f7f9ae70add7c25bde5603037909e169e2..b5488fca6525290cfa59cea88a87ab17246cedf2 100644 (file)
@@ -186,9 +186,9 @@ However, in many environments these are enough to provide a valid
 &smb.conf; file that enables all clients to print.
 </para>
 
-<para>
-<smbconfexample id="simpleprc">
+<example id="simpleprc">
 <title>Simple configuration with BSD printing</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="printing">bsd</smbconfoption>
 <smbconfoption name="load printers">yes</smbconfoption>
@@ -198,7 +198,8 @@ However, in many environments these are enough to provide a valid
 <smbconfoption name="printable">yes</smbconfoption>
 <smbconfoption name="public">yes</smbconfoption>
 <smbconfoption name="writable">no</smbconfoption>
-</smbconfexample></para>
+</smbconfblock>
+</example>
 
 <para>
 This is only an example configuration. Samba assigns default values to
@@ -446,8 +447,9 @@ by default. You could use a much leaner &smb.conf; file. Alternately, you can us
 file to remove all parameters that are set at default.
 </para>
 
-<para><smbconfexample id="extbsdpr">
+<example id="extbsdpr">
        <title>Extended BSD Printing Configuration</title>
+       <smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="printing">bsd</smbconfoption>
 <smbconfoption name="load printers">yes</smbconfoption>
@@ -478,7 +480,7 @@ file to remove all parameters that are set at default.
 <smbconfoption name="hosts allow">0.0.0.0</smbconfoption>
 <smbconfoption name="hosts deny">turbo_xp, 10.160.50.23, 10.160.51.60</smbconfoption>
 <smbconfoption name="guest ok">no</smbconfoption>
-</smbconfexample></para>
+</smbconfblock></example>
 
 <para>
 This is an example configuration. You may not find all the settings that are in 
@@ -1141,9 +1143,9 @@ as <smbconfoption name="path"/> are arbitrary and should be replaced with approp
 site). See <link linkend="prtdollar">next example</link>.
 </para>
 
-<para>
-<smbconfexample id="prtdollar">
+<example id="prtdollar">
 <title>[print\$] example</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfcomment>members of the ntadmin group should be able to add drivers and set</smbconfcomment>
 <smbconfcomment>printer properties. root is implicitly always a 'printer admin'.</smbconfcomment>
@@ -1158,8 +1160,8 @@ site). See <link linkend="prtdollar">next example</link>.
 <smbconfoption name="guest ok">yes</smbconfoption>
 <smbconfoption name="read only">yes</smbconfoption>
 <smbconfoption name="write list">@ntadmin, root</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 <para>
 Of course, you also need to ensure that the directory named by the
index ad1b69e79e5919e09d725b937a2d5ea483b2a141..c1874d0e49356f975ca49858a015dee593d19b88 100644 (file)
@@ -102,8 +102,9 @@ nobody. No home directories are shared, and there are no users in the <filename>
 UNIX system database. This is a simple system to administer.
 </para>
 
-<smbconfexample id="simplynice">
+<example id="simplynice">
 <title>smb.conf for Reference Documentation Server</title>
+<smbconfblock>
 <smbconfcomment> Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">&example.workgroup;</smbconfoption>
@@ -115,7 +116,8 @@ UNIX system database. This is a simple system to administer.
 <smbconfoption name="comment">Data</smbconfoption>
 <smbconfoption name="path">/export</smbconfoption>
 <smbconfoption name="guest only">Yes</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
 <para>
 In <link linkend="simplynice">the example</link> above, the machine name is set to &example.server.samba;, the workgroup is set to the name
@@ -193,9 +195,9 @@ the anonymous (guest) user, two things will be required:
 The contents of the &smb.conf; file is shown in <link linkend="AnonPtrSvr">the next example</link>.
 </para>
 
-<para>
-<smbconfexample id="AnonPtrSvr">
+<example id="AnonPtrSvr">
 <title>&smb.conf; for Anonymous Printing</title>
+<smbconfblock>
 <smbconfcomment> Global parameters</smbconfcomment>
 <smbconfsection name="[global]"/>
 <smbconfoption name="workgroup">&example.workgroup;</smbconfoption>
@@ -213,8 +215,8 @@ The contents of the &smb.conf; file is shown in <link linkend="AnonPtrSvr">the n
 <smbconfoption name="printable">Yes</smbconfoption>
 <smbconfoption name="use client driver">Yes</smbconfoption>
 <smbconfoption name="browseable">No</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 
 <note><para>
index a858a38508caeae3a5d7fc69a400f4f4a3b52d03..761116c8181bad8fde8c00f00bf3f22e6db934b1 100644 (file)
@@ -374,7 +374,8 @@ Setting up Japanese charsets is quite difficult. This is mainly because:
                        as follows:
                        </para>
 
-<smbconfexample><title>VFS CAP</title>
+<example><title>VFS CAP</title>
+       <smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfcomment>the locale name "CP932" may be different</smbconfcomment>
 <smbconfoption name="dos charset">CP932</smbconfoption>
@@ -382,7 +383,8 @@ Setting up Japanese charsets is quite difficult. This is mainly because:
 
 <smbconfsection name="[cap-share]"/>
 <smbconfoption name="vfs option">cap</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 
                        <para>
                        You should set CP932 if using GNU libiconv for unix charset. Setting this,
index 3fdcc0ea81156902751ba0bbb23f3714322d97e0..0ccc1188fe2376a31ce085e79b6849ff9e16e030 100644 (file)
@@ -40,15 +40,17 @@ important parameter is the <smbconfoption name="vfs objects"/> parameter where
 you can list one or more VFS modules by name. For example, to log all access 
 to files and put deleted files in a recycle bin, see <link linkend="vfsrecyc">next configuration</link>:
 
-<smbconfexample id="vfsrecyc">
+<example id="vfsrecyc">
        <title>smb.conf with VFS modules</title>
+       <smbconfblock>
        <smbconfsection name="[audit]"/>
 <smbconfoption name="comment">Audited /data directory</smbconfoption>
 <smbconfoption name="path">/data</smbconfoption>
 <smbconfoption name="vfs objects">audit recycle</smbconfoption>
 <smbconfoption name="writeable">yes</smbconfoption>
 <smbconfoption name="browseable">yes</smbconfoption>
-       </smbconfexample>
+       </smbconfblock>
+</example>
 </para>
 
 <para>
@@ -70,8 +72,9 @@ Samba installation (usually <filename>/usr/lib/samba/vfs</filename> or <filename
 Some modules can be used twice for the same share.
 This can be done using a configuration similar to the one shown in <link linkend="multimodule">the following example</link>.
 
-<smbconfexample id="multimodule">
+<example id="multimodule">
        <title>smb.conf with multiple VFS modules</title>
+       <smbconfblock>
 <smbconfsection name="[test]"/>
 <smbconfoption name="comment">VFS TEST</smbconfoption>
 <smbconfoption name="path">/data</smbconfoption>
@@ -81,7 +84,8 @@ This can be done using a configuration similar to the one shown in <link linkend
 <smbconfoption name="example1: parameter">1</smbconfoption>
 <smbconfoption name="example:  parameter">5</smbconfoption>
 <smbconfoption name="test:       parameter">7</smbconfoption>
-</smbconfexample>
+</smbconfblock>
+</example>
 </para>
 
 </sect1>
@@ -502,17 +506,17 @@ This can be done using a configuration similar to the one shown in <link linkend
                standard.  Here is our example of a share configured
                with the shadow_copy VFS module:</para>
            </formalpara>
-           <para>
-             <smbconfexample id="vfsshadow">
+             <example id="vfsshadow">
                <title>Share With shadow_copy VFS</title>
+               <smbconfblock>
                <smbconfsection name="[shadow_share]"/>
                <smbconfoption name="comment">Shadow Copy Enabled Share</smbconfoption>
                <smbconfoption name="path">/data/shadow_share</smbconfoption>
                <smbconfoption name="vfs objects">shadow_copy</smbconfoption>
                <smbconfoption name="writeable">yes</smbconfoption>
                <smbconfoption name="browseable">yes</smbconfoption>
-             </smbconfexample>
-           </para>
+             </smbconfblock>
+           </example>
          </listitem>
          <listitem>
            <formalpara>
index 6cec77528da523ff2b6f6e934b9d617e223fd4b6..9429d51a81a9bcbfb31f811520d86899eafca611 100644 (file)
@@ -619,9 +619,9 @@ are described in more detail in the <citerefentry><refentrytitle>winbindd</refen
 linkend="winbindcfg">the next example</link>, was modified to include the necessary entries in the [global] section.
 </para>
 
-<para>
-<smbconfexample id="winbindcfg" fragment="1">
+<example id="winbindcfg" fragment="1">
                <title>smb.conf for Winbind set-up</title>
+               <smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfcomment> separate domain and username with '\', like DOMAIN\username</smbconfcomment>
 <smbconfoption name="winbind separator">\</smbconfoption>
@@ -635,7 +635,8 @@ linkend="winbindcfg">the next example</link>, was modified to include the necess
 <smbconfcomment> give winbind users a real shell (only needed if they have telnet access)</smbconfcomment>
 <smbconfoption name="template homedir">/home/winnt/%D/%U</smbconfoption>
 <smbconfoption name="template shell">/bin/bash</smbconfoption>
-</smbconfexample></para>
+</smbconfblock>
+</example>
 
 </sect3>
 
index 2d8b78536e7fb2980a182bd49a6c22bf06ca2879..3c294406ac7b8c3ac6f235eef326a4a6e0430fc7 100644 (file)
@@ -224,7 +224,7 @@ that are in common use today. These are:
                        Click the <guibutton>WINS</guibutton> tab to add manual WINS server entries. 
                        This step demonstrates an example system that uses manually configured WINS settings. 
                        When finished making changes, click on <guibutton>OK</guibutton> to commit the settings.
-                       See <link linkend="w2kp005"></link>.
+                       See <link linkend="w2kp005"/>.
                        <figure id="w2kp005"><title>WINS Configuration.</title><imagefile>w2kp005</imagefile></figure>
                        </para></step>
 
@@ -255,16 +255,16 @@ that are in common use today. These are:
                <procedure>
                        <step><para>
                        In the box labeled <guimenuitem>The following network components are installed:</guimenuitem>,
-                       click on <guimenu>Internet Protocol TCP/IP</guimenu>, now click on the <guibutton>Properties</guibutton> button. See <link linkend="WME001"></link>.
+                       click on <guimenu>Internet Protocol TCP/IP</guimenu>, now click on the <guibutton>Properties</guibutton> button. See <link linkend="WME001"/>.
                        <figure id="WME001"><title>The Windows Me Network Configuration Panel.</title><imagefile>WME001</imagefile></figure>
                        </para></step>
 
                        <step><para>
                        Many network administrators will want to use DHCP to configure all client TCP/IP
                        protocol stack settings. (For information on how to configure the ISC DHCP server
-                       for Microsoft Windows client support see, <link linkend="DHCP"></link>.
+                       for Microsoft Windows client support see, <link linkend="DHCP"/>.
                        The default setting on Microsoft Windows Me workstations is for DHCP enabled operation,
-                       i.e., <guimenu>Obtain IP address automatically</guimenu> is enabled. See <link linkend="WME002"></link>.
+                       i.e., <guimenu>Obtain IP address automatically</guimenu> is enabled. See <link linkend="WME002"/>.
                        <figure id="WME002"><title>IP Address.</title><imagefile>WME002</imagefile></figure>
                        </para>
 
@@ -286,7 +286,7 @@ that are in common use today. These are:
                        </para></step>
 
                        <step><para>
-                       The following example uses manually configured WINS settings. See <link linkend="WME005"></link>.
+                                       The following example uses manually configured WINS settings. See <link linkend="WME005"/>.
                        When finished making changes, click on <guibutton>OK</guibutton> to commit the settings.
                        <figure id="WME005"><title>DNS Configuration.</title><imagefile>WME005</imagefile></figure>
                        </para>
index 2aa6b622a24eae7cefbdb4abad2aa47af1031f5e..cb228658e7c3561886fc6490e0786ae15f0d50ac 100644 (file)
@@ -666,16 +666,16 @@ enabled on a per-share basis, or globally for the entire server, in the
 &smb.conf; file as shown in <link linkend="far1"/>.
 </para>
 
-<para>
-<smbconfexample id="far1">
+<example id="far1">
 <title>Share with some files oplocked</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="veto oplock files">/filename.htm/*.txt/</smbconfoption>
 
 <smbconfsection name="[share_name]"/>
 <smbconfoption name="veto oplock files">/*.exe/filename.ext/</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 <para>
 <smbconfoption name="oplock break wait time"/> is an &smb.conf; parameter
@@ -699,16 +699,16 @@ Oplock break Contention Limit can be enable on a per-share basis, or globally fo
 the entire server, in the &smb.conf; file as shown in <link linkend="far3"/>.
 </para>
 
-<para>
-<smbconfexample id="far3">
+<example id="far3">
        <title>Configuration with oplock break contention limit</title>
+       <smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="oplock break contention limit"> 2 (default)</smbconfoption>
 
 <smbconfsection name="[share_name]"/>
 <smbconfoption name="oplock break contention limit"> 2 (default)</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
 </sect3>
 </sect2>
index 126edd0eb660c70766dd60e090962bce55009bd2..f5d066e68153ade6fed26bd4a847145e9c9f4530 100644 (file)
@@ -61,9 +61,9 @@
 </screen>
 </para>
 
-<para>
-<smbconfexample id="dfscfg">
+<example id="dfscfg">
 <title>smb.conf with DFS configured</title>
+<smbconfblock>
 <smbconfsection name="[global]"/>
 <smbconfoption name="netbios name">&example.server.samba;</smbconfoption>
 <smbconfoption name="host msdfs  ">yes</smbconfoption>
@@ -71,8 +71,8 @@
 <smbconfsection name="[dfs]"/>
 <smbconfoption name="path">/export/dfsroot</smbconfoption>
 <smbconfoption name="msdfs root">yes</smbconfoption>
-</smbconfexample>
-</para>
+</smbconfblock>
+</example>
 
        <para>You should set up the permissions and ownership of 
        the directory acting as the DFS root so that only designated 
index 0014ce9583ad0564bbe764464e497c6b69fba479..a6d975494e8ac79efb14bf541ebc9fef6ad6c46e 100644 (file)
@@ -20,12 +20,6 @@ AC_ARG_WITH(papersize,
 [ --with-papersize         Specify papersize (a4paper,letter) ],
 [ test "$withval" && PAPERSIZE="$withval" ])
 
-FONTSIZE="10.5"
-
-AC_ARG_WITH(fontsize,
-[ --with-fontsize          Specify the fontsize in points (default: 10.5) ],
-[ test "$withval" && FONTSIZE="$withval" ])
-
 AC_ARG_ENABLE(printable,
 [ --enable-printable       Printable output (expand ulinks, etc)],
 [ if test "$enableval"; then
@@ -39,7 +33,6 @@ AC_SUBST(DOC_BUILD_DATE)
 AC_SUBST(PAPERSIZE)
 AC_SUBST(ULINK_IN_FOOTNOTE)
 AC_SUBST(ULINK_SHOW)
-AC_SUBST(FONTSIZE)
 AC_SUBST(DOCROP)
 AC_SUBST(SAMBASOURCEDIR)
 
index ad9e3fbe97d56dbbd8632ea1b2d1b5c9bbaedc32..3f36eaf9f04f12839dca00a08cbcebcf697de3f1 100644 (file)
        The user has write access to the path <filename moreinfo="none">/home/bar</filename>. 
        The share is accessed via the share name <quote>foo</quote>:</para>
 
-<smbconfexample>
+<smbconfblock>
        <smbconfsection name="[foo]"/>
        <smbconfoption name="path">/home/bar</smbconfoption>
        <smbconfoption name="read only">read only = no</smbconfoption>
-</smbconfexample>
+</smbconfblock>
 
        <para>The following sample section defines a printable share. 
        The share is read-only, but printable. That is, the only write 
        access will be permitted as the default guest user (specified 
        elsewhere):</para>
 
-<smbconfexample>
+<smbconfblock>
        <smbconfsection name="[aprinter]"/>
        <smbconfoption name="path">/usr/spool/public</smbconfoption>
        <smbconfoption name="read only">yes</smbconfoption>
        <smbconfoption name="printable">yes</smbconfoption>
        <smbconfoption name="guest ok">yes</smbconfoption>
-</smbconfexample>
+</smbconfblock>
 </refsect1>
 
 <refsect1>
                than others. The following is a typical and suitable [homes]
                section:</para>
 
-       <smbconfexample>
+       <smbconfblock>
                <smbconfsection name="[homes]"/>
                <smbconfoption name="read only">no</smbconfoption>
-       </smbconfexample>
+       </smbconfblock>
        
                <para>An important point is that if guest access is specified 
                in the [homes] section, all home directories will be 
                it. A typical [printers] entry looks like 
                this:</para>
 
-       <smbconfexample>
+       <smbconfblock>
                <smbconfsection name="[printers]"/>
                <smbconfoption name="path">/usr/spool/public</smbconfoption>
                <smbconfoption name="guest ok">yes</smbconfoption>
                <smbconfoption name="printable">yes</smbconfoption>
-       </smbconfexample>
+       </smbconfblock>
 
                <para>All aliases given for a printer in the printcap file 
                are legitimate printer names as far as the server is concerned. 
index a5be331635791252baf64db79f5bd2f44771fd73..f9deddf4388998cdf9a88a4620b78f7591dc46fb 100644 (file)
@@ -6,5 +6,4 @@
 <xsl:param name="docrop"><xsl:text>@DOCROP@</xsl:text></xsl:param>
 <xsl:param name="ulink.footnotes"><xsl:text>@ULINK_IN_FOOTNOTE@</xsl:text></xsl:param>
 <xsl:param name="ulink.show"><xsl:text>@ULINK_SHOW@</xsl:text></xsl:param>
-<xsl:param name="fontsize"><xsl:text>@FONTSIZE@</xsl:text></xsl:param>
 </xsl:stylesheet>
index 5ded8c703b181adf4fba556031d179275a33ca16..37e70cca5ae035edfcc93149457990337e7d85d2 100644 (file)
@@ -22,7 +22,7 @@
                </xsl:copy>
        </xsl:template>
 
-       <xsl:template match="smbconfexample/smbconfoption|smbconfblock/smbconfoption">
+       <xsl:template match="smbconfblock/smbconfoption">
 
                <xsl:element name="member">
                        <xsl:element name="indexterm">
@@ -31,9 +31,6 @@
                                </xsl:element>
                        </xsl:element>
                        <xsl:element name="parameter">
-                               <xsl:text disable-output-escaping="yes">
-                                       &lt;?latex \hspace{1cm} ?&gt;
-                               </xsl:text>
                                <xsl:value-of select="@name"/>
                                <xsl:choose>
                                        <xsl:when test="text() != ''">
                </xsl:element>
        </xsl:template>
 
-       <xsl:template match="smbconfexample/smbconfcomment|smbconfblock/smbconfcomment">
-               <xsl:text disable-output-escaping="yes">
-                       &lt;?latex \hspace{1cm} ?&gt;
-               </xsl:text>
+       <xsl:template match="smbconfblock/smbconfcomment">
                <xsl:element name="member">
                        <xsl:text># </xsl:text>
                        <xsl:apply-templates/>
                </xsl:element>
        </xsl:template>
 
-       <xsl:template match="smbconfexample/smbconfsection|smbconfblock/smbconfsection">
+       <xsl:template match="smbconfblock/smbconfsection">
                <xsl:element name="member">
                        <xsl:text> </xsl:text>
                </xsl:element>
                </xsl:choose>
        </xsl:template>
 
-       <xsl:template match="smbconfexample">
-               <xsl:choose>
-                       <xsl:when test="title = ''">
-                               <xsl:message>
-                                       <xsl:text>Warning: smbconfexample does not have title!</xsl:text>
-                               </xsl:message>
-                       </xsl:when>
-               </xsl:choose>
-               <xsl:element name="example">
-                       <xsl:choose>
-                               <xsl:when test="@id != ''">
-                                       <xsl:attribute name="id">
-                                               <xsl:value-of select="@id"/>
-                                       </xsl:attribute>
-                               </xsl:when>
-                       </xsl:choose>
-
-                       <xsl:element name="title">
-                               <xsl:value-of select="title"/>
-                       </xsl:element>
-                       <xsl:element name="simplelist">
-                               <xsl:apply-templates/>
-                       </xsl:element>
-               </xsl:element>
-       </xsl:template>
-
-       <xsl:template match="smbconfexample/title">
-       </xsl:template>
-
        <xsl:template match="smbconfblock">
                <xsl:element name="simplelist">
                        <xsl:apply-templates/>
                </xsl:element>
        </xsl:template>
 
-       <xsl:template match="smbconfcomment">
-               <xsl:text># </xsl:text>
-               <xsl:apply-templates/>
-       </xsl:template>
-
        <xsl:template match="imagefile">
                <xsl:element name="mediaobject">
-                       <xsl:element name="imageobject">
-                               <xsl:attribute name="role"><xsl:text>latex</xsl:text></xsl:attribute>
-                               <xsl:element name="imagedata">
-                                       <xsl:attribute name="fileref">
-                                               <xsl:value-of select="$latex.imagebasedir"/><xsl:text>images/</xsl:text><xsl:value-of select="text()"/></xsl:attribute>
-                                       <xsl:attribute name="scale">
-                                               <xsl:choose>
-                                                       <xsl:when test="@scale != ''">
-                                                               <xsl:value-of select="@scale"/>
-                                                       </xsl:when>
-
-                                                       <xsl:otherwise>
-                                                               <xsl:text>50</xsl:text>
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
-                                       </xsl:attribute>
-                                       <xsl:attribute name="scalefit"><xsl:text>1</xsl:text></xsl:attribute>
-                               </xsl:element>
-                       </xsl:element>
                        <xsl:element name="imageobject">
                                <xsl:attribute name="role"><xsl:text>html</xsl:text></xsl:attribute>
                                <xsl:element name="imagedata">
index ac9d2fe423f78aa4e74f7ca1bc65743df5f968fa..cc817427de26007c72a82ddeff6ac4476f115a45 100644 (file)
 <xsl:template name="latex.thead.row.entry">
 <xsl:text>{\bfseries </xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text>
 </xsl:template>
-<xsl:param name="latex.documentclass">xslt/latex/sambadoc</xsl:param>
-<xsl:param name="latex.documentclass.book"><xsl:value-of select="$fontsize"/>pt,openright,twoside</xsl:param>
+<xsl:param name="latex.documentclass">sambadoc</xsl:param>
+<xsl:param name="latex.documentclass.book">openright,twoside</xsl:param>
 <xsl:param name="latex.babel.language">english</xsl:param>
 
+<xsl:template match="smbconfblock/smbconfoption">
+       <xsl:value-of select="@name"/>
+       <xsl:if test="text() != ''">
+               <xsl:text> = </xsl:text>
+               <xsl:value-of select="text()"/>
+       </xsl:if>
+       <xsl:text>&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="smbconfblock/smbconfcomment">
+       <xsl:text># </xsl:text>
+       <xsl:apply-templates/>
+       <xsl:text>&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="smbconfblock/smbconfsection">
+       <xsl:value-of select="@name"/>
+       <xsl:text>&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="smbconfoption">
+       <xsl:text>\smbconfoption{</xsl:text>
+       <xsl:value-of select="@name"/>
+       <xsl:text>}</xsl:text>
+
+       <xsl:choose>
+               <xsl:when test="text() != ''">
+                       <xsl:text> = </xsl:text>
+                       <xsl:value-of select="text()"/>
+               </xsl:when>
+       </xsl:choose>
+</xsl:template>
+
+<xsl:template match="smbconfblock">
+       <xsl:text>&#10;\begin{lstlisting}[language=smbconf]&#10;</xsl:text>
+       <xsl:apply-templates/>
+       <xsl:text>\end{lstlisting}&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="smbconfsection">
+       <xsl:text>\smbconfsection{</xsl:text>
+               <xsl:value-of select="translate(@name, '$','x')"/>
+       <xsl:text>}</xsl:text>
+</xsl:template>
+
+<xsl:template match="imagefile">
+       <xsl:text>\includegraphics[scale=.</xsl:text>
+       <xsl:choose>
+               <xsl:when test="@scale != ''"><xsl:value-of select="@scale"/></xsl:when>
+
+               <xsl:otherwise><xsl:text>50</xsl:text></xsl:otherwise>
+       </xsl:choose>
+       <xsl:text>]{</xsl:text>
+       <xsl:value-of select="$latex.imagebasedir"/><xsl:text>images/</xsl:text>
+       <xsl:value-of select="text()"/>
+       <xsl:text>}&#10;</xsl:text>
+</xsl:template>
+
 </xsl:stylesheet>
index c80f143caf8ceb4098493a02cde8c54a3cd10ff6..fcd693e0caf2510a4823c7537351fb3ca0605da2 100644 (file)
 \plainfootrulewidth 0pt             %---- no foot rule for chapter page
 \footrulewidth 0pt                  %---- no rule for foot
 
+
+%10.5pt fonts
+\usepackage{type1cm}
+\renewcommand\normalsize{%
+   \@setfontsize\normalsize{10.5pt}{12pt}
+   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+   \abovedisplayshortskip \z@ \@plus3\p@
+   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+\let\@listi\@listI}
+\normalsize   
+%
+
 %--- Redefine Headers
 \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
 %
@@ -476,7 +489,7 @@ page \thepage \space undefined}}%
 \renewcommand{\topfraction}{1.0}
 \renewcommand{\bottomfraction}{1.0}
 
-\usepackage[twoside,dvips]{geometry}
+\usepackage[twoside]{geometry}
 
 \geometry{%
 paperwidth=7in,
@@ -493,3 +506,15 @@ headsep=.25in,
 footskip=.025in}
 
 \setlength{\headwidth}{\textwidth}
+
+% smb.conf syntax highlighting
+\usepackage{listings}
+\usepackage{xcolor}
+
+\lstdefinelanguage{smbconf}{
+       morecomment=[l]{\#},
+}
+
+\lstset{backgroundcolor=\color{lightgray},frame=single,}
+\newcommand{\smbconfsection}[1]{\emph{#1}}
+\newcommand{\smbconfoption}[1]{\index{#1}\emph{#1}}
index 5028d05064219ff7df1db143a88c5cc1c7a7a7c3..d712419375525520cc8b0450610e6c7b7fd19c0c 100644 (file)
 
        <xsl:strip-space elements="smbconfoption smbconfsection"/>
 
-       <xsl:template match="smbconfexample/smbconfsection|smbconfblock/smbconfsection">
+       <xsl:template match="smbconfblock/smbconfsection">
                <xsl:text>&#10;</xsl:text>
                <xsl:value-of select="."/><xsl:text>&#10;</xsl:text>
        </xsl:template>
 
-       <xsl:template match="smbconfexample/smbconfoption|smbconfblock/smbconfoption">
+       <xsl:template match="smbconfblock/smbconfoption">
                <xsl:text>      </xsl:text><xsl:value-of select="@name"/><xsl:text> = </xsl:text><xsl:value-of select="text()"/><xsl:text>&#10;</xsl:text>
        </xsl:template>
 
-       <xsl:template match="smbconfexample">
-          <listing>
-                  <xsl:call-template name="transform.id.attribute"/>
-                  <xsl:if test="title != ''">
-                          <description><xsl:value-of select="title"/></description>
-                  </xsl:if>
-                  <listingcode>
-                          <xsl:for-each select="smbconfoption|smbconfsection|smbconfcomment">
-                               <xsl:apply-templates select="."/>
-                          </xsl:for-each>
-                  </listingcode>
-               </listing>
-       </xsl:template>
-
        <xsl:template match="smbconfblock">
                <xsl:call-template name="transform.id.attribute"/>
                <listingcode>
                </figure>
        </xsl:template>
 
-       <xsl:template match="smbconfexample/smbconfcomment|smbconfblock/smbconfcomment">
+       <xsl:template match="smbconfblock/smbconfcomment">
                <xsl:text># </xsl:text><xsl:value-of select="text()"/><xsl:text>&#10;</xsl:text>
        </xsl:template>
 
-       <xsl:template match="smbconfexample/member|smbconfblock/member">
+       <xsl:template match="smbconfblock/member">
                <xsl:value-of select="text()"/><xsl:text>&#10;</xsl:text>
-               <xsl:message><xsl:text>Encountered &lt;member&gt; element inside of smbconfexample/smbconfblock!</xsl:text></xsl:message>
+               <xsl:message><xsl:text>Encountered &lt;member&gt; element inside of smbconfblock!</xsl:text></xsl:message>
        </xsl:template>
 
        <xsl:template match="filterline">