Advertisement
Guest User

Untitled

a guest
May 18th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. # This is the main slapd configuration file. See slapd.conf(5) for more
  2. # info on the configuration options.
  3.  
  4. #######################################################################
  5. # Global Directives:
  6.  
  7. # Features to permit
  8. #allow bind_v2
  9.  
  10. # Schema and objectClass definitions
  11. include /etc/ldap/schema/core.schema
  12. include /etc/ldap/schema/cosine.schema
  13. include /etc/ldap/schema/nis.schema
  14. include /etc/ldap/schema/inetorgperson.schema
  15. include /etc/ldap/schema/visit.schema
  16.  
  17. # Where the pid file is put. The init.d script
  18. # will not stop the server if you change this.
  19. pidfile /var/run/slapd/slapd.pid
  20.  
  21. # List of arguments that were passed to the server
  22. argsfile /var/run/slapd/slapd.args
  23.  
  24. # Read slapd.conf(5) for possible values
  25. loglevel -1
  26.  
  27. # Where the dynamically loaded modules are stored
  28. modulepath /usr/lib/ldap
  29. moduleload back_@BACKEND@
  30.  
  31. # The maximum number of entries that is returned for a search operation
  32. sizelimit 500
  33.  
  34. # The tool-threads parameter sets the actual amount of cpu's that is used
  35. # for indexing.
  36. tool-threads 1
  37.  
  38. #######################################################################
  39. # Specific Backend Directives for @BACKEND@:
  40. # Backend specific directives apply to this backend until another
  41. # 'backend' directive occurs
  42. backend @BACKEND@
  43.  
  44. #######################################################################
  45. # Specific Backend Directives for 'other':
  46. # Backend specific directives apply to this backend until another
  47. # 'backend' directive occurs
  48. #backend <other>
  49.  
  50. #######################################################################
  51. # Specific Directives for database #1, of type @BACKEND@:
  52. # Database specific directives apply to this databasse until another
  53. # 'database' directive occurs
  54. database @BACKEND@
  55.  
  56. # The base of your directory in database #1
  57. suffix "@SUFFIX@"
  58.  
  59. # rootdn directive for specifying a superuser on the database. This is needed
  60. # for syncrepl.
  61. # rootdn "cn=admin,@SUFFIX@"
  62.  
  63. # Where the database file are physically stored for database #1
  64. directory "/var/lib/ldap"
  65.  
  66. # The dbconfig settings are used to generate a DB_CONFIG file the first
  67. # time slapd starts. They do NOT override existing an existing DB_CONFIG
  68. # file. You should therefore change these settings in DB_CONFIG directly
  69. # or remove DB_CONFIG and restart slapd for changes to take effect.
  70.  
  71. # For the Debian package we use 2MB as default but be sure to update this
  72. # value if you have plenty of RAM
  73. dbconfig set_cachesize 0 2097152 0
  74.  
  75. # Sven Hartge reported that he had to set this value incredibly high
  76. # to get slapd running at all. See http://bugs.debian.org/303057 for more
  77. # information.
  78.  
  79. # Number of objects that can be locked at the same time.
  80. dbconfig set_lk_max_objects 1500
  81. # Number of locks (both requested and granted)
  82. dbconfig set_lk_max_locks 1500
  83. # Number of lockers
  84. dbconfig set_lk_max_lockers 1500
  85.  
  86. # Indexing options for database #1
  87. index objectClass eq
  88.  
  89. # Save the time that the entry gets modified, for database #1
  90. lastmod on
  91.  
  92. # Checkpoint the BerkeleyDB database periodically in case of system
  93. # failure and to speed slapd shutdown.
  94. checkpoint 512 30
  95.  
  96. # The userPassword by default can be changed
  97. # by the entry owning it if they are authenticated.
  98. # Others should not be able to see it, except the
  99. # admin entry below
  100. # These access lines apply to database #1 only
  101. access to attrs=userPassword,shadowLastChange
  102. by dn="@ADMIN@" write
  103. by anonymous auth
  104. by self write
  105. by * none
  106.  
  107. # Ensure read access to the base for things like
  108. # supportedSASLMechanisms. Without this you may
  109. # have problems with SASL not knowing what
  110. # mechanisms are available and the like.
  111. # Note that this is covered by the 'access to *'
  112. # ACL below too but if you change that as people
  113. # are wont to do you'll still need this if you
  114. # want SASL (and possible other things) to work
  115. # happily.
  116. access to dn.base="" by * read
  117.  
  118. # The admin dn has full write access, everyone else
  119. # can read everything.
  120. access to *
  121. by dn="@ADMIN@" write
  122. by * read
  123.  
  124. # For Netscape Roaming support, each user gets a roaming
  125. # profile for which they have write access to
  126. #access to dn=".*,ou=Roaming,o=morsnet"
  127. # by dn="@ADMIN@" write
  128. # by dnattr=owner write
  129.  
  130. #######################################################################
  131. # Specific Directives for database #2, of type 'other' (can be @BACKEND@ too):
  132. # Database specific directives apply to this databasse until another
  133. # 'database' directive occurs
  134. #database <other>
  135.  
  136. # The base of your directory for database #2
  137. #suffix "dc=debian,dc=org"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement