1

I'm using fr3dLdapBundle with fosUserBundle.

Symfony - version=v2.0.9
fosUserBundle - version=1.2.0

I have done everything as typed in the installation documents. But I catch one error.

ErrorException: Notice: Undefined offset: 0 in ...\vendor\bundles\FR3D\LdapBundle\Ldap\LdapManager.php line 27

Can you give me advice on what to do?

j0k
  • 22,600
  • 28
  • 79
  • 90

1 Answers1

1

The Ldap field for identify a single entry is not the default value setted or is not the first in the config.

At config.yml

attributes:
       - { ldap_attr: uid,  user_method: setUsername }

Means uid will be the Ldap Attribute used for identify a user by his username in the login form.

This entry must match with your Ldap Attribute and must be the first in the list after attributes

Maks3w
  • 6,014
  • 6
  • 37
  • 42