-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathREADME.mapping
46 lines (37 loc) · 1.5 KB
/
README.mapping
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
Simple Mapping Implementation
=============================
Enable simple principal transformation.
CONFIGURATION
-------------
/etc/ovirt-engine/extensions.d/mapping1.properties
ovirt.engine.extension.name = @NAME@
ovirt.engine.extension.bindings.method = jbossmodule
ovirt.engine.extension.binding.jbossmodule.module = org.ovirt.engine.extension.aaa.misc
ovirt.engine.extension.binding.jbossmodule.class = org.ovirt.engine.extension.aaa.misc.mapping.MappingExtension
ovirt.engine.extension.provides = org.ovirt.engine.api.extensions.aaa.Mapping
config.mapUser.type = regex
config.mapUser.regex.pattern = ^.*$
config.mapUser.regex.replacement = $0
config.mapUser.regex.mustMatch = false
config.mapUser.regex.case = keep
config.mapAuthRecord.type = regex
config.mapAuthRecord.regex.pattern = ^.*$
config.mapAuthRecord.regex.replacement = $0
config.mapAuthRecord.regex.mustMatch = false
mapUser happens after user submits login form.
mapAuthRecord happens before principal is fetched from directory.
case can take the value lower, upper, or keep.
@NAME@
Extension instance name.
@ARTIFACT@
PRINCIPAL
principal = request.getUserPrincipal().getName()
REMOTE_USER
principal = request.getRemoteUser()
HEADER
principal = request.getHeader(@ARTIFACT_ARG@)
ATTRIBUTE
principal = request.getAttribute(@ARTIFACT_ARG@)
Defaults do not change values.
Reference from authentication extension, using, @NAME@ is the name of the mapping extension:
ovirt.engine.aaa.authn.mapping.plugin = @NAME@