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())

Parameters

array $config

__destruct()

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.

Parameters

string $dn The user's DN
string $password The associated password

resource getResource()

Returns a link resource.

Return Value

resource

setOption($name, $value)

Parameters

$name
$value

getOption($name)

Parameters

$name

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Ldap/Adapter/ExtLdap/Connection.html