Skip to content
Advertisement

Symfony 3.4 – The service “SymfonyComponentLdapLdap” has a dependency on a non-existent service “SymfonyComponentLdapAdapterExtLdapAdapter”

Edit: My issue was resolved, see at the bottom of the post.

i’ve been trying to connect to a LDAP with Symfony 3.4 and i’m having quite troubles here.

i’ve setup my services.yml and security.yml following the documentation at https://symfony.com/doc/3.4/components/ldap.html and https://symfony.com/doc/3.4/security/ldap.html and also https://symfony.com/doc/3.4/reference/configuration/security.html

Here is my services.yaml

JavaScript

And here is my security.yaml

JavaScript

I don’t know why the dependency isn’t found. I’ve checked the Ldap package with composer and everything was there. What am i missing ?

Thanks by advance for any clue or answer.

Edit: I managed to resolved my error. My service.yaml syntax was wrong i used:

JavaScript

Where it should’ve been:

JavaScript

The tabulation for the second service was baddly made.

Advertisement

Answer

Syntax of services.yaml was wrong: one indentation was misplaced

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement