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>
2009-09-08 17:39:57 +04:00
<refmiscinfo class= "version" > 3.6</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
by the administrator by adding the posixAccount/posixGroup
2008-12-16 11:04:32 +03:00
classes and relative attribute/value pairs to the user and
group objects in the AD.</para>
2010-12-07 17:47:52 +03:00
<para >
Note that the idmap_ad module has changed considerably since
Samba versions 3.0 and 3.2.
Currently, the <parameter > ad</parameter> backend
does not work as the the default idmap backend, but one has
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
Please note that primary group membership is currently always calculated
via the "primaryGroupID" LDAP attribute.
2007-04-18 02:12:48 +04:00
</para> </listitem>
</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-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>