You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/05/20 03:07:12 UTC

[jira] [Commented] (KARAF-4520) Add DigestPasswordLoginModule so PasswordDigest can work with Karaf JAAS realm

    [ https://issues.apache.org/jira/browse/KARAF-4520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292614#comment-15292614 ] 

ASF subversion and git services commented on KARAF-4520:
--------------------------------------------------------

Commit a833dc15dd4c36de3f7503afc9c01cf8b3a758e4 in karaf's branch refs/heads/master from [~ffang]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=a833dc1 ]

[KARAF-4520]Add DigestPasswordLoginModule so PasswordDigest can work with Karaf JAAS realm


> 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
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>
> 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 for 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 base64 encoded value. The way this works is that the client creates the password hash using all of this information plus the password". So the PasswordDigest would change per each invocation, so we can't simply store the passwords in a digest form in the properties file.
> The way to make it work, I think we need a DigestPasswordLoginModule which use a customized checkPassword method where can compare the stored password 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)