Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 28509 invoked from network); 11 Oct 2007 02:25:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2007 02:25:18 -0000 Received: (qmail 44088 invoked by uid 500); 11 Oct 2007 02:25:05 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 44063 invoked by uid 500); 11 Oct 2007 02:25:05 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 44054 invoked by uid 99); 11 Oct 2007 02:25:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 19:25:05 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of blacknight1982@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 02:25:09 +0000 Received: by py-out-1112.google.com with SMTP id u77so770469pyb for ; Wed, 10 Oct 2007 19:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=N62v0kwekPO8T9O66bAzzLOBQAa9TlTK6lam+SRuVis=; b=BG7zrah7HUsMJyAUJGL8e/OL8io5IGcANqPv2hjZ2lYlTcM1AXP1neMgLGdvLk0tXWecZEjQjJa9qsXvbcBN/p64U2EGn1eL23G2tujcklmct1qNWgqflzGHQ9rDC/wFXsqFNMN/Lv8m7N+2j7p8SRYffRhHaSCPIT2GR+LTn0k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ufKE+mcY0JQGdnl7DVnELI9Wnv/OB0vCphxWu88UKwbmA6f5lrDJhpmHRJJnByl3wcLmO0INzSEXbj4JWy0itr9Txx/o6CRn9n7BOmzfI0oXxJKO0E0vy435iyJ8G9BLGB+bzq7EavbAKyKnzrXi/0OIfj88+GlAL+pcXh8O1r0= Received: by 10.65.114.11 with SMTP id r11mr2881510qbm.1192069488297; Wed, 10 Oct 2007 19:24:48 -0700 (PDT) Received: by 10.64.242.11 with HTTP; Wed, 10 Oct 2007 19:24:48 -0700 (PDT) Message-ID: Date: Thu, 11 Oct 2007 10:24:48 +0800 From: "John Liu" To: dev@harmony.apache.org Subject: [class][auth]Krb5LoginModule does not work MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_62183_3741005.1192069488288" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_62183_3741005.1192069488288 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all: I found that Krb5LoginModule does not work. Here is an example: First, I set a Kerberos V5 server for this test and add a principal "example@EXAMPLE.COM" with password "1111111". Then I ran next segment of code: Krb5LoginModule krb5Login = new Krb5LoginModule(); Map options = new HashMap(); options.put("principal", "example@EXAMPLE.COM"); Subject subject = new Subject(); krb5Login.initialize(subject, new TextCallbackHandler(), null, options); krb5Login.login(); krb5Login.commit(); with following vm arguments: -Djava.security.krb5.realm=EXAMPLE.COM -Djava.security.krb5.kdc=:88 -Djavax.security.auth.useSubjectCredsOnly=false The exception was thrown as follows: javax.security.auth.login.LoginException at org.apache.harmony.auth.module.Krb5LoginModule.login( Krb5LoginModule.java:141) at org.apache.harmony.auth.jgss.kerberos.test.TestForKerberosLoginModule.main( TestForKerberosLoginModule.java:31) Caused by: org.apache.harmony.auth.internal.kerberos.v5.KerberosException: Error code: 6 at org.apache.harmony.auth.internal.kerberos.v5.KrbClient.doAS( KrbClient.java:157) at org.apache.harmony.auth.module.Krb5LoginModule.login( Krb5LoginModule.java:96) ... 1 more I've reported it on jira HARMONY-4921. Is there anyone familar with it could help to have a look at it? Thanks, John ------=_Part_62183_3741005.1192069488288--