ConnectionOptions::getOption()

static int getOption(string $name) Fetches an option's corresponding constant value from an option name. The option name can either be in snake or camel case. Parameters string $name Return Value int Exceptions LdapException

ConnectionInterface::isBound()

bool isBound() Checks whether the connection was already bound or not. Return Value bool

ConnectionInterface::bind()

bind(string $dn = null, string $password = null) Binds the connection against a DN and password. Parameters string $dn The user's DN string $password The associated password

ConnectionInterface

interface ConnectionInterface Methods bool isBound() Checks whether the connection was already bound or not. bind(string $dn = null, string $password = null) Binds the connection against a DN and password. Details bool isBound() Checks whether the connection was already bound or not. Return Value bool bind(string $dn = null, string $password = null) Binds the connection against a DN and password.

ConnectionOptions::isOption()

static isOption($name) Parameters $name

ConnectionOptions

class ConnectionOptions A class representing the Ldap extension's options, which can be used with ldapsetoption or ldapgetoption. Constants API_INFO DEREF SIZELIMIT TIMELIMIT REFERRALS RESTART PROTOCOL_VERSION SERVER_CONTROLS CLIENT_CONTROLS API_FEATURE_INFO HOST_NAME ERROR_NUMBER ERROR_STRING MATCHED_DN DEBUG_LEVEL NETWORK_TIMEOUT X_SASL_MECH X_SASL_REALM X_SASL_AUTHCID X_SASL_AUTHZID Methods static getOpt

ConnectionOptions::getOptionName()

static getOptionName($name) Parameters $name

ConnectionException

class ConnectionException extends RuntimeException implements ExceptionInterface ConnectionException is throw if binding to ldap can not be established.

Connection

class Connection extends AbstractConnection Methods __construct(array $config = array()) from AbstractConnection __destruct() bool isBound() Checks whether the connection was already bound or not. bind(string $dn = null, string $password = null) Binds the connection against a DN and password. resource getResource() Returns a link resource. setOption($name, $value) getOption($name) Details __construct(array $config = array())

Connection::getResource()

resource getResource() Returns a link resource. Return Value resource