]> git.sur5r.net Git - openldap/blob - servers/slapd/schema/nis.schema
Sync with HEAD
[openldap] / servers / slapd / schema / nis.schema
1 # $OpenLDAP$
2 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
3 ##
4 ## Copyright 1998-2005 The OpenLDAP Foundation.
5 ## All rights reserved.
6 ##
7 ## Redistribution and use in source and binary forms, with or without
8 ## modification, are permitted only as authorized by the OpenLDAP
9 ## Public License.
10 ##
11 ## A copy of this license is available in the file LICENSE in the
12 ## top-level directory of the distribution or, alternatively, at
13 ## <http://www.OpenLDAP.org/license.html>.
14
15 # Definitions from RFC2307 (Experimental)
16 #       An Approach for Using LDAP as a Network Information Service
17
18 # Depends upon core.schema and cosine.schema
19
20 # Note: The definitions in RFC2307 are given in syntaxes closely related
21 # to those in RFC2252, however, some liberties are taken that are not
22 # supported by RFC2252.  This file has been written following RFC2252
23 # strictly.
24
25 # OID Base is iso(1) org(3) dod(6) internet(1) directory(1) nisSchema(1).
26 # i.e. nisSchema in RFC2307 is 1.3.6.1.1.1
27 #
28 # Syntaxes are under 1.3.6.1.1.1.0 (two new syntaxes are defined)
29 #       validaters for these syntaxes are incomplete, they only
30 #       implement printable string validation (which is good as the
31 #       common use of these syntaxes violates the specification).
32 # Attribute types are under 1.3.6.1.1.1.1
33 # Object classes are under 1.3.6.1.1.1.2
34
35 # Attribute Type Definitions
36
37 attributetype ( 1.3.6.1.1.1.1.0 NAME 'uidNumber'
38         DESC 'An integer uniquely identifying a user in an administrative domain'
39         EQUALITY integerMatch
40         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
41
42 attributetype ( 1.3.6.1.1.1.1.1 NAME 'gidNumber'
43         DESC 'An integer uniquely identifying a group in an administrative domain'
44         EQUALITY integerMatch
45         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
46
47 attributetype ( 1.3.6.1.1.1.1.2 NAME 'gecos'
48         DESC 'The GECOS field; the common name'
49         EQUALITY caseIgnoreIA5Match
50         SUBSTR caseIgnoreIA5SubstringsMatch
51         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
52
53 attributetype ( 1.3.6.1.1.1.1.3 NAME 'homeDirectory'
54         DESC 'The absolute path to the home directory'
55         EQUALITY caseExactIA5Match
56         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
57
58 attributetype ( 1.3.6.1.1.1.1.4 NAME 'loginShell'
59         DESC 'The path to the login shell'
60         EQUALITY caseExactIA5Match
61         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
62
63 attributetype ( 1.3.6.1.1.1.1.5 NAME 'shadowLastChange'
64         EQUALITY integerMatch
65         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
66
67 attributetype ( 1.3.6.1.1.1.1.6 NAME 'shadowMin'
68         EQUALITY integerMatch
69         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
70
71 attributetype ( 1.3.6.1.1.1.1.7 NAME 'shadowMax'
72         EQUALITY integerMatch
73         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
74
75 attributetype ( 1.3.6.1.1.1.1.8 NAME 'shadowWarning'
76         EQUALITY integerMatch
77         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
78
79 attributetype ( 1.3.6.1.1.1.1.9 NAME 'shadowInactive'
80         EQUALITY integerMatch
81         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
82
83 attributetype ( 1.3.6.1.1.1.1.10 NAME 'shadowExpire'
84         EQUALITY integerMatch
85         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
86
87 attributetype ( 1.3.6.1.1.1.1.11 NAME 'shadowFlag'
88         EQUALITY integerMatch
89         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
90
91 attributetype ( 1.3.6.1.1.1.1.12 NAME 'memberUid'
92         EQUALITY caseExactIA5Match
93         SUBSTR caseExactIA5SubstringsMatch
94         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
95
96 attributetype ( 1.3.6.1.1.1.1.13 NAME 'memberNisNetgroup'
97         EQUALITY caseExactIA5Match
98         SUBSTR caseExactIA5SubstringsMatch
99         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
100
101 attributetype ( 1.3.6.1.1.1.1.14 NAME 'nisNetgroupTriple'
102         DESC 'Netgroup triple'
103         SYNTAX 1.3.6.1.1.1.0.0 )
104
105 attributetype ( 1.3.6.1.1.1.1.15 NAME 'ipServicePort'
106         EQUALITY integerMatch
107         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
108
109 attributetype ( 1.3.6.1.1.1.1.16 NAME 'ipServiceProtocol'
110         SUP name )
111
112 attributetype ( 1.3.6.1.1.1.1.17 NAME 'ipProtocolNumber'
113         EQUALITY integerMatch
114         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
115
116 attributetype ( 1.3.6.1.1.1.1.18 NAME 'oncRpcNumber'
117         EQUALITY integerMatch
118         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
119
120 attributetype ( 1.3.6.1.1.1.1.19 NAME 'ipHostNumber'
121         DESC 'IP address'
122         EQUALITY caseIgnoreIA5Match
123         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
124
125 attributetype ( 1.3.6.1.1.1.1.20 NAME 'ipNetworkNumber'
126         DESC 'IP network'
127         EQUALITY caseIgnoreIA5Match
128         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} SINGLE-VALUE )
129
130 attributetype ( 1.3.6.1.1.1.1.21 NAME 'ipNetmaskNumber'
131         DESC 'IP netmask'
132         EQUALITY caseIgnoreIA5Match
133         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} SINGLE-VALUE )
134
135 attributetype ( 1.3.6.1.1.1.1.22 NAME 'macAddress'
136         DESC 'MAC address'
137         EQUALITY caseIgnoreIA5Match
138         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
139
140 attributetype ( 1.3.6.1.1.1.1.23 NAME 'bootParameter'
141         DESC 'rpc.bootparamd parameter'
142         SYNTAX 1.3.6.1.1.1.0.1 )
143
144 attributetype ( 1.3.6.1.1.1.1.24 NAME 'bootFile'
145         DESC 'Boot image name'
146         EQUALITY caseExactIA5Match
147         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
148
149 attributetype ( 1.3.6.1.1.1.1.26 NAME 'nisMapName'
150         SUP name )
151
152 attributetype ( 1.3.6.1.1.1.1.27 NAME 'nisMapEntry'
153         EQUALITY caseExactIA5Match
154         SUBSTR caseExactIA5SubstringsMatch
155         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} SINGLE-VALUE )
156
157 # Object Class Definitions
158
159 objectclass ( 1.3.6.1.1.1.2.0 NAME 'posixAccount'
160         DESC 'Abstraction of an account with POSIX attributes'
161         SUP top AUXILIARY
162         MUST ( cn $ uid $ uidNumber $ gidNumber $ homeDirectory )
163         MAY ( userPassword $ loginShell $ gecos $ description ) )
164
165 objectclass ( 1.3.6.1.1.1.2.1 NAME 'shadowAccount'
166         DESC 'Additional attributes for shadow passwords'
167         SUP top AUXILIARY
168         MUST uid
169         MAY ( userPassword $ shadowLastChange $ shadowMin $
170               shadowMax $ shadowWarning $ shadowInactive $
171               shadowExpire $ shadowFlag $ description ) )
172
173 objectclass ( 1.3.6.1.1.1.2.2 NAME 'posixGroup'
174         DESC 'Abstraction of a group of accounts'
175         SUP top AUXILIARY
176         MUST ( cn $ gidNumber )
177         MAY ( userPassword $ memberUid $ description ) )
178
179 objectclass ( 1.3.6.1.1.1.2.3 NAME 'ipService'
180         DESC 'Abstraction an Internet Protocol service'
181         SUP top STRUCTURAL
182         MUST ( cn $ ipServicePort $ ipServiceProtocol )
183         MAY ( description ) )
184
185 objectclass ( 1.3.6.1.1.1.2.4 NAME 'ipProtocol'
186         DESC 'Abstraction of an IP protocol'
187         SUP top STRUCTURAL
188         MUST ( cn $ ipProtocolNumber $ description )
189         MAY description )
190
191 objectclass ( 1.3.6.1.1.1.2.5 NAME 'oncRpc'
192         DESC 'Abstraction of an ONC/RPC binding'
193         SUP top STRUCTURAL
194         MUST ( cn $ oncRpcNumber $ description )
195         MAY description )
196
197 objectclass ( 1.3.6.1.1.1.2.6 NAME 'ipHost'
198         DESC 'Abstraction of a host, an IP device'
199         SUP top AUXILIARY
200         MUST ( cn $ ipHostNumber )
201         MAY ( l $ description $ manager ) )
202
203 objectclass ( 1.3.6.1.1.1.2.7 NAME 'ipNetwork'
204         DESC 'Abstraction of an IP network'
205         SUP top STRUCTURAL
206         MUST ( cn $ ipNetworkNumber )
207         MAY ( ipNetmaskNumber $ l $ description $ manager ) )
208
209 objectclass ( 1.3.6.1.1.1.2.8 NAME 'nisNetgroup'
210         DESC 'Abstraction of a netgroup'
211         SUP top STRUCTURAL
212         MUST cn
213         MAY ( nisNetgroupTriple $ memberNisNetgroup $ description ) )
214
215 objectclass ( 1.3.6.1.1.1.2.9 NAME 'nisMap'
216         DESC 'A generic abstraction of a NIS map'
217         SUP top STRUCTURAL
218         MUST nisMapName
219         MAY description )
220
221 objectclass ( 1.3.6.1.1.1.2.10 NAME 'nisObject'
222         DESC 'An entry in a NIS map'
223         SUP top STRUCTURAL
224         MUST ( cn $ nisMapEntry $ nisMapName )
225         MAY description )
226
227 objectclass ( 1.3.6.1.1.1.2.11 NAME 'ieee802Device'
228         DESC 'A device with a MAC address'
229         SUP top AUXILIARY
230         MAY macAddress )
231
232 objectclass ( 1.3.6.1.1.1.2.12 NAME 'bootableDevice'
233         DESC 'A device with boot parameters'
234         SUP top AUXILIARY
235         MAY ( bootFile $ bootParameter ) )