docs: extend the example in the idmp_rid manpage to configure 2 domains with rid
authorMichael Adam <obnox@samba.org>
Tue, 17 Feb 2009 07:59:27 +0000 (08:59 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 17 Feb 2009 17:21:54 +0000 (18:21 +0100)
Michael

docs-xml/manpages-3/idmap_rid.8.xml

index 7e48c11c53189cfa0a29007a213344de0fa617dd..146c4b92ded84c3eb6b1b961afa074f92abdd7bd 100644 (file)
 
 <refsect1>
        <title>EXAMPLES</title>
-       <para>This example shows how to configure a domain with idmap_rid</para>
+       <para>
+               This example shows how to configure two domains with idmap_rid,
+               the principal domain and a trusted domain, leaving the default
+               id mapping scheme at tdb. The example also demonstrates the use
+               of the base_rid parameter for the trusted domain.
+       </para>
 
        <programlisting>
        [global]
+       security = domain
+       workgroup = MAIN
+
        idmap backend = tdb
        idmap uid = 1000000-1999999
        idmap gid = 1000000-1999999
 
+       idmap config MAIN : backend     = rid
+       idmap config MAIN : range       = 10000 - 49999
+
        idmap config TRUSTED : backend  = rid
        idmap config TRUSTED : range    = 50000 - 99999
+       idmap config TRUSTED : base_rid = 1000
        </programlisting>
 </refsect1>