Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2BFEA200B85 for ; Thu, 15 Sep 2016 18:44:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 29964160AD7; Thu, 15 Sep 2016 16:44:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 77872160ABA for ; Thu, 15 Sep 2016 18:44:21 +0200 (CEST) Received: (qmail 13174 invoked by uid 500); 15 Sep 2016 16:44:20 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 13145 invoked by uid 99); 15 Sep 2016 16:44:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2016 16:44:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7D8F32C0D5C for ; Thu, 15 Sep 2016 16:44:20 +0000 (UTC) Date: Thu, 15 Sep 2016 16:44:20 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4520) Add DigestPasswordLoginModule so PasswordDigest can work with Karaf JAAS realm MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 15 Sep 2016 16:44:22 -0000 [ https://issues.apache.org/jira/browse/KARAF-4520?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1549= 3882#comment-15493882 ]=20 ASF subversion and git services commented on KARAF-4520: -------------------------------------------------------- Commit 6740817aea494f5cbe5799bea7ded8a6ac608912 in karaf's branch refs/head= s/karaf-4.0.x from [~chris@die-schneider.net] [ https://git-wip-us.apache.org/repos/asf?p=3Dkaraf.git;h=3D6740817 ] [KARAF-4520] Inline digest handling to avoid dependency to CXF and wss4j > Add DigestPasswordLoginModule so PasswordDigest can work with Karaf JAAS= realm > -------------------------------------------------------------------------= ------ > > Key: KARAF-4520 > URL: https://issues.apache.org/jira/browse/KARAF-4520 > Project: Karaf > Issue Type: Improvement > Components: karaf-security > Reporter: Freeman Fang > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 4.1.0, 4.0.6, 4.0.7 > > > So far the assumption with JAAS login modules is that the password is to = be compared "as is". However per the ws-security spec, the PasswordDigest f= or UsernameToken is "the concatenation of the nonce plus the creation time = plus the password. The nonce is 16 bytes long and is passed along as a base= 64 encoded value. The way this works is that the client creates the passwor= d hash using all of this information plus the password". So the PasswordDig= est would change per each invocation, so we can't simply store the password= s in a digest form in the properties file. > The way to make it work, I think we need a DigestPasswordLoginModule whic= h use a customized checkPassword method where can compare the stored passwo= rd and the digest password from PasswordCallback (we may need take a close = look how this part implemented in WSS4J for digest password comparing) -- This message was sent by Atlassian JIRA (v6.3.4#6332)