CoreFiles by mySites.guru
LdapInterface.php48 lines, 1,286 bytes, from Joomla_5.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 5.0.0-alpha1
md5
7816c47dd552f4ab6cda12f50ec2ef64
sha1
4d4abead7bc66085b4f73fb88bc043def2b29a20
sha256
b758363470296510a16cd4307e313cdc16d1240106280611911aa95a33262952
<?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
{
    public const ESCAPE_FILTER = 0x01;
    public const ESCAPE_DN = 0x02;

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

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

    public function getEntryManager(): EntryManagerInterface;

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

The same content is in 21 releases, Joomla 5.0.0-alpha2 to 5.1.0-alpha4. See them all, or every version of this file.