Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Franck Royer

By: a guest on Apr 13th, 2009  |  syntax: None  |  size: 5.10 KB  |  views: 234  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # This is the main slapd configuration file. See slapd.conf for more
  2. # info on the configuration options.
  3.  
  4. #######################################################################
  5. # Global Directives:
  6.  
  7. # Features to permit the utilisation of the old version
  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.  
  16. # Where the pid file is put. The init.d script
  17. # will not stop the server if you change this.
  18. pidfile         /var/run/slapd/slapd.pid
  19.  
  20. # List of arguments that were passed to the server
  21. argsfile        /var/run/slapd/slapd.args
  22.  
  23. # Read slapd.conf(5) for possible values
  24. loglevel        256
  25. logfile         /var/log/slapd.log
  26.  
  27. # Where the dynamically loaded modules are stored
  28. modulepath    /usr/lib/ldap
  29. moduleload    back_hdb
  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 hdb:
  40. # Backend specific directives apply to this backend until another
  41. # 'backend' directive occurs
  42. backend        hdb
  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. database config
  50. #######################################################################
  51. # Specific Directives for database #1, of type hdb:
  52. # Database specific directives apply to this databasse until another
  53. # 'database' directive occurs
  54. database        hdb
  55.  
  56. # The base of your directory in database #1
  57. suffix          "dc=kollok,dc=org"
  58.  
  59. # rootdn directive for specifying a superuser on the database. This is needed
  60. # for syncrepl.
  61. #rootdn          "cn=admin,cn=config"
  62. rootdn          "cn=admin,dc=kollok,dc=org"
  63. rootpw          {SSHA}ZwywZvjMzmw7UKIlT24H9Vis8Sh7uB5d
  64.  
  65. # Where the database file are physically stored for database #1
  66. directory       "/var/lib/ldap"
  67.  
  68. # The dbconfig settings are used to generate a DB_CONFIG file the first
  69. # time slapd starts.  They do NOT override existing an existing DB_CONFIG
  70. # file.  You should therefore change these settings in DB_CONFIG directly
  71. # or remove DB_CONFIG and restart slapd for changes to take effect.
  72.  
  73. # For the Debian package we use 2MB as default but be sure to update this
  74. # value if you have plenty of RAM
  75. dbconfig set_cachesize 0 2097152 0
  76.  
  77. # Sven Hartge reported that he had to set this value incredibly high
  78. # to get slapd running at all. See http://bugs.debian.org/303057 for more
  79. # information.
  80.  
  81. # Number of objects that can be locked at the same time.
  82.         dbconfig set_lk_max_objects 1500
  83. # Number of locks (both requested and granted)
  84.         dbconfig set_lk_max_locks 1500
  85. # Number of lockers
  86.         dbconfig set_lk_max_lockers 1500
  87.  
  88. # Indexing options for database #1
  89.         index           objectClass eq
  90.  
  91. # Save the time that the entry gets modified, for database #1
  92.         lastmod         on
  93.  
  94. # Checkpoint the BerkeleyDB database periodically in case of system
  95. # failure and to speed slapd shutdown.
  96.         checkpoint      512 30
  97.  
  98. # Where to store the replica logs for database #1
  99. # replogfile    /var/lib/ldap/replog
  100.  
  101. # The userPassword by default can be changed
  102. # by the entry owning it if they are authenticated.
  103. # Others should not be able to see it, except the
  104. # admin entry below
  105. # These access lines apply to database #1 only
  106. # acl specific for phamm
  107.         access to dn.base="" by * read
  108.         access to dn.base="cn=Subschema" by * read
  109.  
  110. # protection des mots de passe
  111.         access to attrs=userPassword
  112.         by dn="cn=proxy,dc=kollok,dc=org" read
  113.         by self write
  114.         by anonymous auth
  115.         by * none
  116. # empêche un utilisateur d'usurper l'identité d'un autre
  117.         access to attrs=uidNumber,gidNumber
  118.         by dn="cn=proxy,dc=kollok,dc=org" read
  119.         by * read
  120. # les utilisateurs peuvent regarder, soi même peut modifier, l'anonyme peut s'authentifier
  121.         access to *
  122.         by self write
  123.         by users read
  124.         by anonymous auth
  125.  
  126. # Les index sont important pour avoir de bonnes performances
  127. index   objectClass     eq
  128. index   o,ou,cn,sn,uid  eq
  129. index   uidNumber,gidNumber,memberuid   eq
  130.  
  131. # For Netscape Roaming support, each user gets a roaming
  132. # profile for which they have write access to
  133. #access to dn=".*,ou=Roaming,o=morsnet"
  134. #        by dn="cn=admin,dc=kollok,dc=org" write
  135. #        by dnattr=owner write
  136.  
  137. #######################################################################
  138. # Specific Directives for database #2, of type 'other' (can be hdb too):
  139. # Database specific directives apply to this databasse until another
  140. # 'database' directive occurs
  141. #database        <other>
  142.  
  143. # The base of your directory for database #2
  144. #suffix        "dc=debian,dc=org"