summaryrefslogtreecommitdiff
path: root/ldap/README.dit
blob: 6077a576d1025066d51795e6aa88f3aee1f568a0 (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. Simple DIT
  18. ----------
  19. dc=example,dc=com
  20. |-- cn=horde
  21. |-- ou=users
  22. | |--cn=jonas
  23. | |--cn=christian
  24. | `--cn=admin
  25. `-- ou=groups
  26. Based on <http://wiki.horde.org/NewLDAPHowTo>.
  27. App-centric heterogenous DIT
  28. ----------------------------
  29. dc=example,dc=com
  30. |-- cn=NextFreeUnixId,dc=example,dc=com
  31. |-- ou=DSA
  32. | `-- cn=horde
  33. `-- ou=horde
  34. |-- ou=users
  35. | |--cn=jonas
  36. | |--cn=christian
  37. | `--cn=admin
  38. `-- ou=groups
  39. Based on <http://wiki.horde.org/ExistingLDAPHowTo>.
  40. Org-centric heterogenous DIT
  41. ----------------------------
  42. dc=example,dc=com
  43. |-- ou=Customers
  44. | `-- cn=Apple
  45. |-- ou=SubSystems
  46. | |-- ou=Horde
  47. | `-- ou=Mail
  48. |-- ou=SAM
  49. | |-- ou=Groups
  50. | |-- ou=Hosts
  51. | |-- ou=Services
  52. | |-- ou=idMap
  53. | |-- ou=Entities
  54. | |-- ou=System
  55. | |-- ou=People
  56. | |--cn=jonas
  57. | `--cn=christian
  58. `-- ou=Access Control
  59. |-- ou=Groups
  60. | `-- ou=Administrators
  61. | |-- cn=Replicants
  62. | |-- cn=SAM
  63. | `-- cn=DSA
  64. `--ou=Entities
  65. `--cn=admin
  66. Inspired by <http://www.whitemiceconsulting.com/node/54> and the LDAP
  67. presentations at <http://www.whitemiceconsulting.com/node/30>.