Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 60224 invoked from network); 30 Jun 2006 22:01:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jun 2006 22:01:15 -0000 Received: (qmail 23209 invoked by uid 500); 30 Jun 2006 22:01:14 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 23169 invoked by uid 500); 30 Jun 2006 22:01:14 -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 23160 invoked by uid 99); 30 Jun 2006 22:01:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 15:01:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 15:01:10 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3464A41034A for ; Fri, 30 Jun 2006 21:59:31 +0000 (GMT) Message-ID: <14353869.1151704771211.JavaMail.jira@brutus> Date: Fri, 30 Jun 2006 21:59:31 +0000 (GMT+00:00) From: "Anders Morken (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-963) Allow user friendly string values for security mechanism in client connection url. In-Reply-To: <2088902400.1139825724639.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-963?page=all ] Anders Morken updated DERBY-963: -------------------------------- Attachment: DERBY-963-code-v1.patch This (DERBY-963-code-v1.patch) is a first take at enabling more user friendly security mechanism names in the connection properties. Needs regression tests and doc updates to be of any value to users, though - but if someone takes a look at it and decides whether this is the right way to do it and the right place to do it that would be useful anyway. =) > Allow user friendly string values for security mechanism in client connection url. > ---------------------------------------------------------------------------------- > > Key: DERBY-963 > URL: http://issues.apache.org/jira/browse/DERBY-963 > Project: Derby > Type: Improvement > Components: Newcomer, Network Client > Versions: 10.0.2.0, 10.0.2.1, 10.0.2.2, 10.1.1.0, 10.2.0.0, 10.1.2.0, 10.1.1.1, 10.1.1.2, 10.1.2.1, 10.1.3.0, 10.1.2.2, 10.1.2.3 > Reporter: Sunitha Kambhampati > Assignee: Anders Morken > Priority: Minor > Attachments: DERBY-963-code-v1.patch > > Overview: > DRDA spec specifies the following secmec (securitymechanism) values. > USRIDONL = 4 > USRIDPWD = 3 > EUSRIDPWD = 9 > Currently in the client url, one would have to pass in the integer value for securityMechanism. e.g. > ij>connect 'testdb;securityMechanism=9;user=sa;password=p1'; > when using the datasource, the setSecurityMechanism(int) on the ClientDataSource can be used. > Constants are > ClientDataSource.CLEAR_TEXT_PASSWORD_SECURITY (0x03) > ClientDataSource.USER_ONLY_SECURITY (0x04) > ClientDataSource.ENCRYPTED_USER_AND_PASSWORD_SECURITY (0x09) > Add support in client to recognize the user friendly names for the securityMechanism attribute. The values that should be accepted are CLEAR_TEXT_PASSWORD_SECURITY, USER_ONLY_SECURITY, ENCRYPTED_USER_AND_PASSWORD_SECURITY. > -------- > To ensure that the old applications that were written to pass in an integer value for securityMechanism do not break with the new client , the client should probably support both the integer values as well as the string values. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira