aquaballoon

/etc/ldap/slapd.conf

Jun 24th, 2011
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.40 KB | None | 0 0
  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
  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        none
  25.  
  26. # Where the dynamically loaded modules are stored
  27. modulepath    /usr/lib/ldap
  28. moduleload    back_hdb
  29.  
  30. # The maximum number of entries that is returned for a search operation
  31. sizelimit 500
  32.  
  33. # The tool-threads parameter sets the actual amount of cpu's that is used
  34. # for indexing.
  35. tool-threads 1
  36.  
  37. #######################################################################
  38. # Specific Backend Directives for hdb:
  39. # Backend specific directives apply to this backend until another
  40. # 'backend' directive occurs
  41. backend        hdb
  42.  
  43. #######################################################################
  44. # Specific Backend Directives for 'other':
  45. # Backend specific directives apply to this backend until another
  46. # 'backend' directive occurs
  47. #backend        <other>
  48. database config
  49. #######################################################################
  50. # Specific Directives for database #1, of type hdb:
  51. # Database specific directives apply to this databasse until another
  52. # 'database' directive occurs
  53. database        hdb
  54.  
  55. # The base of your directory in database #1
  56. suffix  "dc=linuxtest,dc=huree"
  57.  
  58. # rootdn directive for specifying a superuser on the database. This is needed
  59. # for syncrepl.
  60. rootdn "cn=admin,dc=linuxtest,dc=huree"
  61. rootpw  abc123
  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. # Where to store the replica logs for database #1
  97. # replogfile    /var/lib/ldap/replog
  98.  
  99. # The userPassword by default can be changed
  100. # by the entry owning it if they are authenticated.
  101. # Others should not be able to see it, except the
  102. # admin entry below
  103. # These access lines apply to database #1 only
  104. # acl specific for phamm
  105.  
  106. access to attrs=userPassword,shadowLastChange
  107.     by dn="cn=admin,dc=linuxtest,dc=huree"  write
  108.         by anonymous auth
  109.         by self write
  110.         by * none
  111.  
  112. access to *
  113.        by dn="cn=admin,dc=linuxtest,dc=huree" write    
  114.         by * read
  115.  
  116. access to dn.base="" by * read
  117.  
  118. # For Netscape Roaming support, each user gets a roaming
  119. # profile for which they have write access to
  120. #access to dn=".*,ou=Roaming,o=morsnet"
  121. #        by dn="cn=admin,dc=yourdomain,dc=tld" write
  122. #        by dnattr=owner write
  123.  
  124. #######################################################################
  125. # Specific Directives for database #2, of type 'other' (can be hdb too):
  126. # Database specific directives apply to this databasse until another
  127. # 'database' directive occurs
  128. #database        <other>
  129.  
  130. # The base of your directory for database #2
  131. #suffix        "dc=debian,dc=org"
Advertisement
Add Comment
Please, Sign In to add comment