samba.schema 23 KB

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