Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

240 lines
9.2 KiB

  1. #--------------------------------------------------------------------------
  2. # LDAP Schema for phamm
  3. #----------------------
  4. # Release 1.5
  5. # 2014/10/3
  6. #--------------------------------------------------------------------------
  7. # Copyright (c) 2006-2016 Mirko Grava, RHX Srl - www.rhx.it
  8. # Permission is granted to copy, distribute and/or modify this document
  9. # under the terms of the GNU Free Documentation License, Version 2
  10. # or any later version published by the Free Software Foundation;
  11. #--------------------------------------------------------------------------
  12. # 1.3.6.1.4.1.22339 RHX Srl's OID
  13. # 1.3.6.1.4.1.22339.1 Phamm
  14. # 1.3.6.1.4.1.22339.1.1 AttributeTypes
  15. # 1.3.6.1.4.1.22339.1.2 ObjectClasses
  16. #--------------------------------------------------------------------------
  17. # Attribute Types
  18. #-----------------
  19. attributetype ( 1.3.6.1.4.1.22339.1.1.1 NAME 'postfixTransport'
  20. DESC 'A string directing postfix which transport to use'
  21. EQUALITY caseExactIA5Match
  22. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{20} SINGLE-VALUE )
  23. attributetype ( 1.3.6.1.4.1.22339.1.1.2 NAME 'accountActive'
  24. DESC 'A boolean telling whether an account is active or not'
  25. EQUALITY booleanMatch
  26. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  27. attributetype ( 1.3.6.1.4.1.22339.1.1.3 NAME 'lastChange'
  28. DESC 'Time in unix time of last change in entry'
  29. SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
  30. attributetype ( 1.3.6.1.4.1.22339.1.1.4 NAME 'vd'
  31. DESC 'A virtual domain managed by Phamm'
  32. EQUALITY caseIgnoreIA5Match
  33. SUBSTR caseIgnoreIA5SubstringsMatch
  34. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
  35. attributetype ( 1.3.6.1.4.1.22339.1.1.5 NAME 'mailbox'
  36. DESC 'The absolute path to the mailbox for a mail account in a non-default location'
  37. EQUALITY caseExactIA5Match
  38. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  39. attributetype ( 1.3.6.1.4.1.22339.1.1.6 NAME 'quota'
  40. DESC 'A string that represents the quota on a mailbox'
  41. EQUALITY caseExactIA5Match
  42. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  43. attributetype ( 1.3.6.1.4.1.22339.1.1.7 NAME 'clearPassword'
  44. DESC 'A separate text that stores the mail account password in clear text'
  45. EQUALITY octetStringMatch
  46. SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{128})
  47. attributetype ( 1.3.6.1.4.1.22339.1.1.8 NAME 'maildrop'
  48. DESC 'RFC822 Mailbox - mail alias'
  49. EQUALITY caseIgnoreIA5Match
  50. SUBSTR caseIgnoreIA5SubstringsMatch
  51. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
  52. attributetype ( 1.3.6.1.4.1.22339.1.1.9 NAME 'mailsource'
  53. DESC 'Message source'
  54. EQUALITY caseIgnoreIA5Match
  55. SUBSTR caseIgnoreIA5SubstringsMatch
  56. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
  57. attributetype ( 1.3.6.1.4.1.22339.1.1.10 NAME 'editAliases'
  58. DESC 'A boolean telling whether a domain manager can edit Aliases'
  59. EQUALITY booleanMatch
  60. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  61. attributetype ( 1.3.6.1.4.1.22339.1.1.11 NAME 'editAccounts'
  62. DESC 'A boolean telling whether a domain manager can edit Accounts'
  63. EQUALITY booleanMatch
  64. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  65. attributetype ( 1.3.6.1.4.1.22339.1.1.12 NAME 'editAV'
  66. DESC 'A boolean telling whether a domain manager can edit Antivirus'
  67. EQUALITY booleanMatch
  68. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  69. attributetype ( 1.3.6.1.4.1.22339.1.1.13 NAME 'delete'
  70. DESC 'A boolean telling whether this item is marked for deletion'
  71. EQUALITY booleanMatch
  72. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  73. attributetype ( 1.3.6.1.4.1.22339.1.1.14 NAME 'forwardActive'
  74. DESC 'A boolean telling whether this item is using forward'
  75. EQUALITY booleanMatch
  76. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  77. attributetype ( 1.3.6.1.4.1.22339.1.1.15 NAME 'maxDomain'
  78. DESC 'A string that represents the max domain for a VirtualAdmin'
  79. EQUALITY caseExactIA5Match
  80. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  81. attributetype ( 1.3.6.1.4.1.22339.1.1.16 NAME 'maxMail'
  82. DESC 'A string that represents the max mail for a VirtualAdmin'
  83. EQUALITY caseExactIA5Match
  84. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  85. attributetype ( 1.3.6.1.4.1.22339.1.1.17 NAME 'maxAlias'
  86. DESC 'A string that represents the max alias for a VirtualAdmin'
  87. EQUALITY caseExactIA5Match
  88. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  89. attributetype ( 1.3.6.1.4.1.22339.1.1.18 NAME 'maxQuota'
  90. DESC 'A string that represents the max quota for a VirtualAdmin'
  91. EQUALITY caseExactIA5Match
  92. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  93. attributetype ( 1.3.6.1.4.1.22339.1.1.19 NAME 'adminID'
  94. DESC 'A string that represents the dn of admin domain'
  95. EQUALITY caseExactIA5Match
  96. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  97. attributetype ( 1.3.6.1.4.1.22339.1.1.20 NAME 'vdHome'
  98. DESC 'The absolute path to the virtual domain home'
  99. EQUALITY caseExactIA5Match
  100. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  101. attributetype ( 1.3.6.1.4.1.22339.1.1.21 NAME 'otherTransport'
  102. DESC 'A string directing postfix which transport to use'
  103. EQUALITY caseExactIA5Match
  104. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{20} SINGLE-VALUE )
  105. attributetype ( 1.3.6.1.4.1.22339.1.1.22 NAME 'creationDate'
  106. DESC 'Timestamp of creation'
  107. EQUALITY integerMatch
  108. SYNTAX 1.3.6.1.4.1.1466.115.121.1.27{14} SINGLE-VALUE )
  109. attributetype ( 1.3.6.1.4.1.22339.1.1.23 NAME 'otherPath'
  110. DESC 'This path to help any application'
  111. EQUALITY caseExactIA5Match
  112. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  113. attributetype ( 1.3.6.1.4.1.22339.1.1.24 NAME 'createMaildir'
  114. DESC 'A boolean telling when we must create Maildir for maildrop transport'
  115. EQUALITY booleanMatch
  116. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  117. attributetype ( 1.3.6.1.4.1.22339.1.1.25 NAME 'smtpAuth'
  118. DESC 'A boolean telling when we could do smtp-auth'
  119. EQUALITY booleanMatch
  120. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  121. attributetype ( 1.3.6.1.4.1.22339.1.1.26 NAME 'expireDate'
  122. DESC 'Expire date'
  123. EQUALITY integerMatch
  124. SYNTAX 1.3.6.1.4.1.1466.115.121.1.27{14} SINGLE-VALUE )
  125. attributetype ( 1.3.6.1.4.1.22339.1.1.27 NAME 'mailAutoreply'
  126. DESC 'RFC822 Mailbox - mail for autoreply'
  127. EQUALITY caseIgnoreIA5Match
  128. SUBSTR caseIgnoreIA5SubstringsMatch
  129. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
  130. attributetype ( 1.3.6.1.4.1.22339.1.1.28 NAME 'bypassGreyListing'
  131. DESC 'A boolean telling when we could bypass Grey Listing'
  132. EQUALITY booleanMatch
  133. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  134. attributetype ( 1.3.6.1.4.1.22339.1.1.29 NAME 'phammGroup'
  135. DESC 'Define the phamm Group of the VirtualMailAccount'
  136. EQUALITY caseIgnoreMatch
  137. SUBSTR caseIgnoreSubstringsMatch
  138. SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )
  139. attributetype ( 1.3.6.1.4.1.22339.1.1.30 NAME 'maxSmtpAuth'
  140. DESC 'A string that represents the max SMTP Auth for a VirtualAdmin'
  141. EQUALITY caseExactIA5Match
  142. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  143. attributetype ( 1.3.6.1.4.1.22339.1.1.31 NAME 'maxAntivirus'
  144. DESC 'A string that represents the max Antivirus for a VirtualAdmin'
  145. EQUALITY caseExactIA5Match
  146. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  147. attributetype ( 1.3.6.1.4.1.22339.1.1.32 NAME 'maxAntiSpam'
  148. DESC 'A string that represents the max AntiSpam for a VirtualAdmin'
  149. EQUALITY caseExactIA5Match
  150. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  151. attributetype ( 1.3.6.1.4.1.22339.1.1.33 NAME 'maxGreyList'
  152. DESC 'A string that represents the max AntiGreyList for a VirtualAdmin'
  153. EQUALITY caseExactIA5Match
  154. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  155. # Classes
  156. #---------
  157. objectclass ( 1.3.6.1.4.1.22339.1.2.1 NAME 'VirtualMailAccount'
  158. SUP inetOrgPerson STRUCTURAL
  159. DESC 'Mail account objects'
  160. MUST ( mail $ vdHome $ mailbox $ accountActive $ lastChange $ delete )
  161. MAY ( quota $ otherTransport $ editAccounts $ creationDate $ createMaildir $ smtpAuth $ expireDate $ mailAutoreply $ bypassGreyListing $ phammGroup ) )
  162. objectclass ( 1.3.6.1.4.1.22339.1.2.2 NAME 'VirtualMailAlias'
  163. SUP inetOrgPerson STRUCTURAL
  164. DESC 'Mail aliasing/forwarding entry'
  165. MUST ( mail $ maildrop $ accountActive $ lastChange )
  166. MAY ( mailsource $ editAccounts $ creationDate $ smtpAuth $ expireDate $ bypassGreyListing) )
  167. objectclass ( 1.3.6.1.4.1.22339.1.2.3 NAME 'VirtualDomain'
  168. SUP top STRUCTURAL
  169. DESC 'Virtual Domain entry to be used with postfix transport maps'
  170. MUST ( vd $ accountActive $ lastChange $ delete )
  171. MAY ( postfixTransport $ description $ maxMail $ maxAlias $ maxQuota $ editAV $ adminID $ creationDate $ bypassGreyListing $ maxSmtpAuth $ maxAntivirus $ maxAntiSpam $ maxGreyList) )
  172. objectclass ( 1.3.6.1.4.1.22339.1.2.4 NAME 'VirtualForward'
  173. SUP top AUXILIARY
  174. DESC 'Forward setting for VirtualMailAccount'
  175. MUST ( forwardActive )
  176. MAY ( maildrop ) )
  177. objectclass ( 1.3.6.1.4.1.22339.1.2.5 NAME 'VirtualAdmin'
  178. SUP inetOrgPerson STRUCTURAL
  179. DESC 'Virtual Admin entry'
  180. MUST ( mail $ maxDomain $ accountActive $ lastChange )
  181. MAY ( vd $ editAccounts ) )
  182. objectclass ( 1.3.6.1.4.1.22339.1.2.6 NAME 'VirtualBackupDomain'
  183. SUP top STRUCTURAL
  184. DESC 'Virtual Backup Domain entry to be used for relay'
  185. MUST ( vd $ accountActive $ lastChange $ delete )
  186. MAY ( description ) )
  187. objectclass ( 1.3.6.1.4.1.22339.1.2.7 NAME 'VirtualBackupMail'
  188. SUP top STRUCTURAL
  189. DESC 'Virtual Backup Mail entry to be used for relay'
  190. MUST ( mail $ accountActive $ lastChange )
  191. MAY ( description ) )
  192. objectclass ( 1.3.6.1.4.1.22339.1.2.8 NAME 'Yap'
  193. SUP top AUXILIARY
  194. DESC 'Yet another path'
  195. MUST ( otherPath )
  196. )