r17487: Allocate some OID space for Samba4, so we don't trip on each other.
[sfrench/samba-autobuild/.git] / examples / LDAP / samba.schema
1 ##
2 ## schema file for OpenLDAP 2.x
3 ## Schema for storing Samba user accounts and group maps in LDAP
4 ## OIDs are owned by the Samba Team
5 ##
6 ## Prerequisite schemas - uid         (cosine.schema)
7 ##                      - displayName (inetorgperson.schema)
8 ##                      - gidNumber   (nis.schema)
9 ##
10 ## 1.3.6.1.4.1.7165.2.1.x - attributetypes
11 ## 1.3.6.1.4.1.7165.2.2.x - objectclasses
12 ##
13 ## Printer support
14 ## 1.3.6.1.4.1.7165.2.3.1.x - attributetypes
15 ## 1.3.6.1.4.1.7165.2.3.2.x - objectclasses
16 ##
17 ## Samba4
18 ## 1.3.6.1.4.1.7165.4.1.x - attributetypes
19 ## 1.3.6.1.4.1.7165.4.2.x - objectclasses
20 ##
21 ## ----- READ THIS WHEN ADDING A NEW ATTRIBUTE OR OBJECT CLASS ------
22 ##
23 ## Run the 'get_next_oid' bash script in this directory to find the 
24 ## next available OID for attribute type and object classes.
25 ##
26 ##   $ ./get_next_oid
27 ##   attributetype ( 1.3.6.1.4.1.7165.2.1.XX NAME ....
28 ##   objectclass ( 1.3.6.1.4.1.7165.2.2.XX NAME ....
29 ##
30 ## Also ensure that new entries adhere to the declaration style
31 ## used throughout this file
32 ##
33 ##    <attributetype|objectclass> ( 1.3.6.1.4.1.7165.2.XX.XX NAME ....
34 ##                               ^ ^                        ^
35 ##
36 ## The spaces are required for the get_next_oid script (and for 
37 ## readability).
38 ##
39 ## ------------------------------------------------------------------
40
41 # objectIdentifier SambaRoot 1.3.6.1.4.1.7165
42 # objectIdentifier Samba3 SambaRoot:2
43 # objectIdentifier Samba3Attrib Samba3:1
44 # objectIdentifier Samba3ObjectClass Samba3:2
45 # objectIdentifier Samba4 SambaRoot:4
46
47 ########################################################################
48 ##                            HISTORICAL                              ##
49 ########################################################################
50
51 ##
52 ## Password hashes
53 ##
54 #attributetype ( 1.3.6.1.4.1.7165.2.1.1 NAME 'lmPassword'
55 #       DESC 'LanManager Passwd'
56 #       EQUALITY caseIgnoreIA5Match
57 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{32} SINGLE-VALUE )
58
59 #attributetype ( 1.3.6.1.4.1.7165.2.1.2 NAME 'ntPassword'
60 #       DESC 'NT Passwd'
61 #       EQUALITY caseIgnoreIA5Match
62 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{32} SINGLE-VALUE )
63
64 ##
65 ## Account flags in string format ([UWDX     ])
66 ##
67 #attributetype ( 1.3.6.1.4.1.7165.2.1.4 NAME 'acctFlags'
68 #       DESC 'Account Flags'
69 #       EQUALITY caseIgnoreIA5Match
70 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{16} SINGLE-VALUE )
71
72 ##
73 ## Password timestamps & policies
74 ##
75 #attributetype ( 1.3.6.1.4.1.7165.2.1.3 NAME 'pwdLastSet'
76 #       DESC 'NT pwdLastSet'
77 #       EQUALITY integerMatch
78 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
79
80 #attributetype ( 1.3.6.1.4.1.7165.2.1.5 NAME 'logonTime'
81 #       DESC 'NT logonTime'
82 #       EQUALITY integerMatch
83 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
84
85 #attributetype ( 1.3.6.1.4.1.7165.2.1.6 NAME 'logoffTime'
86 #       DESC 'NT logoffTime'
87 #       EQUALITY integerMatch
88 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
89
90 #attributetype ( 1.3.6.1.4.1.7165.2.1.7 NAME 'kickoffTime'
91 #       DESC 'NT kickoffTime'
92 #       EQUALITY integerMatch
93 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
94
95 #attributetype ( 1.3.6.1.4.1.7165.2.1.8 NAME 'pwdCanChange'
96 #       DESC 'NT pwdCanChange'
97 #       EQUALITY integerMatch
98 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
99
100 #attributetype ( 1.3.6.1.4.1.7165.2.1.9 NAME 'pwdMustChange'
101 #       DESC 'NT pwdMustChange'
102 #       EQUALITY integerMatch
103 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
104
105 ##
106 ## string settings
107 ##
108 #attributetype ( 1.3.6.1.4.1.7165.2.1.10 NAME 'homeDrive'
109 #       DESC 'NT homeDrive'
110 #       EQUALITY caseIgnoreIA5Match
111 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{4} SINGLE-VALUE )
112
113 #attributetype ( 1.3.6.1.4.1.7165.2.1.11 NAME 'scriptPath'
114 #       DESC 'NT scriptPath'
115 #       EQUALITY caseIgnoreIA5Match
116 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{255} SINGLE-VALUE )
117
118 #attributetype ( 1.3.6.1.4.1.7165.2.1.12 NAME 'profilePath'
119 #       DESC 'NT profilePath'
120 #       EQUALITY caseIgnoreIA5Match
121 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{255} SINGLE-VALUE )
122
123 #attributetype ( 1.3.6.1.4.1.7165.2.1.13 NAME 'userWorkstations'
124 #       DESC 'userWorkstations'
125 #       EQUALITY caseIgnoreIA5Match
126 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{255} SINGLE-VALUE )
127
128 #attributetype ( 1.3.6.1.4.1.7165.2.1.17 NAME 'smbHome'
129 #       DESC 'smbHome'
130 #       EQUALITY caseIgnoreIA5Match
131 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
132
133 #attributetype ( 1.3.6.1.4.1.7165.2.1.18 NAME 'domain'
134 #       DESC 'Windows NT domain to which the user belongs'
135 #       EQUALITY caseIgnoreIA5Match
136 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
137
138 ##
139 ## user and group RID
140 ##
141 #attributetype ( 1.3.6.1.4.1.7165.2.1.14 NAME 'rid'
142 #       DESC 'NT rid'
143 #       EQUALITY integerMatch
144 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
145
146 #attributetype ( 1.3.6.1.4.1.7165.2.1.15 NAME 'primaryGroupID'
147 #       DESC 'NT Group RID'
148 #       EQUALITY integerMatch
149 #       SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
150
151 ##
152 ## The smbPasswordEntry objectclass has been depreciated in favor of the
153 ## sambaAccount objectclass
154 ##
155 #objectclass ( 1.3.6.1.4.1.7165.2.2.1 NAME 'smbPasswordEntry' SUP top AUXILIARY
156 #        DESC 'Samba smbpasswd entry'
157 #        MUST ( uid $ uidNumber )
158 #        MAY  ( lmPassword $ ntPassword $ pwdLastSet $ acctFlags ))
159
160 #objectclass ( 1.3.6.1.4.1.7165.2.2.2 NAME 'sambaAccount' SUP top STRUCTURAL
161 #       DESC 'Samba Account'
162 #       MUST ( uid $ rid )
163 #       MAY  ( cn $ lmPassword $ ntPassword $ pwdLastSet $ logonTime $
164 #               logoffTime $ kickoffTime $ pwdCanChange $ pwdMustChange $ acctFlags $
165 #               displayName $ smbHome $ homeDrive $ scriptPath $ profilePath $
166 #               description $ userWorkstations $ primaryGroupID $ domain ))
167
168 #objectclass ( 1.3.6.1.4.1.7165.2.2.3 NAME 'sambaAccount' SUP top AUXILIARY
169 #       DESC 'Samba Auxiliary Account'
170 #       MUST ( uid $ rid )
171 #       MAY  ( cn $ lmPassword $ ntPassword $ pwdLastSet $ logonTime $
172 #              logoffTime $ kickoffTime $ pwdCanChange $ pwdMustChange $ acctFlags $
173 #              displayName $ smbHome $ homeDrive $ scriptPath $ profilePath $
174 #              description $ userWorkstations $ primaryGroupID $ domain ))
175
176 ########################################################################
177 ##                        END OF HISTORICAL                           ##
178 ########################################################################
179
180 #######################################################################
181 ##                Attributes used by Samba 3.0 schema                ##
182 #######################################################################
183
184 ##
185 ## Password hashes
186 ##
187 attributetype ( 1.3.6.1.4.1.7165.2.1.24 NAME 'sambaLMPassword'
188         DESC 'LanManager Password'
189         EQUALITY caseIgnoreIA5Match
190         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{32} SINGLE-VALUE )
191
192 attributetype ( 1.3.6.1.4.1.7165.2.1.25 NAME 'sambaNTPassword'
193         DESC 'MD4 hash of the unicode password'
194         EQUALITY caseIgnoreIA5Match
195         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{32} SINGLE-VALUE )
196
197 ##
198 ## Account flags in string format ([UWDX     ])
199 ##
200 attributetype ( 1.3.6.1.4.1.7165.2.1.26 NAME 'sambaAcctFlags'
201         DESC 'Account Flags'
202         EQUALITY caseIgnoreIA5Match
203         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{16} SINGLE-VALUE )
204
205 ##
206 ## Password timestamps & policies
207 ##
208 attributetype ( 1.3.6.1.4.1.7165.2.1.27 NAME 'sambaPwdLastSet'
209         DESC 'Timestamp of the last password update'
210         EQUALITY integerMatch
211         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
212
213 attributetype ( 1.3.6.1.4.1.7165.2.1.28 NAME 'sambaPwdCanChange'
214         DESC 'Timestamp of when the user is allowed to update the password'
215         EQUALITY integerMatch
216         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
217
218 attributetype ( 1.3.6.1.4.1.7165.2.1.29 NAME 'sambaPwdMustChange'
219         DESC 'Timestamp of when the password will expire'
220         EQUALITY integerMatch
221         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
222
223 attributetype ( 1.3.6.1.4.1.7165.2.1.30 NAME 'sambaLogonTime'
224         DESC 'Timestamp of last logon'
225         EQUALITY integerMatch
226         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
227
228 attributetype ( 1.3.6.1.4.1.7165.2.1.31 NAME 'sambaLogoffTime'
229         DESC 'Timestamp of last logoff'
230         EQUALITY integerMatch
231         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
232
233 attributetype ( 1.3.6.1.4.1.7165.2.1.32 NAME 'sambaKickoffTime'
234         DESC 'Timestamp of when the user will be logged off automatically'
235         EQUALITY integerMatch
236         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
237
238 attributetype ( 1.3.6.1.4.1.7165.2.1.48 NAME 'sambaBadPasswordCount'
239         DESC 'Bad password attempt count'
240         EQUALITY integerMatch
241         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
242
243 attributetype ( 1.3.6.1.4.1.7165.2.1.49 NAME 'sambaBadPasswordTime'
244         DESC 'Time of the last bad password attempt'
245         EQUALITY integerMatch
246         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
247
248 attributetype ( 1.3.6.1.4.1.7165.2.1.55 NAME 'sambaLogonHours'
249         DESC 'Logon Hours'
250         EQUALITY caseIgnoreIA5Match
251         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{42} SINGLE-VALUE )
252
253 ##
254 ## string settings
255 ##
256 attributetype ( 1.3.6.1.4.1.7165.2.1.33 NAME 'sambaHomeDrive'
257         DESC 'Driver letter of home directory mapping'
258         EQUALITY caseIgnoreIA5Match
259         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{4} SINGLE-VALUE )
260
261 attributetype ( 1.3.6.1.4.1.7165.2.1.34 NAME 'sambaLogonScript'
262         DESC 'Logon script path'
263         EQUALITY caseIgnoreMatch
264         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{255} SINGLE-VALUE )
265
266 attributetype ( 1.3.6.1.4.1.7165.2.1.35 NAME 'sambaProfilePath'
267         DESC 'Roaming profile path'
268         EQUALITY caseIgnoreMatch
269         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{255} SINGLE-VALUE )
270
271 attributetype ( 1.3.6.1.4.1.7165.2.1.36 NAME 'sambaUserWorkstations'
272         DESC 'List of user workstations the user is allowed to logon to'
273         EQUALITY caseIgnoreMatch
274         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{255} SINGLE-VALUE )
275
276 attributetype ( 1.3.6.1.4.1.7165.2.1.37 NAME 'sambaHomePath'
277         DESC 'Home directory UNC path'
278         EQUALITY caseIgnoreMatch
279         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )
280
281 attributetype ( 1.3.6.1.4.1.7165.2.1.38 NAME 'sambaDomainName'
282         DESC 'Windows NT domain to which the user belongs'
283         EQUALITY caseIgnoreMatch
284         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )
285
286 attributetype ( 1.3.6.1.4.1.7165.2.1.47 NAME 'sambaMungedDial'
287         DESC 'Base64 encoded user parameter string'
288         EQUALITY caseExactMatch
289         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1050} )
290
291 attributetype ( 1.3.6.1.4.1.7165.2.1.54 NAME 'sambaPasswordHistory'
292         DESC 'Concatenated MD4 hashes of the unicode passwords used on this account'
293         EQUALITY caseIgnoreIA5Match
294         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{32} )
295
296 ##
297 ## SID, of any type
298 ##
299
300 attributetype ( 1.3.6.1.4.1.7165.2.1.20 NAME 'sambaSID'
301         DESC 'Security ID'
302         EQUALITY caseIgnoreIA5Match
303         SUBSTR caseExactIA5SubstringsMatch
304         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{64} SINGLE-VALUE )
305
306 ##
307 ## Primary group SID, compatible with ntSid
308 ##
309
310 attributetype ( 1.3.6.1.4.1.7165.2.1.23 NAME 'sambaPrimaryGroupSID'
311         DESC 'Primary Group Security ID'
312         EQUALITY caseIgnoreIA5Match
313         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{64} SINGLE-VALUE )
314
315 attributetype ( 1.3.6.1.4.1.7165.2.1.51 NAME 'sambaSIDList'
316         DESC 'Security ID List'
317         EQUALITY caseIgnoreIA5Match
318         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{64} )
319
320 ##
321 ## group mapping attributes
322 ##
323 attributetype ( 1.3.6.1.4.1.7165.2.1.19 NAME 'sambaGroupType'
324         DESC 'NT Group Type'
325         EQUALITY integerMatch
326         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
327
328 ##
329 ## Store info on the domain
330 ##
331
332 attributetype ( 1.3.6.1.4.1.7165.2.1.21 NAME 'sambaNextUserRid'
333         DESC 'Next NT rid to give our for users'
334         EQUALITY integerMatch
335         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
336
337 attributetype ( 1.3.6.1.4.1.7165.2.1.22 NAME 'sambaNextGroupRid'
338         DESC 'Next NT rid to give out for groups'
339         EQUALITY integerMatch
340         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
341
342 attributetype ( 1.3.6.1.4.1.7165.2.1.39 NAME 'sambaNextRid'
343         DESC 'Next NT rid to give out for anything'
344         EQUALITY integerMatch
345         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
346
347 attributetype ( 1.3.6.1.4.1.7165.2.1.40 NAME 'sambaAlgorithmicRidBase'
348         DESC 'Base at which the samba RID generation algorithm should operate'
349         EQUALITY integerMatch
350         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
351
352 attributetype ( 1.3.6.1.4.1.7165.2.1.41 NAME 'sambaShareName'
353         DESC 'Share Name'
354         EQUALITY caseIgnoreMatch
355         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
356
357 attributetype ( 1.3.6.1.4.1.7165.2.1.42 NAME 'sambaOptionName'
358         DESC 'Option Name'
359         EQUALITY caseIgnoreMatch
360         SUBSTR caseIgnoreSubstringsMatch
361         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )
362
363 attributetype ( 1.3.6.1.4.1.7165.2.1.43 NAME 'sambaBoolOption'
364         DESC 'A boolean option'
365         EQUALITY booleanMatch
366         SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
367
368 attributetype ( 1.3.6.1.4.1.7165.2.1.44 NAME 'sambaIntegerOption'
369         DESC 'An integer option'
370         EQUALITY integerMatch
371         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
372
373 attributetype ( 1.3.6.1.4.1.7165.2.1.45 NAME 'sambaStringOption'
374         DESC 'A string option'
375         EQUALITY caseExactIA5Match
376         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
377
378 attributetype ( 1.3.6.1.4.1.7165.2.1.46 NAME 'sambaStringListOption'
379         DESC 'A string list option'
380         EQUALITY caseIgnoreMatch
381         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
382
383
384 ##attributetype ( 1.3.6.1.4.1.7165.2.1.50 NAME 'sambaPrivName' 
385 ##      SUP name )
386
387 ##attributetype ( 1.3.6.1.4.1.7165.2.1.52 NAME 'sambaPrivilegeList'
388 ##      DESC 'Privileges List'
389 ##      EQUALITY caseIgnoreIA5Match
390 ##      SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{64} )
391
392 attributetype ( 1.3.6.1.4.1.7165.2.1.53 NAME 'sambaTrustFlags'
393         DESC 'Trust Password Flags'
394         EQUALITY caseIgnoreIA5Match
395         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
396
397 # "min password length"
398 attributetype ( 1.3.6.1.4.1.7165.2.1.58 NAME 'sambaMinPwdLength'
399         DESC 'Minimal password length (default: 5)'
400         EQUALITY integerMatch
401         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
402
403 # "password history"
404 attributetype ( 1.3.6.1.4.1.7165.2.1.59 NAME 'sambaPwdHistoryLength'
405         DESC 'Length of Password History Entries (default: 0 => off)'
406         EQUALITY integerMatch
407         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
408
409 # "user must logon to change password"
410 attributetype ( 1.3.6.1.4.1.7165.2.1.60 NAME 'sambaLogonToChgPwd'
411         DESC 'Force Users to logon for password change (default: 0 => off, 2 => on)'
412         EQUALITY integerMatch
413         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
414
415 # "maximum password age"
416 attributetype ( 1.3.6.1.4.1.7165.2.1.61 NAME 'sambaMaxPwdAge'
417         DESC 'Maximum password age, in seconds (default: -1 => never expire passwords)'
418         EQUALITY integerMatch
419         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
420
421 # "minimum password age"
422 attributetype ( 1.3.6.1.4.1.7165.2.1.62 NAME 'sambaMinPwdAge'
423         DESC 'Minimum password age, in seconds (default: 0 => allow immediate password change)'
424         EQUALITY integerMatch
425         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
426
427 # "lockout duration"
428 attributetype ( 1.3.6.1.4.1.7165.2.1.63 NAME 'sambaLockoutDuration'
429         DESC 'Lockout duration in minutes (default: 30, -1 => forever)'
430         EQUALITY integerMatch
431         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
432
433 # "reset count minutes"
434 attributetype ( 1.3.6.1.4.1.7165.2.1.64 NAME 'sambaLockoutObservationWindow'
435         DESC 'Reset time after lockout in minutes (default: 30)'
436         EQUALITY integerMatch
437         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
438
439 # "bad lockout attempt"
440 attributetype ( 1.3.6.1.4.1.7165.2.1.65 NAME 'sambaLockoutThreshold'
441         DESC 'Lockout users after bad logon attempts (default: 0 => off)'
442         EQUALITY integerMatch
443         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
444
445 # "disconnect time"
446 attributetype ( 1.3.6.1.4.1.7165.2.1.66 NAME 'sambaForceLogoff'
447         DESC 'Disconnect Users outside logon hours (default: -1 => off, 0 => on)'
448         EQUALITY integerMatch
449         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
450
451 # "refuse machine password change"
452 attributetype ( 1.3.6.1.4.1.7165.2.1.67 NAME 'sambaRefuseMachinePwdChange'
453         DESC 'Allow Machine Password changes (default: 0 => off)'
454         EQUALITY integerMatch
455         SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
456
457
458
459
460 #######################################################################
461 ##              objectClasses used by Samba 3.0 schema               ##
462 #######################################################################
463
464 ## The X.500 data model (and therefore LDAPv3) says that each entry can
465 ## only have one structural objectclass.  OpenLDAP 2.0 does not enforce
466 ## this currently but will in v2.1
467
468 ##
469 ## added new objectclass (and OID) for 3.0 to help us deal with backwards
470 ## compatibility with 2.2 installations (e.g. ldapsam_compat)  --jerry
471 ##
472 objectclass ( 1.3.6.1.4.1.7165.2.2.6 NAME 'sambaSamAccount' SUP top AUXILIARY
473         DESC 'Samba 3.0 Auxilary SAM Account'
474         MUST ( uid $ sambaSID )
475         MAY  ( cn $ sambaLMPassword $ sambaNTPassword $ sambaPwdLastSet $
476                sambaLogonTime $ sambaLogoffTime $ sambaKickoffTime $
477                sambaPwdCanChange $ sambaPwdMustChange $ sambaAcctFlags $
478                displayName $ sambaHomePath $ sambaHomeDrive $ sambaLogonScript $
479                sambaProfilePath $ description $ sambaUserWorkstations $
480                sambaPrimaryGroupSID $ sambaDomainName $ sambaMungedDial $
481                sambaBadPasswordCount $ sambaBadPasswordTime $
482                sambaPasswordHistory $ sambaLogonHours))
483
484 ##
485 ## Group mapping info
486 ##
487 objectclass ( 1.3.6.1.4.1.7165.2.2.4 NAME 'sambaGroupMapping' SUP top AUXILIARY
488         DESC 'Samba Group Mapping'
489         MUST ( gidNumber $ sambaSID $ sambaGroupType )
490         MAY  ( displayName $ description $ sambaSIDList ))
491
492 ##
493 ## Trust password for trust relationships (any kind)
494 ##
495 objectclass ( 1.3.6.1.4.1.7165.2.2.14 NAME 'sambaTrustPassword' SUP top STRUCTURAL
496         DESC 'Samba Trust Password'
497         MUST ( sambaDomainName $ sambaNTPassword $ sambaTrustFlags )
498         MAY ( sambaSID $ sambaPwdLastSet ))
499
500 ##
501 ## Whole-of-domain info
502 ##
503 objectclass ( 1.3.6.1.4.1.7165.2.2.5 NAME 'sambaDomain' SUP top STRUCTURAL
504         DESC 'Samba Domain Information'
505         MUST ( sambaDomainName $ 
506                sambaSID ) 
507         MAY ( sambaNextRid $ sambaNextGroupRid $ sambaNextUserRid $
508               sambaAlgorithmicRidBase $ 
509               sambaMinPwdLength $ sambaPwdHistoryLength $ sambaLogonToChgPwd $
510               sambaMaxPwdAge $ sambaMinPwdAge $
511               sambaLockoutDuration $ sambaLockoutObservationWindow $ sambaLockoutThreshold $
512               sambaForceLogoff $ sambaRefuseMachinePwdChange ))
513
514 ##
515 ## used for idmap_ldap module
516 ##
517 objectclass ( 1.3.6.1.4.1.7165.2.2.7 NAME 'sambaUnixIdPool' SUP top AUXILIARY
518         DESC 'Pool for allocating UNIX uids/gids'
519         MUST ( uidNumber $ gidNumber ) )
520
521
522 objectclass ( 1.3.6.1.4.1.7165.2.2.8 NAME 'sambaIdmapEntry' SUP top AUXILIARY
523         DESC 'Mapping from a SID to an ID'
524         MUST ( sambaSID )
525         MAY ( uidNumber $ gidNumber ) )
526
527 objectclass ( 1.3.6.1.4.1.7165.2.2.9 NAME 'sambaSidEntry' SUP top STRUCTURAL
528         DESC 'Structural Class for a SID'
529         MUST ( sambaSID ) )
530
531 objectclass ( 1.3.6.1.4.1.7165.2.2.10 NAME 'sambaConfig' SUP top AUXILIARY
532         DESC 'Samba Configuration Section'
533         MAY ( description ) )
534
535 objectclass ( 1.3.6.1.4.1.7165.2.2.11 NAME 'sambaShare' SUP top STRUCTURAL
536         DESC 'Samba Share Section'
537         MUST ( sambaShareName )
538         MAY ( description ) )
539
540 objectclass ( 1.3.6.1.4.1.7165.2.2.12 NAME 'sambaConfigOption' SUP top STRUCTURAL
541         DESC 'Samba Configuration Option'
542         MUST ( sambaOptionName )
543         MAY ( sambaBoolOption $ sambaIntegerOption $ sambaStringOption $ 
544               sambaStringListoption $ description ) )
545
546
547 ## retired during privilege rewrite
548 ##objectclass ( 1.3.6.1.4.1.7165.2.2.13 NAME 'sambaPrivilege' SUP top AUXILIARY
549 ##      DESC 'Samba Privilege'
550 ##      MUST ( sambaSID )
551 ##      MAY ( sambaPrivilegeList ) )