Merge commit 'release-4-0-0alpha15' into master4-tmp
[amitay/samba.git] / docs-xml / manpages-3 / idmap_ad.8.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="idmap_ad.8">
4
5 <refmeta>
6         <refentrytitle>idmap_ad</refentrytitle>
7         <manvolnum>8</manvolnum>
8         <refmiscinfo class="source">Samba</refmiscinfo>
9         <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10         <refmiscinfo class="version">3.6</refmiscinfo>
11 </refmeta>
12
13
14 <refnamediv>
15         <refname>idmap_ad</refname>
16         <refpurpose>Samba's idmap_ad Backend for Winbind</refpurpose>
17 </refnamediv>
18
19 <refsynopsisdiv>
20         <title>DESCRIPTION</title>
21         <para>The idmap_ad plugin provides a way for Winbind to read
22         id mappings from an AD server that uses RFC2307/SFU schema
23         extensions. This module implements only the &quot;idmap&quot;
24         API, and is READONLY. Mappings must be provided in advance
25         by the administrator by adding the posixAccount/posixGroup
26         classes and relative attribute/value pairs to the user and
27         group objects in the AD.</para>
28
29         <para>
30         Note that the idmap_ad module has changed considerably since
31         Samba versions 3.0 and 3.2.
32         Currently, the <parameter>ad</parameter> backend
33         does not work as the the default idmap backend, but one has
34         to configure it separately for each domain for which one wants
35         to use it, using disjoint ranges. One usually needs to configure
36         a writeable default idmap range, using for example the
37         <parameter>tdb</parameter> or <parameter>ldap</parameter>
38         backend, in order to be able to map the BUILTIN sids and
39         possibly other trusted domains. The writeable default config
40         is also needed in order to be able to create group mappings.
41         This catch-all default idmap configuration should have a range
42         that is disjoint from any explicitly configured domain with
43         idmap backend <parameter>ad</parameter>. See the example below.
44         </para>
45 </refsynopsisdiv>
46
47 <refsect1>
48         <title>IDMAP OPTIONS</title>
49
50         <variablelist>
51                 <varlistentry>
52                 <term>range = low - high</term>
53                 <listitem><para>
54                         Defines the available matching UID and GID range for which the
55                         backend is authoritative. Note that the range acts as a filter.
56                         If specified any UID or GID stored in AD that fall outside the
57                         range is ignored and the corresponding map is discarded.
58                         It is intended as a way to avoid accidental UID/GID overlaps
59                         between local and remotely defined IDs.
60                 </para></listitem>
61                 </varlistentry>
62                 <varlistentry>
63                 <term>schema_mode = &lt;rfc2307 | sfu &gt;</term>
64                 <listitem><para>
65                         Defines the schema that idmap_ad should use when querying
66                         Active Directory regarding user and group information.
67                         This can be either the RFC2307 schema support included
68                         in Windows 2003 R2 or the Service for Unix (SFU) schema.
69                 </para></listitem>
70                 </varlistentry>
71         </variablelist>
72 </refsect1>
73
74 <refsect1>
75         <title>EXAMPLES</title>
76         <para>
77         The following example shows how to retrieve idmappings from our principal and
78         trusted AD domains. If trusted domains are present id conflicts must be
79         resolved beforehand, there is no
80         guarantee on the order conflicting mappings would be resolved at this point.
81
82         This example also shows how to leave a small non conflicting range for local
83         id allocation that may be used in internal backends like BUILTIN.
84         </para>
85
86         <programlisting>
87         [global]
88         idmap config * : backend = tdb
89         idmap config * : range = 1000000-1999999
90
91         idmap config CORP : backend  = ad
92         idmap config CORP : range = 1000-999999
93         </programlisting>
94 </refsect1>
95
96 <refsect1>
97         <title>AUTHOR</title>
98
99         <para>
100         The original Samba software and related utilities
101         were created by Andrew Tridgell. Samba is now developed
102         by the Samba Team as an Open Source project similar
103         to the way the Linux kernel is developed.
104         </para>
105 </refsect1>
106
107 </refentry>