Connect and bind to LDAP.
public connect ( string | null $username = null, string | null $password = null, boolean $anonymous = false, string | null $server = null ) | ||
$username | string | null | The username to connect with. If not specified, the one in the config is used. |
$password | string | null | The password for the username. |
$anonymous | boolean | Whether this is an attempt to bind anonymously, ignoring the username and password. |
$server | string | null | The server to connect to. If not specified, the server(s) in the config are used. |