Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.
This repository was archived by the owner on May 17, 2021. It is now read-only.

Try using fos_userbundle and fr3d_ldapbundle #163

@lilworks

Description

@lilworks

I'm trying to get chain provider working. Here my security.yml. I'm on synfony 4.3

`security:

encoders:
        AppBundle\Entity\LdapUser: plaintext
        FOS\UserBundle\Model\UserInterface: plaintext
providers:
        chain_provider:
            chain:
               providers: [fos_userbundle, fr3d_ldapbundle]
        fr3d_ldapbundle:
            id: fr3d_ldap.security.user.provider
        fos_userbundle:
            id: fos_user.user_provider.username

firewalls:
    dev:
        pattern: ^/(_(profiler|wdt)|css|images|js)/
        security: false
    main:
        logout_on_user_change: true

        pattern:    ^/
        fr3d_ldap: ~
        form_login:
            provider: chain_provider

`

but I get this error
Not configuring explicitly the provider for the "fr3d_ldap" listener on "main" firewall is ambiguous as there is more than one registered provider.

Note that I have the same config which is working on SF3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions