#
# Copyright (c) 2010-2013 Evolveum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#
# This is an example of custom LDAP schema based on the "piracy" example
# from http://storm.alert.sk/soft/schema2ldif/piracy/
# It is used to test custom attributes (<extention>)
#
# This schema definition is supposed to be used with ldapmodify
#

dn: cn=schema
changetype: modify
add: attributeTypes
attributeTypes: ( 1.3.6.1.4.1.23611.3.1.2.1 NAME 'piracyShipName' DESC 'The name of thar vessel' EQUALITY caseExactMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15  X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.23611.3.1.2.2 NAME 'piracyStatus' DESC 'Current whereabouts of a pirate.' EQUALITY caseExactIA5Match SINGLE-VALUE SYNTAX 1.3.6.1.4.1.1466.115.121.1.26  X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.23611.3.1.2.3 NAME 'piracyScarNumber' DESC 'The number of pirates scars.' EQUALITY integerMatch ORDERING integerOrderingMatch SINGLE-VALUE SYNTAX 1.3.6.1.4.1.1466.115.121.1.27  X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.23611.3.1.2.4 NAME 'piracyCaptainship' DESC 'Whether the pirate honors himself with a capitain title.' SINGLE-VALUE SUP name  X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.23611.3.1.2.5 NAME 'piracyEnrollmentTimestamp' DESC 'Piratical enrollment date' EQUALITY generalizedTimeMatch ORDERING generalizedTimeOrderingMatch SINGLE-VALUE SYNTAX 1.3.6.1.4.1.1466.115.121.1.24  X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.23611.3.1.2.6 NAME 'piracyTreasureSecret' DESC 'A secret code that a pirate keeps for tharself.' EQUALITY octetStringMatch SINGLE-VALUE SYNTAX 1.3.6.1.4.1.1466.115.121.1.40  X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.23611.3.1.2.7 NAME 'piracyNickname' DESC 'Piratical nickname' SUP name  X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.23611.3.1.2.8 NAME 'piracyBestWeapon' DESC 'Pirates best weapon' SUP name  X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.23611.3.1.2.9 NAME 'piracyQuote' DESC 'Pirates most infamous quote' SINGLE-VALUE SUP name  X-ORIGIN 'user defined' )
attributeTypes: ( 1.3.6.1.4.1.23611.3.1.2.10 NAME 'piracyDrink' DESC 'Pirates best drink' SUP name  X-ORIGIN 'user defined' )
-
add: objectClasses
objectClasses: ( 1.3.6.1.4.1.23611.3.1.1.1 NAME 'piracyPerson' DESC 'Piratical person. A pirate. Mighty pirate.' SUP inetOrgPerson STRUCTURAL MAY ( piracyShipName $ piracyStatus $ piracyScarNumber $ piracyCaptainship $ piracyEnrollmentTimestamp $ piracyTreasureSecret $ piracyNickname $ piracyBestWeapon $ piracyQuote $ piracyDrink )  X-ORIGIN 'user defined' )
