'DN is malformed', ); /** * Defined by Zend_Validate_Interface. * * Returns true if and only if $value is a valid DN. * * @param string $value The value to be validated. * * @return boolean */ public function isValid($value) { $valid = Zend_Ldap_Dn::checkDn($value); if ($valid === false) { $this->_error(self::MALFORMED); return false; } return true; } }