Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5389B9BF1 for ; Wed, 14 Mar 2012 10:35:01 +0000 (UTC) Received: (qmail 75268 invoked by uid 500); 14 Mar 2012 10:35:01 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 75250 invoked by uid 500); 14 Mar 2012 10:35:01 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 75243 invoked by uid 99); 14 Mar 2012 10:35:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 10:35:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 10:34:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E2D591FC08 for ; Wed, 14 Mar 2012 10:34:37 +0000 (UTC) Date: Wed, 14 Mar 2012 10:34:37 +0000 (UTC) From: "Knut Anders Hatlen (Created) (JIRA)" To: derby-dev@db.apache.org Message-ID: <1776144215.12500.1331721277930.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DERBY-5651) Protocol error when connecting to db with NATIVE authentication using strong password substitution MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Protocol error when connecting to db with NATIVE authentication using strong password substitution -------------------------------------------------------------------------------------------------- Key: DERBY-5651 URL: https://issues.apache.org/jira/browse/DERBY-5651 Project: Derby Issue Type: Bug Components: Network Server, Services Affects Versions: 10.9.0.0 Reporter: Knut Anders Hatlen If you connect to a db with native authentication using strong password substitution to protect the password, you'll get a protocol error: ij(CONNECTION2)> connect 'jdbc:derby://localhost/db;user=app;password=papp;securityMechanism=8'; ERROR 08006: A network protocol error was encountered and the connection has been terminated: A PROTOCOL Data Stream Syntax Error was detected. Reason: 0x18. Plaintext connection attempt to an SSL enabled server? I don't think strong password substitution is intended to work with NATIVE, but it should probably fail more gracefully. With BUILTIN, you'll get a more helpful error message: ij(CONNECTION5)> connect 'jdbc:derby://localhost/db2;user=app;password=papp;securityMechanism=8'; ERROR 08004: DERBY SQL error: SQLCODE: -1, SQLSTATE: 08004, SQLERRMC: Connection authentication failure occurred. Either the supplied credentials were invalid, or the database uses a password encryption scheme not compatible with the strong password substitution security mechanism. If this error started after upgrade, refer to the release note for DERBY-4483 for options. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira