- md5
- 5a13ce9038af1604f26678388dd3cae6
- sha1
- 6cd95d29bce9580762b3e5bd964aa2a6b9f0a266
- sha256
- 9b6b727babe46f0959461e5c06b34cc878bcc7a3a09c65145c13a47f0b72531f
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Ldap\Adapter;
use Symfony\Component\Ldap\Exception\AlreadyExistsException;
use Symfony\Component\Ldap\Exception\ConnectionTimeoutException;
use Symfony\Component\Ldap\Exception\InvalidCredentialsException;
/**
* @author Charles Sarrazin <[email protected]>
*
* @method void saslBind(?string $dn = null, #[\SensitiveParameter] ?string $password = null, ?string $mech = null, ?string $realm = null, ?string $authcId = null, ?string $authzId = null, ?string $props = null)
* @method string whoami()
*/
interface ConnectionInterface
{
/**
* Checks whether the connection was already bound or not.
*/
public function isBound(): bool;
/**
* Binds the connection against a user's DN and password.
*
* @throws AlreadyExistsException When the connection can't be created because of an LDAP_ALREADY_EXISTS error
* @throws ConnectionTimeoutException When the connection can't be created because of an LDAP_TIMEOUT error
* @throws InvalidCredentialsException When the connection can't be created because of an LDAP_INVALID_CREDENTIALS error
*/
public function bind(?string $dn = null, #[\SensitiveParameter] ?string $password = null): void;
/*
* Binds the connection against a user's DN and password using SASL.
*
* @throws LdapException When SASL support is not available
* @throws AlreadyExistsException When the connection can't be created because of an LDAP_ALREADY_EXISTS error
* @throws ConnectionTimeoutException When the connection can't be created because of an LDAP_TIMEOUT error
* @throws InvalidCredentialsException When the connection can't be created because of an LDAP_INVALID_CREDENTIALS error
*/
// public function saslBind(?string $dn = null, #[\SensitiveParameter] ?string $password = null, ?string $mech = null, ?string $realm = null, ?string $authcId = null, ?string $authzId = null, ?string $props = null): void;
/*
* Return authenticated and authorized (for SASL) DN.
*/
// public function whoami(): string;
}
The same content is in 49 releases, Joomla 6.0.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.