Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 14780 invoked from network); 3 Aug 2006 05:47:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2006 05:47:50 -0000 Received: (qmail 70811 invoked by uid 500); 3 Aug 2006 05:47:50 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 70769 invoked by uid 500); 3 Aug 2006 05:47:49 -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 70757 invoked by uid 99); 3 Aug 2006 05:47:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 22:47:49 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 22:47:48 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CCC5341000D for ; Thu, 3 Aug 2006 05:45:14 +0000 (GMT) Message-ID: <4488104.1154583914836.JavaMail.jira@brutus> Date: Wed, 2 Aug 2006 22:45:14 -0700 (PDT) From: "Alex Karasulu (JIRA)" To: dev@directory.apache.org Subject: [jira] Closed: (DIRSERVER-632) If one tries to connect with an illegal LDAP protocol version, no error occurs In-Reply-To: <5563212.1149503132798.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRSERVER-632?page=all ] Alex Karasulu closed DIRSERVER-632. ----------------------------------- Fix Version/s: 1.1.0 1.0-RC4 Resolution: Fixed Fixed. Had to move decision making code up from codec into the BindHandler. > If one tries to connect with an illegal LDAP protocol version, no error occurs > ------------------------------------------------------------------------------ > > Key: DIRSERVER-632 > URL: http://issues.apache.org/jira/browse/DIRSERVER-632 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.0-RC3 > Environment: Sun ONE Directory SDK for Java 4.1 > ApacheDS 1.0 RC 3 > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05) > Microsoft Windows XP version 5.1 Service Pack 1 > Reporter: Stefan Zoerner > Assigned To: Alex Karasulu > Priority: Minor > Fix For: 1.1.0, 1.0-RC4 > > Attachments: DIRSERVER-632.log, IllegalLDAPVersionBindTest.java > > > If one tries to connect to an LDAP server with a wrong version number (e.g. 4 instead of 2 or 3), it is expected that a protocol error occurs. See RFC 2251, 4.2.3, "Bind Response" for details. > This is not the case with ApacheDS, the client seems to hang instead, if you use version=4. > Unfortunately, I was not able to create this situation with JNDI, because its LDAP Provider does not allow this operation. You can specify the version via environment (key "java.naming.ldap.version", but for an illegal value it throws an exception on the client side and does not seem to call the server at all. > Therefore I have created a JUnit test case with Sun ONE Directory SDK for Java. Netscape SDK (now Mozilla SDK, http://www.mozilla.org/directory/), will probably do as well. Please let me know, if you have any problem to reproduce the problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira