From cbe66c7e622fe5e7334bb8bc15980ecea301b9a1 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 4 Oct 2024 07:46:51 +0200 Subject: [PATCH] Fix method name --- components/ldap.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ldap.rst b/components/ldap.rst index 00151ec6464..d5f6bc3fdfe 100644 --- a/components/ldap.rst +++ b/components/ldap.rst @@ -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