8000 minor #10995 Update some articles related to user providers (javiereg… · symfony/symfony-docs@8294428 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8294428

Browse files
committed
minor #10995 Update some articles related to user providers (javiereguiluz)
This PR was squashed before being merged into the 4.2 branch (closes #10995). Discussion ---------- Update some articles related to user providers This makes the security/user_provider.rst a reference article which explains everything about all user providers (except LDAP, which is complicated). This could simplify things because allows developers to read just one article to know all the basics about user providers. If you are worried about the length of this single article ... don't worry ... the 500-line length is misleading because most of it is about `configuration-block`. Commits ------- 0af54d5 Update some articles related to user providers
2 parents 8aa9635 + 0af54d5 commit 8294428

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)
0