LdapClient deprecated

class LdapClient implements LdapClientInterface deprecated The LdapClient class will be removed in Symfony 4.0. You should use the Ldap class instead. Methods __construct($host = null, $port = 389, $version = 3, $useSsl = false, $useStartTls = false, $optReferrals = false, LdapInterface $ldap = null) bind(string $dn = null, string $password = null) Return a connection bound to the ldap. QueryInterface query(string $dn, string $query, array $options = array()) Queries a ldap

LdapBindAuthenticationProvider

class LdapBindAuthenticationProvider extends UserAuthenticationProvider LdapBindAuthenticationProvider authenticates a user against an LDAP server. The only way to check user credentials is to try to connect the user with its credentials to the ldap. Methods __construct(UserProviderInterface $userProvider, UserCheckerInterface $userChecker, string $providerKey, LdapInterface $ldap, string $dnString = '{username}', bool $hideUserNotFoundExceptions = true) Constructor. TokenInterface

Ldap::query()

QueryInterface query(string $dn, string $query, array $options = array()) Queries a ldap server for entries matching the given criteria. Parameters string $dn string $query array $options Return Value QueryInterface

Ldap::getEntryManager()

EntryManagerInterface getEntryManager() Return Value EntryManagerInterface

Ldap::escape()

string escape(string $subject, string $ignore = '', int $flags) Escape a string for use in an LDAP filter or DN. Parameters string $subject string $ignore int $flags Return Value string

Ldap::create()

static Ldap create(string $adapter, array $config = array()) Creates a new Ldap instance. Parameters string $adapter The adapter name array $config The adapter's configuration Return Value Ldap

Ldap::bind()

bind(string $dn = null, string $password = null) Return a connection bound to the ldap. Parameters string $dn A LDAP dn string $password A password Exceptions ConnectionException If dn / password could not be bound.

Ldap

class Ldap implements LdapInterface Methods __construct(AdapterInterface $adapter) bind(string $dn = null, string $password = null) Return a connection bound to the ldap. QueryInterface query(string $dn, string $query, array $options = array()) Queries a ldap server for entries matching the given criteria. EntryManagerInterface getEntryManager() string escape(string $subject, string $ignore = '', int $flags) Escape a string for use in an LDAP filter or DN. static L

LazyLoadingMetadataFactory::hasMetadataFor()

bool hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. Parameters mixed $value Some value Return Value bool Whether metadata can be returned for that value

LazyLoadingMetadataFactory::getMetadataFor()

MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. Parameters mixed $value Some value Return Value MetadataInterface The metadata for the value Exceptions NoSuchMetadataException If no metadata exists for the given value