######################################################################## # lechat Schema definition ######################################################################## # This file defines schema elements needed to store lechat settings in # a LDAP directory. # See http://tranquilinux.org/ # ######################################################################## # OID Macros ######################################################################## # The base OID is: objectIdentifier lechatOID 1.3.6.1.4.1.19272.2 # objectClasses are defined in the following OID branch: objectIdentifier lechatObjectClassOID lechatOID:1 # Attributes are defined in the following OID branch: objectIdentifier lechatAttributeOID lechatOID:2 # Syntax macros objectIdentifier baseSyntaxes 1.3.6.1.4.1.1466.115.121.1 objectIdentifier boolean baseSyntaxes:7 objectIdentifier IA5String baseSyntaxes:26 objectIdentifier integer baseSyntaxes:27 objectIdentifier directoryString baseSyntaxes:15 # Matching Rule macros objectIdentifier caseExactIA5Match 1.3.6.1.4.1.1466.109.114.1 objectIdentifier integerMatch 2.5.13.14 objectIdentifier booleanMatch 2.5.13.13 ######################################################################## # Attributes definition ######################################################################## attributetype ( lechatAttributeOID:1 NAME 'displayOrder' DESC 'Integer who determine the display order' EQUALITY integerMatch SYNTAX integer SINGLE-VALUE ) attributetype ( lechatAttributeOID:2 NAME 'displayWidget' DESC 'The type of the displayed widget' EQUALITY booleanMatch SYNTAX boolean SINGLE-VALUE ) attributetype ( lechatAttributeOID:3 NAME 'readonlyWidget' DESC 'True if widget is not writable' EQUALITY booleanMatch SYNTAX boolean SINGLE-VALUE ) attributetype ( lechatAttributeOID:4 NAME 'requiredObjectClass' DESC 'The LDAP objectClasses required by the module' EQUALITY caseExactIA5Match SYNTAX IA5String ) attributetype ( lechatAttributeOID:5 NAME 'relatedAttribute' DESC 'The LDAP attribute related by the widget' EQUALITY caseIgnoreMatch SYNTAX directoryString SINGLE-VALUE ) attributetype ( lechatAttributeOID:8 NAME 'widgetValidator' DESC 'The name of the widget validator' EQUALITY caseExactIA5Match SYNTAX IA5String ) attributetype ( lechatAttributeOID:9 NAME 'widgetType' DESC 'The name of the widget type' EQUALITY caseExactIA5Match SYNTAX IA5String SINGLE-VALUE ) attributetype ( lechatAttributeOID:10 NAME 'optionalParam' DESC 'Widget optional parameter' EQUALITY caseExactIA5Match SYNTAX IA5String SINGLE-VALUE ) attributetype ( lechatAttributeOID:11 NAME 'label' DESC 'The label who escort the widget' EQUALITY caseExactIA5Match SYNTAX IA5String SINGLE-VALUE ) attributetype ( lechatAttributeOID:12 NAME 'node' DESC 'A node in the GUI DIT' EQUALITY caseExactIA5Match SYNTAX IA5String SINGLE-VALUE ) attributetype ( lechatAttributeOID:13 NAME 'enabled' DESC 'Whether the object is enabled' EQUALITY booleanMatch SYNTAX boolean SINGLE-VALUE ) ###### # lechatMail attributes ###### attributetype ( lechatAttributeOID:22 NAME 'lechatMailVacation' DESC 'Whether this user is on vacation' EQUALITY booleanMatch SYNTAX boolean SINGLE-VALUE ) attributetype ( lechatAttributeOID:23 NAME 'lechatMailVacationInfo' DESC 'Mail vacation response' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) attributetype ( lechatAttributeOID:24 NAME 'lechatMailForward' DESC 'Address to forward mail to' SUP mail ) attributetype ( lechatAttributeOID:25 NAME 'lechatMailForwardOnly' DESC 'Forward mail only : do not have mailbox nor password' SUP enabled ) ###### # lechatDomain attributes ###### attributetype ( lechatAttributeOID:30 NAME 'lechatUserMainDomain' DESC 'Primary domain for user' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 SINGLE-VALUE ) ######################################################################## # objectClass definition ######################################################################## objectClass ( lechatObjectClassOID:1 NAME 'lechatNode' DESC 'A node in the GUI DIT' STRUCTURAL MUST ( node ) MAY ( requiredObjectClass $ relatedAttribute $ widgetValidator $ displayOrder $ widgetType $ optionalParam $ displayWidget $ readonlyWidget $ label ) ) objectClass ( lechatObjectClassOID:2 NAME 'lechatNodeAlias' DESC 'An alias to another GUI node in the DIT' SUP ( alias ) MUST ( node $ aliasedObjectName ) MAY ( requiredObjectClass $ relatedAttribute $ widgetValidator $ displayOrder $ widgetType $ optionalParam $ displayWidget $ readonlyWidget $ label ) ) ###### # lechatMail objectclasses ###### objectClass ( lechatObjectClassOID:3 NAME 'lechatMailAccount' DESC 'A mail account' AUXILIARY MUST ( node ) MAY ( mail $enabled $ userPassword $ mail $ cn $ sn $ lechatMailVacationInfo $ lechatMailVacation $ lechatMailForward $ lechatMailForwardOnly $ lechatUserMainDomain) ) objectClass ( lechatObjectClassOID:4 NAME 'lechatMailingList' DESC 'A mail mailman mailing list' AUXILIARY MUST ( node ) MAY ( enabled $ cn $ mail ) )