title: Symfony 2 Security.yml redirect loop and LogicException issues
body: <p>OK I think I need hand holding..</p>
  
  <p>This question is a follow on from the previous question:
  <a href="https://stackoverflow.com/questions/16153125/symfony2-img-ldapbundle-bad-credentials-error">Symfony2 img/LdapBundle Bad credentials error</a></p>
  
  <p>I have split this out as its a different issue. I am getting two different issues relating to the security.yml file as described below.</p>
  
  <p>I have my security.yml:</p>
  
  <pre><code>security:
      firewalls:
          login_firewall:
              pattern:    ^/login$
              anonymous:  ~
              imag_ldap:
                  check_path: login_check
                  login_path: login
                  csrf_provider: form.csrf_provider
                  intention: authenticate
                  provider: ldap
              logout:
                  path:           /logout
                  target:         /
          restricted_area:
              pattern:          ^/
              #anonymous:        ~ 
      providers:
          ldap:
             id: imag_ldap.security.user.provider
  
      encoders:
          IMAG\LdapBundle\User\LdapUser: plaintext
  
      access_control:
          - { path: ^/login,          roles: IS_AUTHENTICATED_ANONYMOUSLY }
          - { path: ^/,               roles: IS_AUTHENTICATED_FULLY }
  </code></pre>
  
  <p>but im getting the following error:
  <code>LogicException: No authentication listener registered for firewall "restricted_area".</code></p>
  
  <p>SO i tried the following:</p>
  
  <pre><code>security:
      firewalls:
          login_firewall:
              pattern:    ^/login$
              anonymous:  ~
              imag_ldap:
                  check_path: login_check
                  login_path: login
                  csrf_provider: form.csrf_provider
                  intention: authenticate
                  provider: ldap
              logout:
                  path:           /logout
                  target:         /
          restricted_area:
              pattern:          ^/
              #anonymous:        ~ 
              imag_ldap:
                  check_path: login_check
                  login_path: login
                  csrf_provider: form.csrf_provider
                  intention: authenticate
                  provider: ldap
              logout:
                  path:           /logout
                  target:         /
  </code></pre>
  
  <p>but this causes a redirect loop. </p>
  
  <p>Can anyone show me how to get this to work? I am trying to use the <a href="https://github.com/BorisMorel/LdapBundle" rel="nofollow noreferrer">https://github.com/BorisMorel/LdapBundle</a> ldap bundle to authenticate users..</p>