Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 33828 invoked from network); 17 Aug 2005 12:18:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2005 12:18:04 -0000 Received: (qmail 14730 invoked by uid 500); 17 Aug 2005 12:18:02 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 14601 invoked by uid 500); 17 Aug 2005 12:18:02 -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 14456 invoked by uid 99); 17 Aug 2005 12:18:01 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 05:17:59 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id ECC41DF for ; Wed, 17 Aug 2005 14:17:57 +0200 (CEST) Message-ID: <622058953.1124281077968.JavaMail.jira@ajax.apache.org> Date: Wed, 17 Aug 2005 14:17:57 +0200 (CEST) From: "Stefan Zoerner (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIREVE-227) Fetching the schema fails on some LDAP clients In-Reply-To: <1168565424.1124280234195.JavaMail.jira@ajax.apache.org> 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/DIREVE-227?page=all ] Stefan Zoerner updated DIREVE-227: ---------------------------------- Attachment: RequiredAttributesForAnEntry.java This little JNDI program displays the required attributes for an objectclass including those inherited by parent classes. It uses JNDI schema fetching functionality. You may use it to confirm the problem with Apache DS I filed. For another LDAP server output for "person" looks like this (the program fetches person and top): person requires sn person requires cn top requires objectClass On Apache DS it creates an Exception (on the client), output looks like this: person requires sn person requires cn javax.naming.NameNotFoundException: top at com.sun.jndi.toolkit.dir.HierMemDirCtx.doLookup(HierMemDirCtx.java:109) at com.sun.jndi.toolkit.dir.HierMemDirCtx.getAttributes(HierMemDirCtx.java:464) at com.sun.jndi.toolkit.dir.HierMemDirCtx.getAttributes(HierMemDirCtx.java:459) at schematest.RequiredAttributesForAnEntry.main(RequiredAttributesForAnEntry.java:25) > Fetching the schema fails on some LDAP clients > ---------------------------------------------- > > Key: DIREVE-227 > URL: http://issues.apache.org/jira/browse/DIREVE-227 > Project: Directory Server > Type: Bug > Versions: 0.9.2 > Reporter: Stefan Zoerner > Assignee: Alex Karasulu > Priority: Minor > Attachments: RequiredAttributesForAnEntry.java > > Fetching the schema fails on some LDAP clients I tried. Some others are able to retrieve a subset of the schema. E.g. Softerra LDAP Adminstrator displays some object classes, some are missing (for instance top, inetOrgPerson). Therefore the creation of entries by some GUI clients may not work (e.g. if the client provides support by displaying required and optional attributes). This is especially true for Softerra. > I am not 100% sure, but I assume the problem lies in in the textual respresentation of schema elements in the schema subentry. Here is an example: > Objectclass "top" looks to client like this for Apache DS: > ( 2.5.6.0 NAME 'top' DESC 'top of the superclass chain' STRUCTURAL MUST objectClass MAY ) > and like this for another server I checked: > ( 2.5.6.0 NAME 'top' DESC 'Standard LDAP objectclass' ABSTRACT MUST objectClass X-ORIGIN 'RFC 2256' ) > I guess some tools have problems with the empty "MAY". The same is probably true for empty "MUST" parts. Therfore inetOrgPerson does not appear in Softerra, but person does (person has both MAY and MUST attributes). > The problen does not only occur in some GUI clients, but also in JNDI code, if you use the schema functionality (for many of your users this may be more critical). You find a JNDI example attached to this issue report which crashes an Apache DS but runs without problems on other solutions. Maybe the JNDI parser has the same problem with empty MUSTs and MAYs. Problem is comparable, e.g. fetching "top" causes an exception, "person" does not. > Btw.: Within the JXplorer client there are no problems. -- 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