Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D2B8A10F68 for ; Fri, 28 Feb 2014 10:21:30 +0000 (UTC) Received: (qmail 8170 invoked by uid 500); 28 Feb 2014 10:21:21 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 8094 invoked by uid 500); 28 Feb 2014 10:21:20 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 8078 invoked by uid 99); 28 Feb 2014 10:21:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Feb 2014 10:21:20 +0000 Date: Fri, 28 Feb 2014 10:21:19 +0000 (UTC) From: "Kiran Ayyagari (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRKRB-100) Active Directory support for KdcConnection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRKRB-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13915634#comment-13915634 ] Kiran Ayyagari commented on DIRKRB-100: --------------------------------------- bq. Seems like KdcConnection chooses the first available configured enc_type... yes, this is definitely a bug, otoh, I was able to decrypt the EncKdcRepPart of received AS_REP (present in the latest pcap file containing KDC interaction using des-cbc-md5 etype). This clearly shows that the RC4 support in KdcConnection is buggy. > Active Directory support for KdcConnection > ------------------------------------------ > > Key: DIRKRB-100 > URL: https://issues.apache.org/jira/browse/DIRKRB-100 > Project: Directory Kerberos > Issue Type: Improvement > Reporter: Eirik Bjorsnos > Assignee: Emmanuel Lecharny > > I'm testing KdcConnection.getTgt() with Microsoft Active Directory. > My first test failed with AD responding with first saying KRB5KRB_ERR_PREAUTH_REQUIRED (expected), then KRB5KRB_ERR_PREAUTH_FAILED (not expected). > Since PREAUTH_FAILED is what you'll also get if your password is wrong, I enabled "Do not use pre authentication" for the account being tested and verified via kinit on OS X that no pre authentication was sent there. > When testing getTgt with no preauth, I now get the following exception: > Exception in thread "main" org.apache.directory.server.kerberos.changepwd.exceptions.ChangePasswordException: Request failed due to being malformed. > at org.apache.directory.server.kerberos.protocol.codec.KerberosDecoder.decodeEncTgsRepPart(KerberosDecoder.java:684) > at org.apache.directory.kerberos.client.KdcConnection._getTgt(KdcConnection.java:329) > at org.apache.directory.kerberos.client.KdcConnection.getTgt(KdcConnection.java:181) > at org.apache.directory.kerberos.client.KdcConnection.getTgt(KdcConnection.java:145) -- This message was sent by Atlassian JIRA (v6.1.5#6160)