libnfsidmap-regex(5) | File Formats Manual | libnfsidmap-regex(5) |
regex - libnfsidmap plugin using regex for mapping ids
Plugin for libnfsidmap. Uses regex to map NFSv4 names to and from ids.
The regex plugin parses NFSv4 user and groups names using regex to extract the local user or group. NFSv4 names are created by adding constant strings before and after the local user and group names.
It additionally supports an additional configuration file for static group mappings.
The configuration for the plugin is in a new [Regex] section in /etc/idmapd.conf that may contain lines of the form
variable = value
The recognized variables are as follows:
(Default: none)
(Default: none)
(Default: none)
(Default: none)
This allows one to organize the group name space in a central directory that is used for a central NFS4 server and use short group names in the local directory used in organizational units.
(Default: none)
(Default: /etc/idmapd.conf)
(Default: groups)
The Group-Map-File and Group-Map-Section variables can be used to define a section containing mappings of the form
nfs4 group = local group
The default is to have a [Groups] section in the /etc/idmapd.conf file.
For both the NFS4 and local group name the Group-Name-Prefix prefix is not applied or removed.
An example [Regex] and [Groups] section in the /etc/idmapd.conf file:
[Regex] User-Regex = ^EXAMPLE\([^@]+)@EXAMPLE.ORG$ Group-Regex = ^([^@]+)@EXAMPLE.ORG@EXAMPLE.ORG$|^EXAMPLE\([^@]+)@EXAMPLE.ORG$ Prepend-Before-User = EXAMPLE Append-After-User = @EXAMPLE.ORG #Prepend-Before-Group = Append-After-Group = @example.org@example.org Group-Name-Prefix = sales- Group-Name-No-Prefix-Regex = -group$ [Groups] domain users = users
Report bugs to <stefan.walter@inf.ethz.ch>
25 March 2020 |