public function setLdap(Zend_Ldap $ldap)
    {
        $this->_ldap = $ldap;

        $this->setOptions(array($ldap->getOptions()));

        return $this;
    }
public function setLdap(Zend_Ldap $ldap)
    {
        $this->_ldap = $ldap;

        $this->setOptions(array($ldap->getOptions()));

        return $this;
    }
public function setLdap ( Zend_Ldap $ ldap ) { $ this -> _ldap = $ ldap ; $ this -> setOptions ( array ( $ ldap -> getOptions ( ) ) ) ; return $ this ; }
Set an Ldap connection

@param Zend_Ldap $ldap An existing Ldap object
@return Zend_Auth_Adapter_Ldap Provides a fluent interface
Set an Ldap connection