]> git.sur5r.net Git - openldap/blob - servers/slapd/schema/nis.schema
055ccf419f87a506ed530742ebab9afb5283c622
[openldap] / servers / slapd / schema / nis.schema
1 # $OpenLDAP$
2 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
3 ##
4 ## Copyright 1998-2004 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' SUP top AUXILIARY
160         DESC 'Abstraction of an account with POSIX attributes'
161         MUST ( cn $ uid $ uidNumber $ gidNumber $ homeDirectory )
162         MAY ( userPassword $ loginShell $ gecos $ description ) )
163
164 objectclass ( 1.3.6.1.1.1.2.1 NAME 'shadowAccount' SUP top AUXILIARY
165         DESC 'Additional attributes for shadow passwords'
166         MUST uid
167         MAY ( userPassword $ shadowLastChange $ shadowMin $
168               shadowMax $ shadowWarning $ shadowInactive $
169               shadowExpire $ shadowFlag $ description ) )
170
171 objectclass ( 1.3.6.1.1.1.2.2 NAME 'posixGroup' SUP top STRUCTURAL
172         DESC 'Abstraction of a group of accounts'
173         MUST ( cn $ gidNumber )
174         MAY ( userPassword $ memberUid $ description ) )
175
176 objectclass ( 1.3.6.1.1.1.2.3 NAME 'ipService' SUP top STRUCTURAL
177         DESC 'Abstraction an Internet Protocol service'
178         MUST ( cn $ ipServicePort $ ipServiceProtocol )
179         MAY ( description ) )
180
181 objectclass ( 1.3.6.1.1.1.2.4 NAME 'ipProtocol' SUP top STRUCTURAL
182         DESC 'Abstraction of an IP protocol'
183         MUST ( cn $ ipProtocolNumber $ description )
184         MAY description )
185
186 objectclass ( 1.3.6.1.1.1.2.5 NAME 'oncRpc' SUP top STRUCTURAL
187         DESC 'Abstraction of an ONC/RPC binding'
188         MUST ( cn $ oncRpcNumber $ description )
189         MAY description )
190
191 objectclass ( 1.3.6.1.1.1.2.6 NAME 'ipHost' SUP top AUXILIARY
192         DESC 'Abstraction of a host, an IP device'
193         MUST ( cn $ ipHostNumber )
194         MAY ( l $ description $ manager ) )
195
196 objectclass ( 1.3.6.1.1.1.2.7 NAME 'ipNetwork' SUP top STRUCTURAL
197         DESC 'Abstraction of an IP network'
198         MUST ( cn $ ipNetworkNumber )
199         MAY ( ipNetmaskNumber $ l $ description $ manager ) )
200
201 objectclass ( 1.3.6.1.1.1.2.8 NAME 'nisNetgroup' SUP top STRUCTURAL
202         DESC 'Abstraction of a netgroup'
203         MUST cn
204         MAY ( nisNetgroupTriple $ memberNisNetgroup $ description ) )
205
206 objectclass ( 1.3.6.1.1.1.2.9 NAME 'nisMap' SUP top STRUCTURAL
207         DESC 'A generic abstraction of a NIS map'
208         MUST nisMapName
209         MAY description )
210
211 objectclass ( 1.3.6.1.1.1.2.10 NAME 'nisObject' SUP top STRUCTURAL
212         DESC 'An entry in a NIS map'
213         MUST ( cn $ nisMapEntry $ nisMapName )
214         MAY description )
215
216 objectclass ( 1.3.6.1.1.1.2.11 NAME 'ieee802Device' SUP top AUXILIARY
217         DESC 'A device with a MAC address'
218         MAY macAddress )
219
220 objectclass ( 1.3.6.1.1.1.2.12 NAME 'bootableDevice' SUP top AUXILIARY
221         DESC 'A device with boot parameters'
222         MAY ( bootFile $ bootParameter ) )