Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0CCE8200BA2 for ; Sun, 16 Oct 2016 19:50:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EDB2E160AF9; Sun, 16 Oct 2016 17:50:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 47714160AD0 for ; Sun, 16 Oct 2016 19:50:23 +0200 (CEST) Received: (qmail 6687 invoked by uid 500); 16 Oct 2016 17:50:22 -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 6667 invoked by uid 99); 16 Oct 2016 17:50:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Oct 2016 17:50:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1BE5E2C4C73 for ; Sun, 16 Oct 2016 17:50:22 +0000 (UTC) Date: Sun, 16 Oct 2016 17:50:22 +0000 (UTC) From: "Radovan Semancik (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (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 archived-at: Sun, 16 Oct 2016 17:50:24 -0000 [ https://issues.apache.org/jira/browse/DIRAPI-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Radovan Semancik resolved DIRAPI-154. ------------------------------------- Resolution: Fixed It should work. Although the schema is not read from cn=config suffix. That would be troublesome as the cn=config is not usually accessible. However OpenLDAP correctly publishes schema DN in the root DN entry and the API is using that to locate the schema definition (which is cn=subschema if I remember correctly). I have tested with several OpenLDAP versions and the schema seems to work fine. Sorry, I completely forgot to resolve this issue. It was fixed few months ago already. > 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 > Assignee: Emmanuel Lecharny > Fix For: 1.0.0-RC2 > > Attachments: loadSchema.log, openldap-schema.ldif > > > The constructor in DefaultSchemaLoader has the following comment: > {code} > // TODO Handle schema loading on other LDAP servers > {code} > For OpenLDAP this would require searching subtree under cn=schema,cn=config and handling attributes like: > {code} > 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 ) ) > {code} > 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: > {code} > 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 ) > {code} > 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 was sent by Atlassian JIRA (v6.3.4#6332)