samba.schema 22 KB

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