docs: Bump version up to 4.7.
[samba.git] / docs-xml / manpages / 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">4.7</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 uidNumber attributes for
26         users and gidNumber attributes for groups in the AD. Winbind
27         will only map users that have a uidNumber and whose primary
28         group have a gidNumber attribute set. It is however
29         recommended that all groups in use have gidNumber attributes
30         assigned, otherwise they are not working.</para>
31
32         <para>
33         Currently, the <parameter>ad</parameter> backend
34         does not work as the default idmap backend, but one has
35         to configure it separately for each domain for which one wants
36         to use it, using disjoint ranges. One usually needs to configure
37         a writeable default idmap range, using for example the
38         <parameter>tdb</parameter> or <parameter>ldap</parameter>
39         backend, in order to be able to map the BUILTIN sids and
40         possibly other trusted domains. The writeable default config
41         is also needed in order to be able to create group mappings.
42         This catch-all default idmap configuration should have a range
43         that is disjoint from any explicitly configured domain with
44         idmap backend <parameter>ad</parameter>. See the example below.
45         </para>
46 </refsynopsisdiv>
47
48 <refsect1>
49         <title>IDMAP OPTIONS</title>
50
51         <variablelist>
52                 <varlistentry>
53                 <term>range = low - high</term>
54                 <listitem><para>
55                         Defines the available matching UID and GID range for which the
56                         backend is authoritative. Note that the range acts as a filter.
57                         If specified any UID or GID stored in AD that fall outside the
58                         range is ignored and the corresponding map is discarded.
59                         It is intended as a way to avoid accidental UID/GID overlaps
60                         between local and remotely defined IDs.
61                 </para></listitem>
62                 </varlistentry>
63                 <varlistentry>
64                 <term>schema_mode = &lt;rfc2307 | sfu | sfu20&gt;</term>
65                 <listitem><para>
66                         Defines the schema that idmap_ad should use when querying
67                         Active Directory regarding user and group information.
68                         This can be either the RFC2307 schema support included
69                         in Windows 2003 R2 or the Service for Unix (SFU) schema.
70                         For SFU 3.0 or 3.5 please choose "sfu", for SFU 2.0
71                         please choose "sfu20".
72
73                         Please note that primary group membership is currently always calculated
74                         via the "primaryGroupID" LDAP attribute.
75                 </para></listitem>
76                 </varlistentry>
77                 <varlistentry>
78                 <term>unix_primary_group = yes/no</term>
79                 <listitem><para>
80                   Defines whether to retrieve the user's primary group
81                   from the SFU attributes.
82                 </para></listitem>
83                 </varlistentry>
84                 <varlistentry>
85                 <term>unix_nss_info = yes/no</term>
86                 <listitem><para>
87                   Defines whether to retrieve the login shell and
88                   home directory from the SFU attributes.
89                 </para></listitem>
90                 </varlistentry>
91         </variablelist>
92 </refsect1>
93
94 <refsect1>
95         <title>EXAMPLES</title>
96         <para>
97         The following example shows how to retrieve idmappings from our principal and
98         trusted AD domains. If trusted domains are present id conflicts must be
99         resolved beforehand, there is no
100         guarantee on the order conflicting mappings would be resolved at this point.
101
102         This example also shows how to leave a small non conflicting range for local
103         id allocation that may be used in internal backends like BUILTIN.
104         </para>
105
106         <programlisting>
107         [global]
108         workgroup = CORP
109
110         idmap config * : backend = tdb
111         idmap config * : range = 1000000-1999999
112
113         idmap config CORP : backend  = ad
114         idmap config CORP : range = 1000-999999
115         </programlisting>
116 </refsect1>
117
118 <refsect1>
119         <title>AUTHOR</title>
120
121         <para>
122         The original Samba software and related utilities
123         were created by Andrew Tridgell. Samba is now developed
124         by the Samba Team as an Open Source project similar
125         to the way the Linux kernel is developed.
126         </para>
127 </refsect1>
128
129 </refentry>