With symfony 2.5
Hello, i have a problem with my app.
For a symfony version 2.5, what can i use to have a ldap connection ? Moreover, I try to associate FOSUserBundle to it.
So i configure my app with LdapUserProvider in your doc "Using a custom user manager with LDAP authentication".
I follow it, i also add general configuration with that in my config.yml /******************************************************************************
Configuration LDAP
imag_ldap: client: host: host.org port: 389 username: myReader # Optional password: MDP # Optional user: base_dn: ou=one, dc=two, dc=three name_attribute: uid user_class: MDP\UserBundle\Entity\User ******************************************************************************/
i configure services.xml like that : /******************************************************************************
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
my security.yml /******************************************************************************* security: encoders: MDP\UserBundle\Entity\User: plaintext
providers:
multiples:
chain:
providers: [ldap, fos_userbundle]
ldap:
id: imag_ldap.security.user.provider
fos_userbundle:
id: fos_user.user_provider.username
firewalls:
dev:
pattern: ^/(_(profiler|wdt))/
security: false
main:
pattern: .*
form_login:
provider: multiples
csrf_provider: form.csrf_provider
login_path: fos_user_security_login
check_path: fos_user_security_check
default_target_path: /
use_forward: false
remember_me: true
logout: true
anonymous: true
switch_user: true
secured_area:
pattern: ^/
anonymous: ~
imag_ldap:
provider: multiples
logout:
path: logout
imag_ldap: client: host: MDP.siege port: 389 username: myReader# Optional password: MDP # Optional
user: base_dn: ou=one, dc=two, dc=three name_attribute: uid role: base_dn: ou=one, dc=two, dc=three name_attribute: cn user_attribute: member user_id: username ****************************************************************************/
and add it in my config.yml with a link.
I do too my LdapUserProvider.php
One particulary, i must remove method ->doPass() because she doesn't exist ... What i do wrong ?
do you have a solution please ?
Hy,
I need to evolve to support Symfony 2.5.