Skip to content

Commit

Permalink
Fix method name
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Oct 4, 2024
1 parent bdc059d commit cbe66c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/ldap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,18 @@ distinguished name (DN) and the password of a user::

When the LDAP server allows unauthenticated binds, a blank password will always be valid.

You can also use the :method:`Symfony\\Component\\Ldap\\Ldap::sasl_bind` method
You can also use the :method:`Symfony\\Component\\Ldap\\Ldap::saslBind` method
for binding to an LDAP server using `SASL`_::

// this method defines other optional arguments like $mech, $realm, $authcId, etc.
$ldap->sasl_bind($dn, $password);
$ldap->saslBind($dn, $password);

After binding to the LDAP server, you can use the :method:`Symfony\\Component\\Ldap\\Ldap::whoami`
method to get the distinguished name (DN) of the authenticated and authorized user.

.. versionadded:: 7.2

The ``sasl_bind()`` and ``whoami()`` methods were introduced in Symfony 7.2.
The ``saslBind()`` and ``whoami()`` methods were introduced in Symfony 7.2.

Once bound (or if you enabled anonymous authentication on your
LDAP server), you may query the LDAP server using the
Expand Down

0 comments on commit cbe66c7

Please sign in to comment.