/unmaintained/ldap/conf/slapd.conf

http://github.com/abeaumont/factor · Config · 67 lines · 54 code · 13 blank · 0 comment · 0 complexity · 2e0b5e9561748f7b9ed4132d68253b05 MD5 · raw file

  1. #
  2. ###### SAMPLE 1 - SIMPLE DIRECTORY ############
  3. #
  4. # NOTES: inetorgperson picks up attributes and objectclasses
  5. # from all three schemas
  6. #
  7. # NB: RH Linux schemas in /etc/openldap
  8. #
  9. include /opt/local/etc/openldap/schema/core.schema
  10. include /opt/local/etc/openldap/schema/cosine.schema
  11. include /opt/local/etc/openldap/schema/inetorgperson.schema
  12. # NO SECURITY - no access clause
  13. # defaults to anonymous access for read
  14. # only rootdn can write
  15. # NO REFERRALS
  16. # DON'T bother with ARGS file unless you feel strongly
  17. # slapd scripts stop scripts need this to work
  18. pidfile /opt/local/var/run/run/slapd.pid
  19. # enable a lot of logging - we might need it
  20. # but generates huge logs
  21. loglevel -1
  22. # NO dynamic backend modules
  23. # NO TLS-enabled connections
  24. # backend definition not required
  25. #######################################################################
  26. # bdb database definitions
  27. #
  28. # replace example and com below with a suitable domain
  29. #
  30. # If you don't have a domain you can leave it since example.com
  31. # is reserved for experimentation or change them to my and inc
  32. #
  33. #######################################################################
  34. database bdb
  35. suffix "dc=example, dc=com"
  36. # root or superuser
  37. rootdn "cn=jimbob, dc=example, dc=com"
  38. rootpw secret
  39. # The database directory MUST exist prior to running slapd AND
  40. # change path as necessary
  41. directory /opt/local/var/run/openldap-data
  42. # Indices to maintain for this directory
  43. # unique id so equality match only
  44. index uid eq
  45. # allows general searching on commonname, givenname and email
  46. index cn,gn,mail eq,sub
  47. # allows multiple variants on surname searching
  48. index sn eq,sub,subany,subfinal
  49. # optimise department searches
  50. index ou eq
  51. # shows use of default index parameter
  52. index default eq,sub
  53. # indices missing - uses default eq,sub
  54. index telephonenumber