LdapUserProvider::supportsClass()

bool supportsClass(string $class) Whether this provider supports the given user class. Parameters string $class Return Value bool

LdapUserProvider::refreshUser()

UserInterface refreshUser(UserInterface $user) Refreshes the user for the account interface. It is up to the implementation to decide if the user data should be totally reloaded (e.g. from the database), or if the UserInterface object can just be merged into some internal array of users / identity map. Parameters UserInterface $user Return Value UserInterface Exceptions UnsupportedUserException if the account is not supported

LdapUserProvider::loadUserByUsername()

UserInterface loadUserByUsername(string $username) Loads the user for the given username. This method must throw UsernameNotFoundException if the user is not found. Parameters string $username The username Return Value UserInterface Exceptions UsernameNotFoundException if the user is not found

LdapUserProvider

class LdapUserProvider implements UserProviderInterface LdapUserProvider is a simple user provider on top of ldap. Methods __construct(LdapInterface $ldap, string $baseDn, string $searchDn = null, string $searchPassword = null, array $defaultRoles = array(), string $uidKey = 'sAMAccountName', string $filter = '({uid_key}={username})', string $passwordAttribute = null) UserInterface loadUserByUsername(string $username) Loads the user for the given username. UserInterface refres

LdapInterface::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

LdapInterface::getEntryManager()

EntryManagerInterface getEntryManager() Return Value EntryManagerInterface

LdapInterface::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

LdapInterface::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.

LdapInterface

interface LdapInterface Ldap interface. Constants ESCAPE_FILTER ESCAPE_DN Methods 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. De

LdapFactory::getKey()

getKey()