Skip to content

Commit

Permalink
Adding labeled.schema
Browse files Browse the repository at this point in the history
  • Loading branch information
enspritz committed Nov 21, 2019
1 parent cfd76b6 commit 13ac40f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down
17 changes: 17 additions & 0 deletions schemas/labeled.ldif
Original file line number Diff line number Diff line change
@@ -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 )
26 changes: 26 additions & 0 deletions schemas/labeled.schema
Original file line number Diff line number Diff line change
@@ -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 )

0 comments on commit 13ac40f

Please sign in to comment.