2007-03-21 23:48:00 +03:00
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
<refentry id= "idmap_ad.8" >
<refmeta >
<refentrytitle > idmap_ad</refentrytitle>
<manvolnum > 8</manvolnum>
2008-04-07 00:26:45 +04:00
<refmiscinfo class= "source" > Samba</refmiscinfo>
<refmiscinfo class= "manual" > System Administration tools</refmiscinfo>
2017-12-12 11:08:06 +03:00
<refmiscinfo class= "version" > &doc.version; </refmiscinfo>
2007-03-21 23:48:00 +03:00
</refmeta>
<refnamediv >
<refname > idmap_ad</refname>
<refpurpose > Samba's idmap_ad Backend for Winbind</refpurpose>
</refnamediv>
<refsynopsisdiv >
<title > DESCRIPTION</title>
2007-03-22 00:23:17 +03:00
<para > The idmap_ad plugin provides a way for Winbind to read
id mappings from an AD server that uses RFC2307/SFU schema
extensions. This module implements only the " idmap"
API, and is READONLY. Mappings must be provided in advance
2013-05-15 17:52:25 +04:00
by the administrator by adding the uidNumber attributes for
users and gidNumber attributes for groups in the AD. Winbind
will only map users that have a uidNumber and whose primary
group have a gidNumber attribute set. It is however
recommended that all groups in use have gidNumber attributes
assigned, otherwise they are not working.</para>
2010-12-07 17:47:52 +03:00
<para >
Currently, the <parameter > ad</parameter> backend
2013-10-14 19:42:06 +04:00
does not work as the default idmap backend, but one has
2010-12-07 17:47:52 +03:00
to configure it separately for each domain for which one wants
to use it, using disjoint ranges. One usually needs to configure
a writeable default idmap range, using for example the
2011-04-27 11:21:56 +04:00
<parameter > tdb</parameter> or <parameter > ldap</parameter>
2010-12-07 17:47:52 +03:00
backend, in order to be able to map the BUILTIN sids and
possibly other trusted domains. The writeable default config
is also needed in order to be able to create group mappings.
This catch-all default idmap configuration should have a range
that is disjoint from any explicitly configured domain with
idmap backend <parameter > ad</parameter> . See the example below.
</para>
2007-03-21 23:48:00 +03:00
</refsynopsisdiv>
<refsect1 >
<title > IDMAP OPTIONS</title>
2007-03-22 00:23:17 +03:00
<variablelist >
<varlistentry >
<term > range = low - high</term>
<listitem > <para >
2008-12-16 11:04:32 +03:00
Defines the available matching UID and GID range for which the
2007-03-22 00:23:17 +03:00
backend is authoritative. Note that the range acts as a filter.
If specified any UID or GID stored in AD that fall outside the
range is ignored and the corresponding map is discarded.
It is intended as a way to avoid accidental UID/GID overlaps
between local and remotely defined IDs.
</para> </listitem>
2007-03-22 00:45:10 +03:00
</varlistentry>
2007-04-18 02:12:48 +04:00
<varlistentry >
2011-10-19 02:19:58 +04:00
<term > schema_mode = < rfc2307 | sfu | sfu20> </term>
2007-04-18 02:12:48 +04:00
<listitem > <para >
2007-08-21 02:47:12 +04:00
Defines the schema that idmap_ad should use when querying
2007-04-18 02:38:52 +04:00
Active Directory regarding user and group information.
2008-12-16 11:04:32 +03:00
This can be either the RFC2307 schema support included
2007-04-18 02:12:48 +04:00
in Windows 2003 R2 or the Service for Unix (SFU) schema.
2011-10-19 02:19:58 +04:00
For SFU 3.0 or 3.5 please choose "sfu", for SFU 2.0
please choose "sfu20".
2011-10-19 02:31:07 +04:00
2017-01-13 09:33:01 +03:00
Please note that the behavior of primary group membership is
controlled by the <emphasis > unix_primary_group</emphasis> option.
2007-04-18 02:12:48 +04:00
</para> </listitem>
2016-12-29 13:27:58 +03:00
</varlistentry>
<varlistentry >
<term > unix_primary_group = yes/no</term>
<listitem > <para >
2017-01-13 09:33:01 +03:00
Defines whether the user's primary group is fetched from the SFU
attributes or the AD primary group. If set to
<parameter > yes</parameter> the primary group membership is fetched
from the LDAP attributes (gidNumber).
If set to <parameter > no</parameter> the primary group membership is
calculated via the "primaryGroupID" LDAP attribute.
</para>
<para > Default: no</para>
</listitem>
2016-12-29 13:27:58 +03:00
</varlistentry>
<varlistentry >
<term > unix_nss_info = yes/no</term>
<listitem > <para >
2017-01-13 09:33:01 +03:00
If set to <parameter > yes</parameter> winbind will retrieve the login
shell and home directory from the LDAP attributes. If set to
<parameter > no</parameter> the or the AD LDAP entry lacks the SFU
attributes the options <emphasis > template shell</emphasis> and
<emphasis > template homedir</emphasis> are used.
</para>
<para > Default: no</para>
</listitem>
2007-04-18 02:12:48 +04:00
</varlistentry>
2007-03-22 00:45:10 +03:00
</variablelist>
2007-03-21 23:48:00 +03:00
</refsect1>
<refsect1 >
<title > EXAMPLES</title>
2007-03-22 00:23:17 +03:00
<para >
The following example shows how to retrieve idmappings from our principal and
2010-04-13 22:06:14 +04:00
trusted AD domains. If trusted domains are present id conflicts must be
2008-12-16 13:18:45 +03:00
resolved beforehand, there is no
2007-09-12 16:16:36 +04:00
guarantee on the order conflicting mappings would be resolved at this point.
2007-03-22 00:23:17 +03:00
This example also shows how to leave a small non conflicting range for local
2007-11-27 13:11:21 +03:00
id allocation that may be used in internal backends like BUILTIN.
2007-03-22 00:23:17 +03:00
</para>
<programlisting >
[global]
2011-11-09 22:08:16 +04:00
workgroup = CORP
2011-05-31 02:26:19 +04:00
idmap config * : backend = tdb
idmap config * : range = 1000000-1999999
2007-03-22 00:23:17 +03:00
2008-07-17 16:05:57 +04:00
idmap config CORP : backend = ad
idmap config CORP : range = 1000-999999
2007-03-22 00:23:17 +03:00
</programlisting>
2007-03-21 23:48:00 +03:00
</refsect1>
<refsect1 >
<title > AUTHOR</title>
<para >
2007-08-21 02:47:12 +04:00
The original Samba software and related utilities
2007-03-21 23:48:00 +03:00
were created by Andrew Tridgell. Samba is now developed
2007-08-21 02:47:12 +04:00
by the Samba Team as an Open Source project similar
2007-03-21 23:48:00 +03:00
to the way the Linux kernel is developed.
2007-08-21 02:47:12 +04:00
</para>
2007-03-21 23:48:00 +03:00
</refsect1>
</refentry>