symfony2 - BorisMorel / LdapBundle is calling connect even on non-restricted area -



symfony2 - BorisMorel / LdapBundle is calling connect even on non-restricted area -

i have integrated borismorel / ldapbundle version 2.0 symfony version 2.0.16 ^/admin area , works, there's 1 issue - ldap bundle engaged ^/api not want. api should not utilize ldap. thought adding is_authenticated_anonymously ^/api access_control alternative should help, doesn't - trying connect.

security.yml:

security: firewalls: restricted_area: pattern: ^/admin anonymous: ~ provider: ldap imag_ldap: ~ form_login: login_path: /login check_path: /login_check logout: path: /logout target: /login providers: ldap: id: imag_ldap.security.user.provider encoders: imag\ldapbundle\user\ldapuser: plaintext access_control: - { path: ^/api$, roles: is_authenticated_anonymously } - { path: ^/login, roles: is_authenticated_anonymously } # - { path: ^/, roles: is_authenticated_fully } factories: - "%kernel.root_dir%/../src/imag/ldapbundle/resources/config/security_factories.xml" imag_ldap: client: host: foo.bar.com port: 389 referrals_enabled: 0 version: 3 user: base_dn: ou=user,dc=bar,dc=com name_attribute: uid role: base_dn: ou=user,dc=bar,dc=com name_attribute: cn user_attribute: fellow member

question: how can 'turn off' ldap ^/api @ all?

symfony2

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -