summaryrefslogtreecommitdiff
path: root/ldap/README.dit
blob: cdc365f6e9b421e10da2e293ff7cae132ac28ca3 (plain)
  1. Directory Information Trees
  2. ===========================
  3. A common misconception of LDAP is that a specific data structure is
  4. required, mandated by the applications interacting with the data.
  5. Such rigid structure is common in SQL databases, but LDAP is
  6. fundamentally different.
  7. Same object database is used across many applications, and the
  8. applications should not assume a specific structure.
  9. Best approach is to compose a Directory Information Structure - a "DIT"
  10. - to best reflect the company or organization behind the applications,
  11. and focus on convenient ACL handling and reuse of objects across
  12. applications, rather than letting the applications define the structure.
  13. Default Debian DIT
  14. ------------------
  15. dc=example,dc=com
  16. `-- cn=admin
  17. Default Skolelinux DIT
  18. ----------------------
  19. dc=skole,dc=skolelinux,dc=no
  20. |-- ou=Attic
  21. |-- ou=Machines
  22. |-- ou=People
  23. | `-- cn=Admin
  24. |-- ou=Pam
  25. |-- ou=Domains
  26. |-- ou=Group
  27. | |-- cn=Admins
  28. | |-- cn=jradmins
  29. | |-- cn=teachers
  30. | |-- cn=students
  31. | |-- cn=none
  32. | `-- cn=machines
  33. |-- ou=Netgroup
  34. | |-- cn=all-hosts
  35. | |-- cn=server-hosts
  36. | |-- cn=ltsp-server-hosts
  37. | |-- cn=workstation-hosts
  38. | |-- cn=printer-hosts
  39. | |-- cn=shutdown-at-night-hosts
  40. | `-- cn=fsautoresize-hosts
  41. |-- ou=Variables
  42. | |-- cn=nextID
  43. | `-- cn=capabilities
  44. |-- ou=Automount
  45. | |-- ou=auto.master
  46. | | `-- cn=/skole
  47. | `-- ou=skole
  48. | |-- cn=tjener
  49. | `-- ou=tjener
  50. | `-- cn=home0
  51. |-- cn=dhcp
  52. `-- cn=DHCP Config
  53. |-- cn=INTERNAL
  54. | |-- cn=10.0.2.0
  55. | `-- cn=group1
  56. | |-- cn=ltspserver00
  57. | |-- cn=ltspserver01
  58. | |-- cn=printer00
  59. | |-- cn=printer01
  60. | |-- cn=printer02
  61. | |-- cn=printer03
  62. | |-- cn=static00
  63. | |-- cn=static01
  64. | |-- cn=static02
  65. | `-- cn=static03
  66. `-- cn=THINCLIENTS
  67. |-- cn=192.168.0.0
  68. `-- cn=group1
  69. |-- cn=ltsp010
  70. |-- cn=ltsp011
  71. |-- cn=ltsp012
  72. |-- cn=ltsp013
  73. |-- cn=ltsp014
  74. |-- cn=ltsp015
  75. |-- cn=ltsp016
  76. |-- cn=ltsp017
  77. |-- cn=ltsp018
  78. `-- cn=ltsp019
  79. Default CipUX DIT
  80. -----------------
  81. ou=example org,dc=example,dc=org
  82. |-- cn=cipuxadm
  83. |-- ou=CipUX
  84. |-- ou=User
  85. | `-- uid=username
  86. |-- ou=Group
  87. | `-- cn=groupname
  88. |-- ou=Task
  89. |-- ou=CAT
  90. |-- ou=Image
  91. |-- ou=Machine
  92. | `-- uid=win01$
  93. |-- ou=Room
  94. |-- ou=HardwareType
  95. |-- ou=ImageSlot
  96. `-- ou=Configuration
  97. Simple DIT
  98. ----------
  99. dc=example,dc=com
  100. |-- cn=horde
  101. |-- ou=users
  102. | |--cn=jonas
  103. | |--cn=christian
  104. | `--cn=admin
  105. `-- ou=groups
  106. Based on <http://wiki.horde.org/NewLDAPHowTo>.
  107. App-centric heterogenous DIT
  108. ----------------------------
  109. dc=example,dc=com
  110. |-- cn=NextFreeUnixId,dc=example,dc=com
  111. |-- ou=DSA
  112. | `-- cn=horde
  113. `-- ou=horde
  114. |-- ou=users
  115. | |--cn=jonas
  116. | |--cn=christian
  117. | `--cn=admin
  118. `-- ou=groups
  119. Based on <http://wiki.horde.org/ExistingLDAPHowTo>.
  120. Org-centric heterogenous DIT
  121. ----------------------------
  122. dc=example,dc=com
  123. |-- ou=Customers
  124. | `-- cn=Apple
  125. |-- ou=SubSystems
  126. | |-- ou=Horde
  127. | `-- ou=Mail
  128. |-- ou=SAM
  129. | |-- ou=Groups
  130. | |-- ou=Hosts
  131. | |-- ou=Services
  132. | |-- ou=idMap
  133. | |-- ou=Entities
  134. | |-- ou=System
  135. | |-- ou=People
  136. | |--cn=jonas
  137. | `--cn=christian
  138. `-- ou=Access Control
  139. |-- ou=Groups
  140. | `-- ou=Administrators
  141. | |-- cn=Replicants
  142. | |-- cn=SAM
  143. | `-- cn=DSA
  144. `--ou=Entities
  145. `--cn=admin
  146. Inspired by <http://www.whitemiceconsulting.com/node/54> and the LDAP
  147. presentations at <http://www.whitemiceconsulting.com/node/30>.