summaryrefslogtreecommitdiff
path: root/ldap/README.dit
blob: 72e7e0b8a21073867d750f3c0ce8b7faf8be9f25 (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. | |-- ou=Machines
  24. | | `-- uid=win01$
  25. | |-- cn=Admin
  26. | |-- cn=smbadmin
  27. | `-- uid=root
  28. |-- ou=Pam
  29. |-- ou=Domains
  30. |-- ou=Group
  31. | |-- cn=Admins
  32. | |-- cn=jradmins
  33. | |-- cn=teachers
  34. | |-- cn=students
  35. | |-- cn=none
  36. | `-- cn=machines
  37. |-- ou=Netgroup
  38. | |-- cn=all-hosts
  39. | |-- cn=server-hosts
  40. | |-- cn=ltsp-server-hosts
  41. | |-- cn=workstation-hosts
  42. | |-- cn=printer-hosts
  43. | |-- cn=shutdown-at-night-hosts
  44. | `-- cn=fsautoresize-hosts
  45. |-- ou=Variables
  46. | |-- cn=nextID
  47. | `-- cn=capabilities
  48. |-- sambaDomainName=SKOLELINUX
  49. |-- ou=Automount
  50. | |-- ou=auto.master
  51. | | `-- cn=/skole
  52. | `-- ou=skole
  53. | |-- cn=tjener
  54. | `-- ou=tjener
  55. | `-- cn=home0
  56. |-- cn=dhcp
  57. `-- cn=DHCP Config
  58. |-- cn=INTERNAL
  59. | |-- cn=10.0.2.0
  60. | `-- cn=group1
  61. | |-- cn=ltspserver00
  62. | |-- cn=ltspserver01
  63. | |-- cn=printer00
  64. | |-- cn=printer01
  65. | |-- cn=printer02
  66. | |-- cn=printer03
  67. | |-- cn=static00
  68. | |-- cn=static01
  69. | |-- cn=static02
  70. | `-- cn=static03
  71. `-- cn=THINCLIENTS
  72. |-- cn=192.168.0.0
  73. `-- cn=group1
  74. |-- cn=ltsp010
  75. |-- cn=ltsp011
  76. |-- cn=ltsp012
  77. |-- cn=ltsp013
  78. |-- cn=ltsp014
  79. |-- cn=ltsp015
  80. |-- cn=ltsp016
  81. |-- cn=ltsp017
  82. |-- cn=ltsp018
  83. `-- cn=ltsp019
  84. Default CipUX DIT
  85. -----------------
  86. ou=example org,dc=example,dc=org
  87. |-- cn=cipuxadm
  88. |-- ou=CipUX
  89. |-- ou=User
  90. | `-- uid=username
  91. |-- ou=Group
  92. | `-- cn=groupname
  93. |-- ou=Task
  94. |-- ou=CAT
  95. |-- ou=Image
  96. |-- ou=Machine
  97. | `-- uid=win01$
  98. |-- ou=Room
  99. |-- ou=HardwareType
  100. |-- ou=ImageSlot
  101. `-- ou=Configuration
  102. Simple DIT
  103. ----------
  104. dc=example,dc=com
  105. |-- cn=horde
  106. |-- ou=users
  107. | |--cn=jonas
  108. | |--cn=christian
  109. | `--cn=admin
  110. `-- ou=groups
  111. Based on <http://wiki.horde.org/NewLDAPHowTo>.
  112. App-centric heterogenous DIT
  113. ----------------------------
  114. dc=example,dc=com
  115. |-- cn=NextFreeUnixId,dc=example,dc=com
  116. |-- ou=DSA
  117. | `-- cn=horde
  118. `-- ou=horde
  119. |-- ou=users
  120. | |--cn=jonas
  121. | |--cn=christian
  122. | `--cn=admin
  123. `-- ou=groups
  124. Based on <http://wiki.horde.org/ExistingLDAPHowTo>.
  125. Org-centric heterogenous DIT
  126. ----------------------------
  127. dc=example,dc=com
  128. |-- ou=Customers
  129. | `-- cn=Apple
  130. |-- ou=SubSystems
  131. | |-- ou=Horde
  132. | `-- ou=Mail
  133. |-- ou=SAM
  134. | |-- ou=Groups
  135. | |-- ou=Hosts
  136. | |-- ou=Services
  137. | |-- ou=idMap
  138. | |-- ou=Entities
  139. | |-- ou=System
  140. | `-- ou=People
  141. | |--cn=jonas
  142. | `--cn=christian
  143. `-- ou=Access Control
  144. |-- ou=Groups
  145. | `-- ou=Administrators
  146. | |-- cn=Replicants
  147. | |-- cn=SAM
  148. | `-- cn=DSA
  149. `--ou=Entities
  150. `--cn=admin
  151. Inspired by <http://www.whitemiceconsulting.com/node/54> and the LDAP
  152. presentations at <http://www.whitemiceconsulting.com/node/30>.