81cb79b10a
* Moved connection logic to dedicated class * Added support for Ldap result entries iterator and renamed LdapClient to Ldap * Added support for multiple adapters * Attempt anonymous bind if the connection is not bound beforehand * Finalized API * Updated the Security component to use v3.1 of the Ldap component * Updated unit tests * Added support for functional tests * Updated README file
34 lines
743 B
PHP
34 lines
743 B
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;
|
|
|
|
/**
|
|
* @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 DN and password.
|
|
*
|
|
* @param string $dn The user's DN
|
|
* @param string $password The associated password
|
|
*/
|
|
public function bind($dn = null, $password = null);
|
|
}
|