protected function _rebind($write) { if ($write) { $this->_ldap->bind($this->_params['writedn'], $this->_params['writepw']); } else { $this->_ldap->bind(); } }