Skip to content

Commit 1b7cc05

Browse files
committed
minor #11454 [Ldap] minor: better query string docs (Simperfit)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #11454). Discussion ---------- [Ldap] minor: better query string docs <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> see symfony/symfony#26316 (comment) Commits ------- 0dfb46f [Ldap] minor: better query string docs
2 parents 2a01088 + 0dfb46f commit 1b7cc05

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

security/ldap.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,11 @@ providers with different ``base_dn``. The value of this option must be a valid
313313
search string (e.g. ``uid="{username}"``). The placeholder value will be
314314
replaced by the actual username.
315315

316-
When this option is used, ``dn_string`` has to be updated accordingly. Following
317-
the previous example, if your users have the following two DN:
316+
When this option is used, ``query_string`` will search in the DN specified by ``dn_string``
317+
and the DN resulted of the ``query_string`` will be used to authenticate the user with
318+
their password. Following the previous example, if your users have the following two DN:
318319
``dc=companyA,dc=example,dc=com`` and ``dc=companyB,dc=example,dc=com``, then
319-
``dn_string`` should be ``dc=example,dc=com``. If the ``query_string`` option is
320-
``uid="{username}"``, then the authentication provider can authenticate users
321-
from both DN.
320+
``dn_string`` should be ``dc=example,dc=com``.
322321

323322
Bear in mind that usernames must be unique across both DN, as the authentication
324323
provider won't be able to select the correct user for the bind process if more

0 commit comments

Comments
 (0)