## ## schema file for OpenLDAP 2.0.x ## Schema for storing laboratory computer information in LDAP ## OIDs are owned by the ICT Department of HKIVE(TY). ## ## 1.3.6.1.4.1.11400.2.1.x - attributetypes ## 1.3.6.1.4.1.11400.2.2.x - objectclasses ## ## Author: Mak Suet Yiu # The idea is that you use the computer class together with these standard # objectClasses from core.schema: # objectclass ( 2.5.6.14 NAME 'device' SUP top STRUCTURAL # MUST cn # MAY ( serialNumber $ seeAlso $ owner $ ou $ o $ l $ description ) ) # and these from nis.schema: # objectclass ( 1.3.6.1.1.1.2.11 NAME 'ieee802Device' SUP top AUXILIARY # DESC 'A device with a MAC address; device SHOULD be # used as a structural class' # MAY macAddress ) # Use the following two object classes if and only if it is important # that the computer has a fixed IP address, not one dynamically assigned. # objectclass ( 1.3.6.1.1.1.2.6 NAME 'ipHost' SUP top AUXILIARY # DESC 'Abstraction of a host, an IP device. The distinguished # value of the cn attribute denotes the host"s canonical # name. Device SHOULD be used as a structural class' # MUST ( cn $ ipHostNumber ) # MAY ( l $ description $ manager ) ) # objectclass ( 1.3.6.1.1.1.2.7 NAME 'ipNetwork' SUP top STRUCTURAL # DESC 'Abstraction of a network. The distinguished value of # the cn attribute denotes the network"s canonical name' # MUST ( cn $ ipNetworkNumber ) # MAY ( ipNetmaskNumber $ l $ description $ manager ) ) # attributetype ( 1.3.6.1.1.1.1.19 NAME 'ipHostNumber' # DESC 'IP address as a dotted decimal, eg. 192.168.1.1, omitting # leading zeros' # EQUALITY caseIgnoreIA5Match # SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} ) attributetype ( 1.3.6.1.4.1.11400.2.1.106 NAME 'supplierName' DESC 'Supplier name' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.11400.2.1.107 NAME 'supplierPhone' DESC 'The supplier contact phone number' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) attributetype ( 1.3.6.1.4.1.11400.2.1.108 NAME 'receivedDate' DESC 'The received date of the computer' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.11400.2.1.110 NAME 'hdCapacity' DESC 'Hard disk capacity' EQUALITY numericStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 ) attributetype ( 1.3.6.1.4.1.11400.2.1.111 NAME 'memSize' DESC 'Memory size' EQUALITY numericStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.11400.2.1.112 NAME 'cpuSpeed' DESC 'CPU speed' EQUALITY numericStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 ) attributetype ( 1.3.6.1.4.1.11400.2.1.113 NAME 'monitor' DESC 'The monitor model' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.11400.2.1.114 NAME 'software' DESC 'The main software packages installed' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) attributetype ( 1.3.6.1.4.1.11400.2.1.115 NAME 'nicModel' DESC 'The model of network interface card' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) attributetype ( 1.3.6.1.4.1.11400.2.1.116 NAME 'os' DESC 'The operating system installed' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) # attributetype ( 1.3.6.1.4.1.11400.2.1.117 NAME 'fixedIP' # DESC 'The IP address of the computer, only if it is fixed; if # not present, the IP can be assigned dynamically by DHCP. # If present, it is probably a server.' # EQUALITY caseIgnoreMatch # SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) objectclass ( 1.3.6.1.4.1.11400.2.2.101 NAME 'computer' SUP top AUXILIARY DESC 'A computer in a laboratory; device SHOULD be used as a structural class' MAY ( suppliername $ supplierphone $ receiveddate $ hdCapacity $ memSize $ cpuSpeed $ monitor $ software $ nicModel $ os ) )