1
1
module: LdapAttributeStore
2
2
name: LdapAttributeStore
3
3
config:
4
+
5
+ # The microservice may be configured per SP.
6
+ # The configuration key is the entityID of the SP.
7
+ # The empty key ("") specifies the default configuration
4
8
"":
5
9
ldap_url: ldaps://ldap.example.org
6
10
bind_dn: cn=admin,dc=example,dc=org
7
11
bind_password: xxxxxxxx
8
12
search_base: ou=People,dc=example,dc=org
9
- read_only : true
10
- version : 3
13
+ read_only: true
14
+ auto_bind: true
15
+ version: 3
11
16
12
- # See ldap3 client_strategies. The default
13
- # is REUSABLE.
14
- client_strategy : RESTARTABLE
15
- auto_bind : true
16
- # Specify pool size and keepalive when using
17
- # REUSABLE client strategy. Defaults are 10 and 10.
18
- #pool_size : 10
19
- # pool_keepalive : 10
17
+ ## See ldap3 client_strategies. The default is REUSABLE.
18
+ client_strategy: RESTARTABLE
19
+ ## Specify pool settings when using REUSABLE client strategy.
20
+ # pool_size: number of open connection; default: 10
21
+ pool_size: 10
22
+ # pool_keepalive: seconds to wait between calls to server to keep the
23
+ # connection alive; default : 10
24
+ pool_keepalive: 10
20
25
21
26
# Attributes to return from LDAP query.
22
27
query_return_attributes:
@@ -34,61 +39,72 @@ config:
34
39
employeeNumber: employeenumber
35
40
isMemberOf: ismemberof
36
41
37
- # Deprecated. Use query_return_attributes and
38
- # ldap_to_internal_map instead.
42
+ # Deprecated.
43
+ # Use query_return_attributes and ldap_to_internal_map instead.
44
+ # Format is LDAP attribute name: internal attribute name
39
45
search_return_attributes:
40
- # Format is LDAP attribute name : internal attribute name
41
46
sn: surname
42
47
givenName: givenname
43
48
mail: mail
44
49
employeeNumber: employeenumber
45
50
isMemberOf: ismemberof
46
- # LDAP connection pool size
47
- pool_size: 10
48
- # LDAP connection pool seconds to wait between calls out to server
49
- # to keep the connection alive (uses harmless Abandon(0) call)
50
- pool_keepalive: 10
51
+
52
+ # Ordered list of identifiers to use when constructing the search filter
53
+ # to find the user record in LDAP directory.
54
+ #
55
+ # This example searches in order for eduPersonUniqueId,
56
+ # eduPersonPrincipalName combined with SAML persistent NameID,
57
+ # eduPersonPrincipalName combined with eduPersonTargetedId,
58
+ # eduPersonPrincipalName, SAML persistent NameID, and
59
+ # eduPersonTargetedId.
51
60
ordered_identifier_candidates:
52
- # Ordered list of identifiers to use when constructing the
53
- # search filter to find the user record in LDAP directory.
54
- # This example searches in order for eduPersonUniqueId, eduPersonPrincipalName
55
- # combined with SAML persistent NameID, eduPersonPrincipalName
56
- # combined with eduPersonTargetedId, eduPersonPrincipalName,
57
- # SAML persistent NameID, and eduPersonTargetedId.
58
- - attribute_names: [epuid]
59
- - attribute_names: [eppn, name_id]
61
+ - attribute_names:
62
+ - epuid
63
+ - attribute_names:
64
+ - eppn
65
+ - name_id
60
66
name_id_format: urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
61
- - attribute_names: [eppn, edupersontargetedid]
62
- - attribute_names: [eppn]
63
- - attribute_names: [name_id]
67
+ - attribute_names:
68
+ - eppn
69
+ - edupersontargetedid
70
+ - attribute_names:
71
+ - eppn
72
+ - attribute_names:
73
+ - name_id
64
74
name_id_format: urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
65
75
add_scope: issuer_entityid
66
- - attribute_names: [edupersontargetedid]
76
+ - attribute_names:
77
+ - edupersontargetedid
67
78
add_scope: issuer_entityid
79
+
68
80
ldap_identifier_attribute: uid
81
+
69
82
# Whether to clear values for attributes incoming
70
83
# to this microservice. Default is no or false.
71
84
clear_input_attributes: no
85
+
72
86
# List of LDAP attributes to use as input to hashing to create
73
87
# NameID.
74
88
user_id_from_attrs:
75
89
- employeeNumber
90
+
76
91
# Where to redirect the browser if no record is returned
77
92
# from LDAP. The default is not to redirect.
78
93
on_ldap_search_result_empty: https://my.vo.org/please/go/enroll
79
- # Configuration may also be done per-SP with any
80
- # missing parameters taken from the default if any .
94
+
95
+ # The microservice may be configured per SP .
81
96
# The configuration key is the entityID of the SP.
82
- #
83
- # For example:
97
+ # Αny missing parameters are looked up from the default configuration.
84
98
https://sp.myserver.edu/shibboleth-sp:
85
99
search_base: ou=People,o=MyVO,dc=example,dc=org
86
100
search_return_attributes:
87
101
employeeNumber: employeenumber
88
102
ordered_identifier_candidates:
89
- - attribute_names: [eppn]
103
+ - attribute_names:
104
+ - eppn
90
105
user_id_from_attrs:
91
106
- uid
107
+
92
108
# The microservice may be configured to ignore a particular SP.
93
109
https://another.sp.myserver.edu:
94
110
ignore: true
0 commit comments