You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I think there is a missing parameter in the security.user.provider.ldap service in the security.xml file (vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml).
The missing parameter is the password_attribute.
<serviceid="security.user.provider.ldap"class="Symfony\Component\Security\Core\User\LdapUserProvider"abstract="true"public="false">
argument - security.ldap.ldap
argument - base dn
argument - search dn
argument - search password
argument - default_roles
argument - uid key
argument - filter
**argument - SHOULD WE ADD A NEW ARGUMENT HERE FOR THE password_attribute ?**
</service>
Because when I try to use the LDAP provider in my security.yml file, Symfony throws me the next exception :
OutOfBoundsException in Definition.php line 202: The index "7" is not in the range [0, 6].
As a temporary workaround, I override the service in my service.yml to add the password_attribute parameter and it worked.
Thanks
EDIT: The Symfony version I'm using is 3.1
The text was updated successfully, but these errors were encountered:
…ow has the correct number of arguments (csarrazi)
This PR was merged into the 3.1 branch.
Discussion
----------
[Ldap][Security] The Ldap user provider abstract service now has the correct number of arguments
| Q | A
| ------------- | ---
| Branch? | 3.1
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #18933
| License | MIT
| Doc PR | none
Commits
-------
58996ac Fixed issue with missing argument in the abstract service definition for the ldap user provider
Hi, I think there is a missing parameter in the security.user.provider.ldap service in the security.xml file (vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml).
The missing parameter is the password_attribute.
Because when I try to use the LDAP provider in my security.yml file, Symfony throws me the next exception :
As a temporary workaround, I override the service in my service.yml to add the password_attribute parameter and it worked.
Thanks
EDIT: The Symfony version I'm using is 3.1
The text was updated successfully, but these errors were encountered: