Redbrick User management tool
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.

187 lines
4.7 KiB

  1. #
  2. # Redbrick User Database LDAP Schema
  3. #
  4. # Dermot Duffy - 2003/May/3
  5. #
  6. # $Id$
  7. #
  8. # OID Base is 1.3.6.1.4.1.9736.15.1.3 (See README for more)
  9. #
  10. # User database information
  11. #
  12. # Attribute Type Definitions
  13. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.1 NAME 'photopath'
  14. DESC 'The path to a photo'
  15. EQUALITY caseExactIA5Match
  16. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
  17. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.2 NAME 'altmail'
  18. DESC 'An alternate email address'
  19. EQUALITY caseIgnoreIA5Match
  20. SUBSTR caseIgnoreIA5SubstringsMatch
  21. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
  22. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.3 NAME 'newbie'
  23. DESC 'A new account?'
  24. EQUALITY booleanMatch
  25. SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 )
  26. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.4 NAME 'id'
  27. DESC 'An integer identifying number'
  28. EQUALITY integerMatch
  29. SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
  30. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.5 NAME 'course'
  31. DESC 'A course identifier'
  32. EQUALITY caseIgnoreIA5Match
  33. SUBSTR caseIgnoreIA5SubstringsMatch
  34. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{5} )
  35. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.6 NAME 'date'
  36. DESC 'A representation of a date'
  37. EQUALITY caseIgnoreIA5Match
  38. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
  39. # Various boring attributes, important that each one have a different
  40. # oid otherwise they're counted as one single entity, which means
  41. # MUST clauses only take one of them.
  42. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.6.1 NAME 'created'
  43. SUP date )
  44. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.6.2 NAME 'updated'
  45. SUP date )
  46. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.6.3 NAME 'birthday'
  47. SUP date )
  48. attributetype ( 1.3.6.1.4.1.9736.15.1.3.7.1 NAME 'createdby'
  49. SUP username )
  50. attributetype ( 1.3.6.1.4.1.9736.15.1.3.7.2 NAME 'updatedby'
  51. SUP username )
  52. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.8 NAME 'year'
  53. DESC 'A college year 1-4/C/X'
  54. EQUALITY caseIgnoreIA5Match
  55. SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
  56. attributetype ( 1.3.6.1.4.1.9736.15.1.3.1.9 NAME 'yearsPaid'
  57. DESC 'Number of years paid by this user'
  58. ORDERING integerOrderingMatch
  59. EQUALITY integerMatch
  60. SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
  61. # Object Class Definitions
  62. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.1 NAME 'userdb'
  63. SUP top
  64. ABSTRACT
  65. DESC 'User database information'
  66. MUST ( cn $ altmail $ newbie $ created $ createdby $ updated $ updatedby )
  67. MAY ( sn $ description $ photopath $ course $ year $ id $ birthday $ host $ yearsPaid $ flag ) )
  68. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.2 NAME 'payinguser'
  69. SUP userdb
  70. AUXILIARY
  71. DESC 'A paying user account'
  72. MUST ( yearsPaid ) )
  73. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.3 NAME 'payingdcuuser'
  74. SUP payinguser
  75. AUXILIARY
  76. DESC 'A paying DCU user account'
  77. MUST ( id ) )
  78. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.4 NAME 'associat'
  79. SUP payingdcuuser
  80. AUXILIARY
  81. DESC 'A Redbrick associat' )
  82. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.5 NAME 'staff'
  83. SUP payingdcuuser
  84. AUXILIARY
  85. DESC 'A DCU staff member' )
  86. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.7 NAME 'studentuser'
  87. SUP payingdcuuser
  88. AUXILIARY
  89. DESC 'A DCU student'
  90. MUST ( year $ course ) )
  91. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.8 NAME 'committe'
  92. SUP studentuser
  93. AUXILIARY
  94. DESC 'Committee member' ) )
  95. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.9 NAME 'member'
  96. SUP studentuser
  97. AUXILIARY
  98. DESC 'Run o-the-mill member' ) )
  99. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.10 NAME 'freeuser'
  100. SUP userdb
  101. AUXILIARY
  102. DESC 'Non paying user' ) )
  103. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.6 NAME 'founders'
  104. SUP freeuser
  105. AUXILIARY
  106. DESC 'A Redbrick founder' )
  107. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.11 NAME 'redbrick'
  108. SUP freeuser
  109. AUXILIARY
  110. DESC 'Redbrick user type' ) )
  111. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.12 NAME 'reserved'
  112. STRUCTURAL
  113. MUST ( description $ uid )
  114. MAY ( cn $ flag )
  115. DESC 'Reserved user type' ) )
  116. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.13 NAME 'system'
  117. SUP freeuser
  118. AUXILIARY
  119. DESC 'System user type' ) )
  120. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.14 NAME 'dcu'
  121. SUP freeuser
  122. AUXILIARY
  123. DESC 'DCU user type' ) )
  124. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.15 NAME 'guest'
  125. SUP userdb
  126. AUXILIARY
  127. DESC 'Guest user type' ) )
  128. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.16 NAME 'intersoc'
  129. SUP freeuser
  130. AUXILIARY
  131. DESC 'Intersocs user' ) )
  132. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.17 NAME 'club'
  133. SUP freeuser
  134. AUXILIARY
  135. DESC 'DCU Club user' ) )
  136. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.18 NAME 'society'
  137. SUP freeuser
  138. AUXILIARY
  139. DESC 'DCU Society user' ) )
  140. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.19 NAME 'projects'
  141. SUP freeuser
  142. AUXILIARY
  143. DESC 'Redbrick project user' ) )
  144. # Extra non standard
  145. objectclass ( 1.3.6.1.4.1.9736.15.1.3.2.20 NAME 'admin'
  146. SUP userdb
  147. AUXILIARY )