You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2017/07/27 07:51:00 UTC

[jira] [Resolved] (KARAF-5217) client.bat not working when passwords are encrypted

     [ https://issues.apache.org/jira/browse/KARAF-5217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-5217.
-----------------------------------------
    Resolution: Not A Problem

IMHO, it works as expected: encryption is one way, so the client can get the password if encrypted and so it prompts for the password.
An alternative is to use authentication by certificate instead of username/password.

> client.bat not working when passwords are encrypted
> ---------------------------------------------------
>
>                 Key: KARAF-5217
>                 URL: https://issues.apache.org/jira/browse/KARAF-5217
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.1.1
>            Reporter: Marko Herchet
>            Assignee: Jean-Baptiste Onofré
>
> When using the bin\client.bat without specifying a user, org.apache.karaf.client.ClientConfig determines username + password by parsing the etc\users.properties and using the first user + pw.
> When I set "encryption.enabled = false" in org.apache.karaf.jaas.cfg, my users.properties looks like this:
> {code}
> karafuser = anypw,admin
> {code}
> it works and the shell opens.
> When I set "encryption.enabled = true" in org.apache.karaf.jaas.cfg, my users.properties looks like this:
> {code}
> karafuser = {CRYPT}8FEF7493AC1C5A5EC2D1C051576DEF6B32E1D834302DC46C396F325C82214DF3{CRYPT},admin
> {code}
> I get the following LogEntry and it prompts for password
> 1094 [sshd-SshClient[1afa04c]-nio2-thread-4] TRACE org.apache.sshd.client.session.ClientSessionImpl - doHandleMessage(ClientSessionImpl[karafuser@localhost/127.0.0.1:8101]) process SSH_MSG_USERAUTH_FAILURE



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)