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 37C75107FB for ; Wed, 21 Aug 2013 23:05:54 +0000 (UTC) Received: (qmail 1787 invoked by uid 500); 21 Aug 2013 23:05:52 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 1301 invoked by uid 500); 21 Aug 2013 23:05:52 -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 1279 invoked by uid 99); 21 Aug 2013 23:05:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 23:05:52 +0000 Date: Wed, 21 Aug 2013 23:05:52 +0000 (UTC) From: "Gerald Turner (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DIRAPI-154) Implement "online" OpenLDAP schema parsing in DefaultSchemaLoader 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/DIRAPI-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerald Turner updated DIRAPI-154: --------------------------------- Attachment: loadSchema.log Interesting! I built the project with the 'if (isApacheDs...' removed and it's now loading the schema from the OpenLDAP server. However loadSchema() throws an exception and I see a bunch of log output about duplicates and other brokeness. org.apache.directory.api.ldap.model.exception.LdapException: there are errors while loading the schema at org.apache.directory.ldap.client.api.LdapNetworkConnection.loadSchema(LdapNetworkConnection.java:3378) at org.apache.directory.ldap.client.api.LdapNetworkConnection.loadSchema(LdapNetworkConnection.java:3356) at net.xoint.usermanager.UserManagerTest.test2(UserManagerTest.java:127) > Implement "online" OpenLDAP schema parsing in DefaultSchemaLoader > ----------------------------------------------------------------- > > Key: DIRAPI-154 > URL: https://issues.apache.org/jira/browse/DIRAPI-154 > Project: Directory Client API > Issue Type: Improvement > Affects Versions: 1.0.0-M20 > Reporter: Gerald Turner > Attachments: loadSchema.log, openldap-schema.ldif > > > The constructor in DefaultSchemaLoader has the following comment: > // TODO Handle schema loading on other LDAP servers > For OpenLDAP this would require searching subtree under cn=schema,cn=config and handling attributes like: > olcAttributeTypes: {1}( 2.5.4.4 NAME ( 'sn' 'surname' ) DESC 'RFC2256: last (family) name(s) for which the entity is known by' SUP name ) > olcObjectClasses: {4}( 2.5.6.6 NAME 'person' DESC 'RFC2256: a person' SUP top STRUCTURAL MUST ( sn $ cn ) MAY ( userPassword $ telephoneNumber $ seeAlso $ description ) ) > Note that there is also an 'olcObjectIdentifier' attribute type that seems to be used to create macros for interpolation in OID's used in other attributes: > olcObjectIdentifier: OLcfg 1.3.6.1.4.1.4203.1.12.2 > olcObjectIdentifier: OLcfgAt OLcfg:3 > olcObjectIdentifier: OLcfgOvAt OLcfgAt:3 > olcObjectIdentifier: OMsyn 1.3.6.1.4.1.1466.115.121.1 > olcObjectIdentifier: OMsBoolean OMsyn:7 > olcAttributeTypes: ( OLcfgOvAt:10.4 NAME 'olcUniqueStrict' DESC 'Enforce uniqueness of null values' EQUALITY booleanMatch SYNTAX OMsBoolean SINGLE-VALUE ) > However this additional complexity seems to only be used for the internal/vendor-specific schema itself (not 'core', 'nis', etc.). > Attached is LDIF output of from searching cn=schema,cn=config. > Mailing List reference: https://mail-archives.apache.org/mod_mbox/directory-api/201308.mbox/%3CCABzFU-eOfmwiFpR1w0Fd-JhNFBVLO0NkHKa5w61ReFBEq%3DWkaw%40mail.gmail.com%3E -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira