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:08:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16102823#comment-16102823 ] 

Jean-Baptiste Onofré commented on KARAF-5217:
---------------------------------------------

I think all environment (Linux/Windows) should be affected. Let me try.

> 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é
>             Fix For: 4.2.0, 4.1.2
>
>
> 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)