summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man5/idmapd.conf.5
blob: 87e39bb41ab1195be4a9e971682f787ee836d04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
.\"
.\" idmapd.conf(5)
.\"
.\" COPYRIGHT (c) 2008
.\" The Regents of the University of Michigan
.\" ALL RIGHTS RESERVED
.\" 
.\" Permission is granted to use, copy, create derivative works
.\" and redistribute this software and such derivative works
.\" for any purpose, so long as the name of The University of
.\" Michigan is not used in any advertising or publicity
.\" pertaining to the use of distribution of this software
.\" without specific, written prior authorization.  If the
.\" above copyright notice or any other identification of the
.\" University of Michigan is included in any copy of any
.\" portion of this software, then the disclaimer below must
.\" also be included.
.\" 
.\" THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION
.\" FROM THE UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY
.\" PURPOSE, AND WITHOUT WARRANTY BY THE UNIVERSITY OF
.\" MICHIGAN OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
.\" WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
.\" REGENTS OF THE UNIVERSITY OF MICHIGAN SHALL NOT BE LIABLE
.\" FOR ANY DAMAGES, INCLUDING SPECIAL, INDIRECT, INCIDENTAL, OR
.\" CONSEQUENTIAL DAMAGES, WITH RESPECT TO ANY CLAIM ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OF THE SOFTWARE, EVEN
.\" IF IT HAS BEEN OR IS HEREAFTER ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGES.
.\"
.TH idmapd.conf 5 "19 Nov 2008"
.SH NAME
idmapd.conf \- configuration file for libnfsidmap
.SH SYNOPSIS
Configuration file for libnfsidmap.  Used by idmapd and svcgssd to map NFSv4 name to and from ids.
.SH DESCRIPTION
The
.B idmapd.conf
configuration file consists of several sections, initiated by strings of the
form [General] and [Mapping].  Each section may contain lines of the form
.nf
  variable = value
.fi
The recognized sections and their recognized variables are as follows:
.\"
.\" -------------------------------------------------------------------
.\" The [General] section
.\" -------------------------------------------------------------------
.\"
.SS "[General] section variables"
.nf


.fi
.TP
.B Verbosity
Verbosity level of debugging
(Default: 0)
.TP
.B Domain
The local NFSv4 domain name.  An NFSv4 domain is a namespace with
a unique username<->UID and groupname<->GID mapping.
(Default: Host's fully-qualified DNS domain name)
.TP
.B No-Strip
In multi-domain environments, some NFS servers will append the identity
management domain to the owner and owner_group in lieu of a true NFSv4
domain.  This option can facilitate lookups in such environments.  If
set to a value other than "none", the nsswitch  plugin will first pass
the name to the password/group lookup function without stripping the
domain off.  If that mapping fails then the plugin will try again using
the old method (comparing the domain in the string to the Domain value,
stripping it if it matches, and passing the resulting short name to the
lookup function).  Valid values are "user", "group", "both", and
"none".
(Default: "none")
.TP
.B Reformat-Group
Winbind has a quirk whereby doing a group lookup in UPN format
(e.g. staff@americas.example.com) will cause the group to be
displayed prefixed with the full domain in uppercase
(e.g. AMERICAS.EXAMPLE.COM\\staff) instead of in the familiar netbios
name format (e.g. AMERICAS\\staff).  Setting this option to true
causes the name to be reformatted before passing it to the group
lookup function in order to work around this.  This setting is
ignored unless No-Strip is set to either "both" or "group".
(Default: "false")
.TP
.B Local-Realms
A comma-separated list of Kerberos realm names that may be considered equivalent to the
local realm name.  For example, users juser@ORDER.EDU and juser@MAIL.ORDER.EDU
may be considered to be the same user in the specified
.B Domain.
(Default: the host's default realm name)
.br
.B Note:
If a value is specified here, the default local realm must be included as well.
.\"
.\" -------------------------------------------------------------------
.\" The [Mapping] section
.\" -------------------------------------------------------------------
.\"
.SS "[Mapping] section variables"
.nf

.fi
.TP
.B Nobody-User
Local user name to be used when a mapping cannot be completed.
.TP
.B Nobody-Group
Local group name to be used when a mapping cannot be completed.
.\"
.\" -------------------------------------------------------------------
.\" The [Translation] section
.\" -------------------------------------------------------------------
.\"
.SS "[Translation] section variables"
.nf

.fi
.TP
.B Method
A comma-separated, ordered list of mapping methods (plug-ins)
to use when mapping between NFSv4 names and local IDs.  Each
specified method is tried in order until a mapping is found,
or there are no more methods to try.  The methods included in
the default distribution include "nsswitch", "umich_ldap", and
"static".
(Default: nsswitch)
.TP
.B GSS-Methods
An optional comma-separated, ordered list of mapping methods (plug-ins)
to use when mapping between GSS Authenticated names and local IDs.
(Default: the same list as specified for
.B Method)
.\"
.\" -------------------------------------------------------------------
.\" The [Static] section
.\" -------------------------------------------------------------------
.\"
.SS "[Static] section variables"
.nf

.fi
The "static" translation method uses a static list of GSS-Authenticated
names to local user names.  Entries in the list are of the form:
.nf
 principal@REALM = localusername
.fi
.\"
.\" -------------------------------------------------------------------
.\" The [REGEX] section
.\" -------------------------------------------------------------------
.\"
.SS "[REGEX] section variables"
.nf

.fi
If the "regex" translation method is specified, the following
variables within the [REGEX] section are used to map between NFS4 names and local IDs.
.TP
.B User-Regex
Case-insensitive regular expression that extracts the local user name from an NFSv4 name. Multiple expressions may be concatenated with '|'. The first match will be used.
There is no default. A basic regular expression for domain DOMAIN.ORG and realm MY.DOMAIN.ORG would be:
.nf
^DOMAIN\\([^@]+)@MY.DOMAIN.ORG$
.fi
.TP
.B Group-Regex
Case-insensitive regular expression that extracts the local group name from an NFSv4 name. Multiple expressions may be concatenated with '|'. The first match will be used.
There is no default. A basic regular expression for domain DOMAIN.ORG and realm MY.DOMAIN.ORG would be:
.nf
^([^@]+)@DOMAIN.ORG@MY.DOMAIN.ORG$|^DOMAIN\\([^@]+)@MY.DOMAIN.ORG$
.fi
.TP
.B Prepend-Before-User
Constant string to put before a local user name when building an NFSv4 name. Usually this is the short domain name followed by '\'.
(Default: none)
.TP
.B Append-After-User
Constant string to put after a local user name when building an NFSv4 name. Usually this is '@' followed by the default realm.
(Default: none)
.TP
.B Prepend-Before-Group
Constant string to put before a local group name when building an NFSv4 name. Usually not used.
(Default: none)
.TP
.B Append-After-Group
Constant string to put before a local group name when building an NFSv4 name. Usually this is '@' followed by the domain name followed by another '@' and the default realm.
(Default: none)
.TP
.B Group-Name-Prefix
Constant string that is prepended to a local group name when converting it to an NFSv4 name. If an NFSv4 group name has this prefix it is removed when converting it to a local group name.
With this group names of a central directory can be shortened for an isolated organizational unit if all groups have a common prefix.
(Default: none)
.TP
.B Group-Name-No-Prefix-Regex
Case-insensitive regular expression to exclude groups from adding and removing the prefix set by
.BR Group-Name-Prefix .
The regular expression must match both the remote and local group names. Multiple expressions may be concatenated with '|'.
(Default: none)
.\"
.\" -------------------------------------------------------------------
.\" The [UMICH_SCHEMA] section
.\" -------------------------------------------------------------------
.\"
.SS "[UMICH_SCHEMA] section variables"
.nf

.fi
If the "umich_ldap" translation method is specified, the following
variables within the [UMICH_SCHEMA] section are used.
.TP
.B LDAP_server
LDAP server name or address
(Required if using UMICH_LDAP)
.TP
.B LDAP_base
Absolute LDAP search base.
(Required if using UMICH_LDAP)
.TP
.B LDAP_people_base
Absolute LDAP search base for people accounts.
(Default: The
.B LDAP_base
value)
.TP
.B LDAP_group_base
Absolute LDAP search base for group accounts.
(Default: The
.B LDAP_base
value)
.TP
.B LDAP_canonicalize_name
Whether or not to perform name canonicalization on the
name given as
.B LDAP_server
(Default: "true")
.TP
.B LDAP_follow_referrals
Whether or not to follow ldap referrals. (Default: "true")
.TP
.B LDAP_use_ssl
Set to "true" to enable SSL communication with the LDAP server.
(Default: "false")
.TP
.B LDAP_ca_cert
Location of a trusted CA certificate used when SSL is enabled
(Required if
.B LDAP_use_ssl
is true and
.B LDAP_tls_reqcert
is not set to never)
.TP
.B LDAP_tls_reqcert
Controls the LDAP server certificate validation behavior.
It can take the same values as ldap.conf(5)'s
.B TLS_REQCERT
tunable.
(Default: "hard")
.TP
.B LDAP_timeout_seconds
Number of seconds before timing out an LDAP request
(Default: 4)
.TP
.B LDAP_sasl_mech
SASL mechanism to be used for sasl authentication.  Required
if SASL auth is to be used (Default: None)
.TP
.B LDAP_realm
SASL realm to be used for sasl authentication. (Default: None)
.TP
.B LDAP_sasl_authcid
Authentication identity to be used for sasl authentication. (Default: None)
.TP
.B LDAP_sasl_authzid
Authorization identity to be used for sasl authentication. (Default: None)
.TP
.B LDAP_sasl_secprops
Cyrus SASL security properties. It can  the same values as ldap.conf(5)'s
sasl_secprops.
.TP
.B LDAP_sasl_canonicalize
Specifies whether the LDAP server hostname should be canonicalised.
If set to yes LDAP lib with do a reverse hostname lookup.
If this is not set the LDAP library's default will be used. (Default:
None)
.TP
.B LDAP_sasl_krb5_ccname
Path to kerberos credential cache. If it is not set then the value
of environment variable KRB5CCNAME will be used. If the environment
variable is not set then the default mechanism of kerberos library
will be used.
.TP
.B NFSv4_person_objectclass
The object class name for people accounts in your local LDAP schema
(Default: NFSv4RemotePerson)
.TP
.B NFSv4_name_attr
Your local schema's attribute name to be used for NFSv4 user names
(Default: NFSv4Name)
.TP
.B NFSv4_uid_attr
Your local schema's attribute name to be used for uidNumber
(Default: uidNumber)
.TP
.B GSS_principal_attr
Your local schema's attribute name for GSSAPI Principal names
(Default: GSSAuthName)
.TP
.B NFSv4_acctname_attr
Your local schema's attribute name to be used for account names
(Default: uid)
.TP
.B NFSv4_group_objectclass
The object class name for group accounts in your local LDAP schema
(Default: NFSv4RemoteGroup)
.TP
.B NFSv4_gid_attr
Your local schema's attribute name to be used for gidNumber
(Default: gidNumber)
.TP
.B NFSv4_group_attr
Your local schema's attribute name to be used for NFSv4 group names
(Default: NFSv4Name)
.TP
.B LDAP_use_memberof_for_groups
Some LDAP servers do a better job with indexing where searching
through all the groups searching for the user in the memberuid
list.  Others like SunOne directory that search can takes minutes
if there are thousands of groups. So setting
.B LDAP_use_memberof_for_groups
to true in the configuration file will use the memberof lists of 
the account and search through only those groups to obtain gids.
(Default: false)
.TP
.B NFSv4_member_attr
If
.B LDAP_use_memberof_for_groups
is true, this is the attribute to be searched for.
(Default: memberUid)
.TP
.B NFSv4_grouplist_filter
An optional search filter for determining group membership.
(No Default)
.\"
.\" -------------------------------------------------------------------
.\" An Example
.\" -------------------------------------------------------------------
.\"
.SH EXAMPLES
An example
.I /etc/idmapd.conf
file:
.nf


[General]

Verbosity = 0
Domain = domain.org
Local-Realms = DOMAIN.ORG,MY.DOMAIN.ORG,YOUR.DOMAIN.ORG

[Mapping]

Nobody-User = nfsnobody
Nobody-Group = nfsnobody

[Translation]

Method = umich_ldap,regex,nsswitch
GSS-Methods = umich_ldap,regex,static

[Static]

johndoe@OTHER.DOMAIN.ORG = johnny

[Regex]

User-Regex = ^DOMAIN\\([^@]+)@DOMAIN.ORG$
Group-Regex = ^([^@]+)@DOMAIN.ORG@DOMAIN.ORG$|^DOMAIN\\([^@]+)@DOMAIN.ORG$
Prepend-Before-User = DOMAIN\ 
Append-After-User = @DOMAIN.ORG
Append-After-Group = @domain.org@domain.org
Group-Name-Prefix = sales-
Group-Name-No-Prefix-Regex = -personal-group$

[UMICH_SCHEMA]

LDAP_server = ldap.domain.org
LDAP_base = dc=org,dc=domain

.fi
.\"
.\" -------------------------------------------------------------------
.\" Additional sections
.\" -------------------------------------------------------------------
.\"
.SH SEE ALSO
.BR idmapd (8)
.BR svcgssd (8)
.\".SH COMPATIBILITY
.\".SH STANDARDS
.\".SH ACKNOWLEDGEMENTS
.\".SH AUTHORS
.\".SH HISTORY
.SH BUGS
Report bugs to <nfsv4@linux-nfs.org>
.\".SH CAVEATS