Advertisement
Shodan76

phamm schema

Jun 23rd, 2015
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.17 KB | None | 0 0
  1. #--------------------------------------------------------------------------
  2. # LDAP Schema for phamm
  3. #----------------------
  4. # Release 1.4
  5. # 2010/03/30
  6. #--------------------------------------------------------------------------
  7. # Copyright (c) 2006-2009 Mirko Grava, RHX Studio Snc - 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 Studio Snc'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.  
  18. # Attribute Types
  19. #-----------------
  20.  
  21. attributetype ( 1.3.6.1.4.1.22339.1.1.1 NAME 'postfixTransport'
  22. DESC 'A string directing postfix which transport to use'
  23. EQUALITY caseExactIA5Match
  24. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{20} SINGLE-VALUE )
  25.  
  26. attributetype ( 1.3.6.1.4.1.22339.1.1.2 NAME 'accountActive'
  27. DESC 'A boolean telling whether an account is active or not'
  28. EQUALITY booleanMatch
  29. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  30.  
  31. attributetype ( 1.3.6.1.4.1.22339.1.1.3 NAME 'lastChange'
  32. DESC 'Time in unix time of last change in entry'
  33. SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
  34.  
  35. attributetype ( 1.3.6.1.4.1.22339.1.1.4 NAME 'vd'
  36. DESC 'A virtual domain managed by Phamm'
  37. EQUALITY caseIgnoreIA5Match
  38. SUBSTR caseIgnoreIA5SubstringsMatch
  39. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
  40.  
  41. attributetype ( 1.3.6.1.4.1.22339.1.1.5 NAME 'mailbox'
  42. DESC 'The absolute path to the mailbox for a mail account in a non-default location'
  43. EQUALITY caseExactIA5Match
  44. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  45.  
  46. attributetype ( 1.3.6.1.4.1.22339.1.1.6 NAME 'quota'
  47. DESC 'A string that represents the quota on a mailbox'
  48. EQUALITY caseExactIA5Match
  49. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  50.  
  51. attributetype ( 1.3.6.1.4.1.22339.1.1.7 NAME 'clearPassword'
  52. DESC 'A separate text that stores the mail account password in clear text'
  53. EQUALITY octetStringMatch
  54. SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{128})
  55.  
  56. attributetype ( 1.3.6.1.4.1.22339.1.1.8 NAME 'maildrop'
  57. DESC 'RFC822 Mailbox - mail alias'
  58. EQUALITY caseIgnoreIA5Match
  59. SUBSTR caseIgnoreIA5SubstringsMatch
  60. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
  61.  
  62. attributetype ( 1.3.6.1.4.1.22339.1.1.9 NAME 'mailsource'
  63. DESC 'Message source'
  64. EQUALITY caseIgnoreIA5Match
  65. SUBSTR caseIgnoreIA5SubstringsMatch
  66. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
  67.  
  68. attributetype ( 1.3.6.1.4.1.22339.1.1.10 NAME 'editAliases'
  69. DESC 'A boolean telling whether a domain manager can edit Aliases'
  70. EQUALITY booleanMatch
  71. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  72.  
  73. attributetype ( 1.3.6.1.4.1.22339.1.1.11 NAME 'editAccounts'
  74. DESC 'A boolean telling whether a domain manager can edit Accounts'
  75. EQUALITY booleanMatch
  76. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  77.  
  78. attributetype ( 1.3.6.1.4.1.22339.1.1.12 NAME 'editAV'
  79. DESC 'A boolean telling whether a domain manager can edit Antivirus'
  80. EQUALITY booleanMatch
  81. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  82.  
  83. attributetype ( 1.3.6.1.4.1.22339.1.1.13 NAME 'delete'
  84. DESC 'A boolean telling whether this item is marked for deletion'
  85. EQUALITY booleanMatch
  86. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  87.  
  88. attributetype ( 1.3.6.1.4.1.22339.1.1.14 NAME 'forwardActive'
  89. DESC 'A boolean telling whether this item is using forward'
  90. EQUALITY booleanMatch
  91. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  92.  
  93. attributetype ( 1.3.6.1.4.1.22339.1.1.15 NAME 'maxDomain'
  94. DESC 'A string that represents the max domain for a VirtualAdmin'
  95. EQUALITY caseExactIA5Match
  96. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  97.  
  98. attributetype ( 1.3.6.1.4.1.22339.1.1.16 NAME 'maxMail'
  99. DESC 'A string that represents the max mail for a VirtualAdmin'
  100. EQUALITY caseExactIA5Match
  101. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  102.  
  103. attributetype ( 1.3.6.1.4.1.22339.1.1.17 NAME 'maxAlias'
  104. DESC 'A string that represents the max alias for a VirtualAdmin'
  105. EQUALITY caseExactIA5Match
  106. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  107.  
  108. attributetype ( 1.3.6.1.4.1.22339.1.1.18 NAME 'maxQuota'
  109. DESC 'A string that represents the max quota for a VirtualAdmin'
  110. EQUALITY caseExactIA5Match
  111. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  112.  
  113. attributetype ( 1.3.6.1.4.1.22339.1.1.19 NAME 'adminID'
  114. DESC 'A string that represents the dn of admin domain'
  115. EQUALITY caseExactIA5Match
  116. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  117.  
  118. attributetype ( 1.3.6.1.4.1.22339.1.1.20 NAME 'vdHome'
  119. DESC 'The absolute path to the virtual domain home'
  120. EQUALITY caseExactIA5Match
  121. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  122.  
  123. attributetype ( 1.3.6.1.4.1.22339.1.1.21 NAME 'otherTransport'
  124. DESC 'A string directing postfix which transport to use'
  125. EQUALITY caseExactIA5Match
  126. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{20} SINGLE-VALUE )
  127.  
  128. attributetype ( 1.3.6.1.4.1.22339.1.1.22 NAME 'creationDate'
  129. DESC 'Timestamp of creation'
  130. EQUALITY integerMatch
  131. SYNTAX 1.3.6.1.4.1.1466.115.121.1.27{14} SINGLE-VALUE )
  132.  
  133. attributetype ( 1.3.6.1.4.1.22339.1.1.23 NAME 'otherPath'
  134. DESC 'This path to help any application'
  135. EQUALITY caseExactIA5Match
  136. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
  137.  
  138. attributetype ( 1.3.6.1.4.1.22339.1.1.24 NAME 'createMaildir'
  139. DESC 'A boolean telling when we must create Maildir for maildrop transport'
  140. EQUALITY booleanMatch
  141. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  142.  
  143. attributetype ( 1.3.6.1.4.1.22339.1.1.25 NAME 'smtpAuth'
  144. DESC 'A boolean telling when we could do smtp-auth'
  145. EQUALITY booleanMatch
  146. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  147.  
  148. attributetype ( 1.3.6.1.4.1.22339.1.1.26 NAME 'expireDate'
  149. DESC 'Expire date'
  150. EQUALITY integerMatch
  151. SYNTAX 1.3.6.1.4.1.1466.115.121.1.27{14} SINGLE-VALUE )
  152.  
  153. attributetype ( 1.3.6.1.4.1.22339.1.1.27 NAME 'mailAutoreply'
  154. DESC 'RFC822 Mailbox - mail for autoreply'
  155. EQUALITY caseIgnoreIA5Match
  156. SUBSTR caseIgnoreIA5SubstringsMatch
  157. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
  158.  
  159. attributetype ( 1.3.6.1.4.1.22339.1.1.28 NAME 'bypassGreyListing'
  160. DESC 'A boolean telling when we could do smtp-auth'
  161. EQUALITY booleanMatch
  162. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  163.  
  164. attributetype ( 1.3.6.1.4.1.22339.1.1.29 NAME 'company'
  165. DESC 'Company Name'
  166. EQUALITY caseIgnoreIA5Match
  167. SUBSTR caseIgnoreIA5SubstringsMatch
  168. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
  169.  
  170. attributetype ( 1.3.6.1.4.1.22339.1.1.30 NAME 'department'
  171. DESC 'Department Name'
  172. EQUALITY caseIgnoreIA5Match
  173. SUBSTR caseIgnoreIA5SubstringsMatch
  174. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
  175.  
  176. attributetype ( 1.3.6.1.4.1.22339.1.1.31 NAME 'mailNickname'
  177. DESC 'Mail Alias'
  178. EQUALITY caseIgnoreIA5Match
  179. SUBSTR caseIgnoreIA5SubstringsMatch
  180. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
  181.  
  182. attributetype ( 1.3.6.1.4.1.22339.1.1.32 NAME 'accountBackup'
  183. DESC 'A boolean telling whether a backup should be active'
  184. EQUALITY booleanMatch
  185. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
  186.  
  187. # Classes
  188. #---------
  189.  
  190. objectclass ( 1.3.6.1.4.1.22339.1.2.1 NAME 'VirtualMailAccount'
  191. SUP inetOrgPerson STRUCTURAL
  192. DESC 'Mail account objects'
  193. MUST ( mail $ mailbox $ accountActive )
  194. MAY ( quota $ otherTransport $ editAccounts $ creationDate $ createMaildir $ smtpAuth $ expireDate $ mailAutoreply $ bypassGreyListing $ maildrop $ vdHome $ lastChange $ company $ physicalDeliveryOfficeName $ department $ mailNickname $ accountBackup $ description) )
  195.  
  196. objectclass ( 1.3.6.1.4.1.22339.1.2.2 NAME 'VirtualMailAlias'
  197. SUP top STRUCTURAL
  198. DESC 'Mail aliasing/forwarding entry'
  199. MUST ( mail $ maildrop $ accountActive )
  200. MAY ( mailsource $ editAccounts $ creationDate $ smtpAuth $ expireDate $ bypassGreyListing $ lastChange $ description) )
  201.  
  202. objectclass ( 1.3.6.1.4.1.22339.1.2.3 NAME 'VirtualDomain'
  203. SUP top STRUCTURAL
  204. DESC 'Virtual Domain entry to be used with postfix transport maps'
  205. MUST ( vd $ accountActive $ lastChange $ delete )
  206. MAY ( postfixTransport $ description $ maxMail $ maxAlias $ maxQuota $ editAV $ adminID $ creationDate $ bypassGreyListing) )
  207.  
  208. objectclass ( 1.3.6.1.4.1.22339.1.2.4 NAME 'VirtualForward'
  209. SUP top AUXILIARY
  210. DESC 'Forward setting for VirtualMailAccount'
  211. MUST ( forwardActive )
  212. MAY ( maildrop ) )
  213.  
  214. objectclass ( 1.3.6.1.4.1.22339.1.2.5 NAME 'VirtualAdmin'
  215. SUP inetOrgPerson STRUCTURAL
  216. DESC 'Virtual Admin entry'
  217. MUST ( mail $ maxDomain $ accountActive $ lastChange )
  218. MAY ( vd $ editAccounts ) )
  219.  
  220. objectclass ( 1.3.6.1.4.1.22339.1.2.6 NAME 'VirtualBackupDomain'
  221. SUP top STRUCTURAL
  222. DESC 'Virtual Backup Domain entry to be used for relay'
  223. MUST ( vd $ accountActive $ lastChange $ delete )
  224. MAY ( description ) )
  225.  
  226. objectclass ( 1.3.6.1.4.1.22339.1.2.7 NAME 'VirtualBackupMail'
  227. SUP top STRUCTURAL
  228. DESC 'Virtual Backup Mail entry to be used for relay'
  229. MUST ( mail $ accountActive $ lastChange )
  230. MAY ( description ) )
  231.  
  232. objectclass ( 1.3.6.1.4.1.22339.1.2.8 NAME 'Yap'
  233. SUP top AUXILIARY
  234. DESC 'Yet another path'
  235. MUST ( otherPath ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement