Skip to content

Commit eff209c

Browse files
committed
Update some articles related to user providers
1 parent f5832b2 commit eff209c

File tree

4 files changed

+377
-229
lines changed

4 files changed

+377
-229
lines changed

_build/redirection_map

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,3 +408,4 @@
408408
/profiler/matchers /profiler
409409
/profiler/profiling_data /profiler
410410
/profiler/wdt_follow_ajax /profiler
411+
/security/entity_provider /security/user_provider

reference/configuration/security.rst

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -234,29 +234,10 @@ statically using the ``dn_string`` config option.
234234
User provider
235235
~~~~~~~~~~~~~
236236

237-
Users will still be fetched from the configured user provider. If you
238-
wish to fetch your users from a LDAP server, you will need to use the
239-
``ldap`` user provider, in addition to one of the three authentication
240-
providers (``form_login_ldap`` or ``http_basic_ldap`` or ``json-login-ldap``).
241-
242-
.. configuration-block::
243-
244-
.. code-block:: yaml
245-
246-
# config/packages/security.yaml
247-
security:
248-
# ...
249-
250-
providers:
251-
my_ldap_users:
252-
ldap:
253-
service: ldap
254-
base_dn: 'dc=symfony,dc=com'
255-
search_dn: '%ldap.search_dn%'
256-
search_password: '%ldap.search_password%'
257-
default_roles: ''
258-
uid_key: 'uid'
259-
filter: '(&({uid_key}={username})(objectclass=person)(ou=Users))'
237+
Users will still be fetched from the configured user provider. If you wish to
238+
fetch your users from a LDAP server, you will need to use the
239+
:doc:`LDAP User Provider </security/ldap>` and any of these authentication
240+
providers: ``form_login_ldap`` or ``http_basic_ldap`` or ``json_login_ldap``.
260241

261242
Using the PBKDF2 Encoder: Security and Speed
262243
--------------------------------------------

security/entity_provider.rst

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)