CoreFiles by mySites.guru
LdapInterface.php53 lines, 1,294 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
0542325e5bccdb8d9b546426ff76fcf0
sha1
853e61319051369e8fca46aed75cf50ffab182d4
sha256
c045f6f45b0634544d2c8fcaa869bfb0912bbf05a3a740159cedf8b24cce1358
<?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;

use Symfony\Component\Ldap\Adapter\EntryManagerInterface;
use Symfony\Component\Ldap\Adapter\QueryInterface;
use Symfony\Component\Ldap\Exception\ConnectionException;

/**
 * Ldap interface.
 *
 * @author Charles Sarrazin <[email protected]>
 */
interface LdapInterface
{
    const ESCAPE_FILTER = 0x01;
    const ESCAPE_DN = 0x02;

    /**
     * Return a connection bound to the ldap.
     *
     * @throws ConnectionException if dn / password could not be bound
     */
    public function bind(string $dn = null, string $password = null);

    /**
     * Queries a ldap server for entries matching the given criteria.
     *
     * @return QueryInterface
     */
    public function query(string $dn, string $query, array $options = []);

    /**
     * @return EntryManagerInterface
     */
    public function getEntryManager();

    /**
     * Escape a string for use in an LDAP filter or DN.
     *
     * @return string
     */
    public function escape(string $subject, string $ignore = '', int $flags = 0);
}

The same content is in 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.