Dreamscapes/Ldap/Core/Ldap.php
public function bind($bindDn = null, $bindPassword = null)
    {
        @ldap_bind($this->resource, $bindDn, $bindPassword);
        $this->verifyOperation();

        return $this;
    }
public function bind($bindDn = null, $bindPassword = null)
    {
        @ldap_bind($this->resource, $bindDn, $bindPassword);
        $this->verifyOperation();

        return $this;
    }
Bind to LDAP directory

@param  string $bindDn       Username for the bind
@param  string $bindPassword Password for the username
@return self