Skip to content

Commit e7c585c

Browse files
committed
Format and cleanup example
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 96c9cfe commit e7c585c

File tree

1 file changed

+51
-35
lines changed

1 file changed

+51
-35
lines changed
Lines changed: 51 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
module: LdapAttributeStore
22
name: LdapAttributeStore
33
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
48
"":
59
ldap_url: ldaps://ldap.example.org
610
bind_dn: cn=admin,dc=example,dc=org
711
bind_password: xxxxxxxx
812
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
1116

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
2025

2126
# Attributes to return from LDAP query.
2227
query_return_attributes:
@@ -34,61 +39,72 @@ config:
3439
employeeNumber: employeenumber
3540
isMemberOf: ismemberof
3641

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
3945
search_return_attributes:
40-
# Format is LDAP attribute name : internal attribute name
4146
sn: surname
4247
givenName: givenname
4348
mail: mail
4449
employeeNumber: employeenumber
4550
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.
5160
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
6066
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
6474
name_id_format: urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
6575
add_scope: issuer_entityid
66-
- attribute_names: [edupersontargetedid]
76+
- attribute_names:
77+
- edupersontargetedid
6778
add_scope: issuer_entityid
79+
6880
ldap_identifier_attribute: uid
81+
6982
# Whether to clear values for attributes incoming
7083
# to this microservice. Default is no or false.
7184
clear_input_attributes: no
85+
7286
# List of LDAP attributes to use as input to hashing to create
7387
# NameID.
7488
user_id_from_attrs:
7589
- employeeNumber
90+
7691
# Where to redirect the browser if no record is returned
7792
# from LDAP. The default is not to redirect.
7893
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.
8196
# The configuration key is the entityID of the SP.
82-
#
83-
# For example:
97+
# Αny missing parameters are looked up from the default configuration.
8498
https://sp.myserver.edu/shibboleth-sp:
8599
search_base: ou=People,o=MyVO,dc=example,dc=org
86100
search_return_attributes:
87101
employeeNumber: employeenumber
88102
ordered_identifier_candidates:
89-
- attribute_names: [eppn]
103+
- attribute_names:
104+
- eppn
90105
user_id_from_attrs:
91106
- uid
107+
92108
# The microservice may be configured to ignore a particular SP.
93109
https://another.sp.myserver.edu:
94110
ignore: true

0 commit comments

Comments
 (0)