Skip to content

Fix non-existing Ldap::find() method #8274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions components/ldap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,11 @@ using the following options:
``version``
The version of the LDAP protocol to use

``useSsl``
Whether or not to secure the connection using SSL
``encryption``
The encryption protocol : ``ssl``, ``tls`` or ``none`` (default)

``useStartTls``
Whether or not to secure the connection using StartTLS

``optReferrals``
Specifies whether to automatically follow referrals
returned by the LDAP server
``options``
LDAP server's options as defined in :class:`ConnectionOptions <Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\ConnectionOptions>`

For example, to connect to a start-TLS secured LDAP server::

Expand Down Expand Up @@ -73,10 +69,10 @@ distinguished name (DN) and the password of a user::

Once bound (or if you enabled anonymous authentication on your
LDAP server), you may query the LDAP server using the
:method:`Symfony\\Component\\Ldap\\Ldap::find` method::
:method:`Symfony\\Component\\Ldap\\Ldap::query` method::

// ...

$ldap->find('dc=symfony,dc=com', '(&(objectclass=person)(ou=Maintainers))');
$ldap->query('dc=symfony,dc=com', '(&(objectclass=person)(ou=Maintainers))');

.. _Packagist: https://packagist.org/packages/symfony/ldap