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