openldap/servers/slapd/slapd.ldif

97 lines
2.6 KiB
Plaintext
Raw Normal View History

2005-05-12 11:53:02 +08:00
#
# See slapd-config(5) for details on configuration options.
2005-05-12 11:53:02 +08:00
# This file should NOT be world readable.
#
dn: cn=config
objectClass: olcGlobal
cn: config
#
#
# Define global ACLs to disable default read access.
#
olcArgsFile: %LOCALSTATEDIR%/run/slapd.args
olcPidFile: %LOCALSTATEDIR%/run/slapd.pid
2005-05-12 11:53:02 +08:00
#
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#olcReferral: ldap://root.openldap.org
#
# Sample security restrictions
# Require integrity protection (prevent hijacking)
# Require 112-bit (3DES or better) encryption for updates
# Require 64-bit encryption for simple bind
#olcSecurity: ssf=1 update_ssf=112 simple_bind=64
#
# Load dynamic backend modules:
#
#dn: cn=module,cn=config
#objectClass: olcModuleList
2007-11-20 06:17:45 +08:00
#cn: module
2005-05-12 11:53:02 +08:00
#olcModulepath: %MODULEDIR%
#olcModuleload: back_bdb.la
2006-04-08 12:21:03 +08:00
#olcModuleload: back_hdb.la
2005-05-12 11:53:02 +08:00
#olcModuleload: back_ldap.la
#olcModuleload: back_passwd.la
#olcModuleload: back_shell.la
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
include: file://%SYSCONFDIR%/schema/core.ldif
2005-05-12 11:53:02 +08:00
# Frontend settings
#
dn: olcDatabase=frontend,cn=config
objectClass: olcDatabaseConfig
2014-09-08 19:32:04 +08:00
objectClass: olcFrontendConfig
2005-05-12 11:53:02 +08:00
olcDatabase: frontend
#
# Sample global access control policy:
# Root DSE: allow anyone to read it
# Subschema (sub)entry DSE: allow anyone to read it
# Other DSEs:
# Allow self write access
# Allow authenticated users read access
# Allow anonymous users to authenticate
#
#olcAccess: to dn.base="" by * read
#olcAccess: to dn.base="cn=Subschema" by * read
#olcAccess: to *
# by self write
# by users read
# by anonymous auth
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn. (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!
#
#######################################################################
# LMDB database definitions
2005-05-12 11:53:02 +08:00
#######################################################################
#
dn: olcDatabase=mdb,cn=config
2005-05-12 11:53:02 +08:00
objectClass: olcDatabaseConfig
objectClass: olcMdbConfig
olcDatabase: mdb
2014-04-26 03:43:12 +08:00
olcDbMaxSize: 1073741824
olcSuffix: dc=my-domain,dc=com
olcRootDN: cn=Manager,dc=my-domain,dc=com
2005-05-12 11:53:02 +08:00
# Cleartext passwords, especially for the rootdn, should
2007-11-20 06:17:45 +08:00
# be avoided. See slappasswd(8) and slapd-config(5) for details.
2005-05-12 11:53:02 +08:00
# Use of strong authentication encouraged.
olcRootPW: secret
2005-05-12 11:53:02 +08:00
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
olcDbDirectory: %LOCALSTATEDIR%/openldap-data
# Indices to maintain
olcDbIndex: objectClass eq