Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 689F3D257 for ; Wed, 10 Oct 2012 13:39:04 +0000 (UTC) Received: (qmail 66657 invoked by uid 500); 10 Oct 2012 13:39:04 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 66476 invoked by uid 500); 10 Oct 2012 13:39:04 -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 66464 invoked by uid 99); 10 Oct 2012 13:39:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 13:39:04 +0000 Date: Wed, 10 Oct 2012 13:39:03 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: <1766716562.19661.1349876344001.JavaMail.jiratomcat@arcas> In-Reply-To: <630835557.16354.1334215107301.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (KARAF-1354) SSH Log-In failes with "Authentication failed" with valid credentials MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-1354?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1347= 3223#comment-13473223 ]=20 Jean-Baptiste Onofr=C3=A9 commented on KARAF-1354: --------------------------------------------- Log level changed on trunk: http://svn.apache.org/viewvc?view=3Drevision&re= vision=3D1396594 =20 > SSH Log-In failes with "Authentication failed" with valid credentials > --------------------------------------------------------------------- > > Key: KARAF-1354 > URL: https://issues.apache.org/jira/browse/KARAF-1354 > Project: Karaf > Issue Type: Bug > Components: karaf-shell > Environment: Windows 7 > Reporter: Lukas Roedl > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 2.3.0, 3.0.0 > > Attachments: KarafJaasPasswordAuthenticator.java_20120412.patch > > > The login via SSH fails using valid credentials due to a bug in the role = checking procedure. > Error message "Authentication failed" > Log entries in karaf: > [INFO ] ServerSession - Session created... > [INFO ] ServerSession - Client version string: SSH-2.0-PuTTY_KiTTY > [DEBUG] ServerSession - Received packet SSH_MSG_KEXINIT > [INFO ] ServerSession - Received SSH_MSG_KEXINIT > [DEBUG] ServerSession - Received packet SSH_MSG_KEXDH_INIT > [INFO ] AbstractDHGServer - Received SSH_MSG_KEXDH_INIT > ... > [INFO ] AbstractDHGServer - Send SSH_MSG_KEXDH_REPLY > [INFO ] AbstractSession - Send SSH_MSG_NEWKEYS > [DEBUG] ServerSession - Received packet SSH_MSG_NEWKEYS > [INFO ] ServerSession - Received SSH_MSG_NEWKEYS > [DEBUG] ServerSession - Received packet SSH_MSG_IGNORE > [INFO ] ServerSession - Received SSH_MSG_IGNORE > [DEBUG] ServerSession - Received packet SSH_MSG_SERVICE_REQUEST > [INFO ] ServerSession - Received SSH_MSG_SERVICE_REQUEST 'ssh-userauth' > [INFO ] ServerSession - Accepting user authentication request > [INFO ] ServerSession - Authorized authentication methods: password,publi= ckey > [DEBUG] ServerSession - Received packet SSH_MSG_IGNORE > [INFO ] ServerSession - Received SSH_MSG_IGNORE > [DEBUG] ServerSession - Received packet SSH_MSG_USERAUTH_REQUEST > [INFO ] ServerSession - Received SSH_MSG_USERAUTH_REQUEST > [INFO ] ServerSession - Authenticating user 'karaf' with method 'none' > [INFO ] ServerSession - Unsupported authentication method 'none' > [DEBUG] ServerSession - Received packet SSH_MSG_IGNORE > [INFO ] ServerSession - Received SSH_MSG_IGNORE > [DEBUG] ServerSession - Received packet SSH_MSG_USERAUTH_REQUEST > [INFO ] ServerSession - Received SSH_MSG_USERAUTH_REQUEST > [INFO ] ServerSession - Authenticating user 'karaf' with method 'password= ' > [DEBUG] KarafJaasPasswordAuthenticator - User authentication failed with = User does not have the required role admin > javax.security.auth.login.FailedLoginException: User does not have the re= quired role admin > at org.apache.karaf.shell.ssh.KarafJaasPasswordAuthenticator.auth= enticate(KarafJaasPasswordAuthenticator.ja > va:104)[65:org.apache.karaf.shell.ssh:3.0.0.SNAPSHOT] > at org.apache.sshd.server.auth.UserAuthPassword.checkPassword(Use= rAuthPassword.java:55)[64:sshd-core:0.6.0] > at org.apache.sshd.server.auth.UserAuthPassword.auth(UserAuthPass= word.java:49)[64:sshd-core:0.6.0] > at org.apache.sshd.server.session.ServerSession.userAuth(ServerSe= ssion.java:388)[64:sshd-core:0.6.0] > at org.apache.sshd.server.session.ServerSession.handleMessage(Ser= verSession.java:201)[64:sshd-core:0.6.0] > at org.apache.sshd.common.session.AbstractSession.decode(Abstract= Session.java:538)[64:sshd-core:0.6.0] > at org.apache.sshd.common.session.AbstractSession.messageReceived= (AbstractSession.java:232)[64:sshd-core:0. > 6.0] > at org.apache.sshd.common.AbstractSessionIoHandler.messageReceive= d(AbstractSessionIoHandler.java:58)[64:ssh > d-core:0.6.0] > at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilt= er.messageReceived(DefaultIoFilterChain.ja > va:716)[63:org.apache.mina.core:2.0.4] > at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNext= MessageReceived(DefaultIoFilterChain.java: > 434)[63:org.apache.mina.core:2.0.4] > at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1= 200(DefaultIoFilterChain.java:46)[63:org.a > pache.mina.core:2.0.4] > at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImp= l$1.messageReceived(DefaultIoFilterChain.j > ava:796)[63:org.apache.mina.core:2.0.4] > at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceiv= ed(IoFilterAdapter.java:119)[63:org.apache > .mina.core:2.0.4] > at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNext= MessageReceived(DefaultIoFilterChain.java: > 434)[63:org.apache.mina.core:2.0.4] > at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMess= ageReceived(DefaultIoFilterChain.java:426) > [63:org.apache.mina.core:2.0.4] > at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(A= bstractPollingIoProcessor.java:715)[63:org > .apache.mina.core:2.0.4] > at org.apache.mina.core.polling.AbstractPollingIoProcessor.proces= s(AbstractPollingIoProcessor.java:668)[63: > org.apache.mina.core:2.0.4] > at org.apache.mina.core.polling.AbstractPollingIoProcessor.proces= s(AbstractPollingIoProcessor.java:657)[63: > org.apache.mina.core:2.0.4] > at org.apache.mina.core.polling.AbstractPollingIoProcessor.access= $600(AbstractPollingIoProcessor.java:68)[6 > 3:org.apache.mina.core:2.0.4] > at org.apache.mina.core.polling.AbstractPollingIoProcessor$Proces= sor.run(AbstractPollingIoProcessor.java:11 > 41)[63:org.apache.mina.core:2.0.4] > at org.apache.mina.util.NamePreservingRunnable.run(NamePreserving= Runnable.java:64)[63:org.apache.mina.core: > 2.0.4] > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadP= oolExecutor.java:886)[:1.6.0_29] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:908)[:1.6.0_29] > at java.lang.Thread.run(Thread.java:662)[:1.6.0_29] > [INFO ] ServerSession - Authentication failed > [DEBUG] ServerSession - Received packet SSH_MSG_IGNORE > [INFO ] ServerSession - Received SSH_MSG_IGNORE -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira