From 13ac40fedb26cb537793825eb1e28e426d932dd0 Mon Sep 17 00:00:00 2001 From: ty Date: Thu, 21 Nov 2019 19:50:12 +0900 Subject: [PATCH] Adding labeled.schema --- README.md | 1 + schemas/labeled.ldif | 17 +++++++++++++++++ schemas/labeled.schema | 26 ++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 schemas/labeled.ldif create mode 100644 schemas/labeled.schema diff --git a/README.md b/README.md index bbfb277..11005f1 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ See the individual schema files for explanations and examples. +- [`labeled.schema`](schemas/labeled.schema): Add arbitrary labels to LDAP records. - [`mailAliasList.schema`](schemas/mailAliasList.schema): Manage mail alias lists in LDAP. Enable MTAs like Exim and Postfix to source forwarding addresses in LDAP for mails received on mail aliases. diff --git a/schemas/labeled.ldif b/schemas/labeled.ldif new file mode 100644 index 0000000..486586e --- /dev/null +++ b/schemas/labeled.ldif @@ -0,0 +1,17 @@ +# Copyright Vivid Inc. Released under the terms of the Apache 2.0 license. +# +# See `labeled.schema' for details. +# +# To add this schema to OpenLDAP using its dynamic runtime configuration +# engine "olc" introduced in version OpenLDAP 2.3: +# +# slapadd -n 0 -l labeled.ldif + +dn: cn=labeled,cn=schema,cn=config +objectClass: olcSchemaConfig +cn: labeled +olcAttributeTypes: {0}( 1.3.6.1.4.1.54908.1.2.1 NAME 'label' DESC 'Free-form + label' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYN + TAX 1.3.6.1.4.1.1466.115.121.1.26{256} ) +olcObjectClasses: {0}( 1.3.6.1.4.1.54908.1.2.2 NAME 'labeled' DESC 'Arbitrar + y labeling of record objects' SUP top STRUCTURAL MAY label ) diff --git a/schemas/labeled.schema b/schemas/labeled.schema new file mode 100644 index 0000000..84e7172 --- /dev/null +++ b/schemas/labeled.schema @@ -0,0 +1,26 @@ +# Copyright Vivid Inc. Released under the terms of the Apache 2.0 license. +# +# LDAP schema defining a label structural object and its corresponding attribute. +# Useful for adding ad-hoc, free-form labels to records without semantic limitation. +# An example LDAP record utilizing the `labeled' structural object class: +# +# |-- objectClass: labeled +# ... +# label: X3-working-group +# label: tentative +# +# Changelog: +# 20191120 +# - Formally organized under Vivid's IANA PEN 1.3.6.1.4.1.54908. +# - Released as Open Source under the terms of the Apache 2.0 license. + +attributetype ( 1.3.6.1.4.1.54908.1.2.1 NAME 'label' + DESC 'Free-form label' + EQUALITY caseIgnoreIA5Match + SUBSTR caseIgnoreIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} ) + +objectclass ( 1.3.6.1.4.1.54908.1.2.2 NAME 'labeled' + DESC 'Arbitrary labeling of record objects' + SUP top STRUCTURAL + MAY label )