|
1 | | -parameters: |
2 | | - # Alias to values Mapbender ACL assignment machinery evaluates |
3 | | - ## for fom.ldap_user_identities_provider |
4 | | - ldap_user_base_dn: '%ldap.user.baseDN%' |
5 | | - ldap_user_name_attribute: '%ldap.user.nameAttribute%' |
6 | | - ldap_user_filter: '%ldap.user.adminFilter%' |
7 | | - ## for fom.ldap_client |
8 | | - ldap_host: '%ldap.host%' |
9 | | - ldap_port: '%ldap.port%' |
10 | | - ldap_version: '%ldap.version%' |
11 | | - ldap_bind_dn: '%ldap.bind.dn%' |
12 | | - ldap_bind_pwd: '%ldap.bind.pwd%' |
| 1 | +services: |
| 2 | + Symfony\Component\Ldap\Ldap: |
| 3 | + arguments: ['@Symfony\Component\Ldap\Adapter\ExtLdap\Adapter'] |
| 4 | + tags: |
| 5 | + - ldap |
13 | 6 |
|
14 | | -# Fix bad parameter case baseDN (expected) vs baseDn (from bad example config in README.md) |
15 | | -# parameter names are now case sensitive |
16 | | - ldap.user.baseDN: '%ldap.user.baseDn%' |
17 | | - ldap.group.baseDN: '%ldap.group.baseDn%' |
18 | | - ldap.group.id: cn |
19 | | - ldap.group.role_prefix: ROLE_GROUP_ |
| 7 | + Symfony\Component\Ldap\Adapter\ExtLdap\Adapter: |
| 8 | + arguments: |
| 9 | + - host: '%ldap.host%' |
| 10 | + - port: '%ldap.port%' |
| 11 | + - encryption: '%ldap.encryption' |
| 12 | + - options: |
| 13 | + protocol_version: '%ldap.version' |
| 14 | + referrals: false |
20 | 15 |
|
21 | | -services: |
22 | | - ldapClient: |
23 | | - class: Mapbender\LDAPBundle\Component\LdapClient |
| 16 | + mapbender.ldap.client: |
| 17 | + class: Mapbender\LDAPBundle\Security\LdapClient |
24 | 18 | arguments: |
25 | | - - '%ldap.host%' #Address to LDAPServer |
26 | | - - '%ldap.port%' #Port where LDAPServer is listening |
27 | | - - '%ldap.version%' #LDAP Protocol version |
28 | | - - '%ldap.useSSL%' # SSL #Use SSL |
29 | | - - '%ldap.useTLS%' # TLS 'Use TLS |
| 19 | + - '%ldap.host%' |
| 20 | + - '%ldap.port%' |
| 21 | + - '%ldap.version%' |
| 22 | + - '%ldap.encryption%' |
30 | 23 | - '%ldap.bind.dn%' |
31 | 24 | - '%ldap.bind.pwd%' |
32 | | - LDAPUserProvider: |
33 | | - class: Mapbender\LDAPBundle\Security\Provider\LDAPUserProvider |
| 25 | + |
| 26 | + mapbender.ldap.user_provider: |
| 27 | + class: Mapbender\LDAPBundle\Security\LdapUserProvider |
34 | 28 | arguments: |
35 | | - - '@ldapClient' |
36 | | - - '@mbldap.group_identities_provider' |
37 | | - - '%ldap.user.baseDN%' |
| 29 | + - '@mapbender.ldap.client' |
| 30 | + - '%ldap.user.baseDn%' |
38 | 31 | - '%ldap.user.query%' |
39 | | - - [ROLE_USER] |
40 | | - mbldap.group_identities_provider: |
41 | | - class: Mapbender\LDAPBundle\Security\Provider\LDAPGroupProvider |
42 | | - arguments: |
43 | | - - '@fom.ldap_client' |
44 | | - - '%ldap.group.baseDN%' |
45 | | - - '%ldap.group.id%' |
46 | | - - '%ldap.group.adminFilter%' |
| 32 | + - '%ldap.user.groupKey%' |
| 33 | + - '%ldap.group.baseDn%' |
47 | 34 | - '%ldap.group.query%' |
48 | | - - '%ldap.group.role_prefix%' |
49 | | - fom.ldap_client: |
50 | | - alias: ldapClient |
51 | | - fom.identities.provider: |
52 | | - class: Mapbender\LDAPBundle\Security\Provider\LDAPIdentitiesProvider |
| 35 | + - '%ldap.group.id%' |
| 36 | + - '%ldap.group.defaultRoles%' |
| 37 | + |
| 38 | + mapbender.ldap.authenticator: |
| 39 | + class: Mapbender\LDAPBundle\Security\MapbenderLdapAuthenticator |
| 40 | + arguments: |
| 41 | + - '@security.authenticator.form_login.secured_area' |
| 42 | + - '@mapbender.ldap.client' |
| 43 | + - '%ldap.user.baseDn%' |
| 44 | + - '%ldap.user.query%' |
| 45 | + |
| 46 | + ldap.security.subject_domain.user: |
| 47 | + class: Mapbender\LDAPBundle\Security\Permission\SubjectDomainLdapUser |
| 48 | + tags: |
| 49 | + - fom.security.subject_domain |
| 50 | + arguments: |
| 51 | + - '@mapbender.ldap.client' |
| 52 | + - '%ldap.user.baseDn%' |
| 53 | + - '%ldap.user.adminQuery%' |
| 54 | + - '%ldap.user.id%' |
| 55 | + - '%ldap.user.commonName%' |
| 56 | + |
| 57 | + ldap.security.subject_domain.group: |
| 58 | + class: Mapbender\LDAPBundle\Security\Permission\SubjectDomainLdapGroup |
| 59 | + tags: |
| 60 | + - fom.security.subject_domain |
53 | 61 | arguments: |
54 | | - - '@doctrine' |
55 | | - - '@fom.ldap_user_identities_provider' |
56 | | - - '@mbldap.group_identities_provider' |
57 | | - - '%fom.user_entity%' |
| 62 | + - '@mapbender.ldap.client' |
| 63 | + - '%ldap.group.baseDn%' |
| 64 | + - '%ldap.group.adminQuery%' |
| 65 | + - '%ldap.group.id%' |
| 66 | + - '%ldap.group.commonName%' |
0 commit comments