155cfb273f
* 4.4: (33 commits) [DI] fix processing of regular parameter bags by MergeExtensionConfigurationPass [FrameworkBundle] reset cache pools between requests [HttpFoundation] Accept must take the lead for Request::getPreferredFormat() [FrameworkBundle] Allow to use the BrowserKit assertions with Panther and API Platform's test client Use ConnectionRegistry instead of RegistryInterface. Fixes windows error Improving the request/response format autodetection [Messager] Simplified MessageBus::__construct() [WIP][Mailer] Overwrite envelope sender and recipients from config [Messenger] Added more test for MessageBus [Mime] Updated some PHPDoc contents [PropertyAccess] Adds entries to CHANGELOG and UPGRADE fixed typo [FrameworkBundle] Simplified some code in the DI configuration [Filesystem] added missing deprecations to UPGRADE-4.3.md [Filesystem] depreacte calling isAbsolutePath with a null Fix authentication for redis transport only decorate when an event dispatcher was passed [Messenger] Added support for auto trimming of redis streams [FrmaeworkBundle] More simplifications in the DI configuration ...
39 lines
1.2 KiB
PHP
39 lines
1.2 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* 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 <charles@sarraz.in>
|
|
*/
|
|
interface ConnectionInterface
|
|
{
|
|
/**
|
|
* Checks whether the connection was already bound or not.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function isBound();
|
|
|
|
/**
|
|
* 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, string $password = null);
|
|
}
|