source: branches/samba-3.5.x/docs/manpages/idmap_tdb2.8

Last change on this file was 773, checked in by Herwig Bauernfeind, 12 years ago

Samba Server 3.5: Update branch to 3.5.20

File size: 3.6 KB
Line 
1'\" t
2.\" Title: idmap_tdb2
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 12/14/2012
6.\" Manual: System Administration tools
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "IDMAP_TDB2" "8" "12/14/2012" "Samba 3\&.5" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22idmap_tdb2 \- Samba\'s idmap_tdb2 Backend for Winbind
23.SH "DESCRIPTION"
24.PP
25The idmap_tdb2 plugin is a substitute for the default idmap_tdb backend used by winbindd for storing SID/uid/gid mapping tables in clustered environments with Samba and CTDB\&.
26.PP
27In contrast to read only backends like idmap_rid, it is an allocating backend: This means that it needs to allocate new user and group IDs in order to create new mappings\&. The allocator can be provided by the idmap_tdb2 backend itself or by any other allocating backend like idmap_tdb or idmap_ldap\&. This is configured with the parameter
28\fIidmap alloc backend\fR\&.
29.PP
30Note that in order for this (or any other allocating) backend to function at all, the default backend needs to be writeable\&. The ranges used for uid and gid allocation are the default ranges configured by "idmap uid" and "idmap gid"\&.
31.PP
32Furthermore, since there is only one global allocating backend responsible for all domains using writeable idmap backends, any explicitly configured domain with idmap backend tdb2 should have the same range as the default range, since it needs to use the global uid / gid allocator\&. See the example below\&.
33.SH "IDMAP OPTIONS"
34.PP
35range = low \- high
36.RS 4
37Defines the available matching uid and gid range for which the backend is authoritative\&. If the parameter is absent, Winbind fails over to use the "idmap uid" and "idmap gid" options from smb\&.conf\&.
38.RE
39.SH "IDMAP SCRIPT"
40.PP
41The tdb2 idmap backend supports a script for performing id mappings through the smb\&.conf option
42\fIidmap : script\fR\&. The script should accept the following command line options\&.
43.sp
44.if n \{\
45.RS 4
46.\}
47.nf
48 SIDTOID S\-1\-xxxx
49 IDTOSID UID xxxx
50 IDTOSID GID xxxx
51
52.fi
53.if n \{\
54.RE
55.\}
56.PP
57And it should return one of the following responses as a single line of text\&.
58.sp
59.if n \{\
60.RS 4
61.\}
62.nf
63 UID:yyyy
64 GID:yyyy
65 SID:yyyy
66 ERR:yyyy
67
68.fi
69.if n \{\
70.RE
71.\}
72.PP
73Note that the script should cover the complete range of SIDs that can be passed in for SID to Unix ID mapping, since otherwise SIDs unmapped by the script might get mapped to IDs that had previously been mapped by the script\&.
74.SH "EXAMPLES"
75.PP
76This example shows how tdb2 is used as a the default idmap backend\&. It configures the idmap range through the global options for all domains encountered\&. This same range is used for uid/gid allocation\&.
77.sp
78.if n \{\
79.RS 4
80.\}
81.nf
82 [global]
83 idmap backend = tdb2
84 idmap uid = 1000000\-2000000
85 idmap gid = 1000000\-2000000
86
87.fi
88.if n \{\
89.RE
90.\}
91.SH "AUTHOR"
92.PP
93The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
Note: See TracBrowser for help on using the repository browser.