|
|
ef59e1 |
#
|
|
|
ef59e1 |
# See slapd-config(5) for details on configuration options.
|
|
|
ef59e1 |
# This file should NOT be world readable.
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
|
|
|
ef59e1 |
dn: cn=config
|
|
|
ef59e1 |
objectClass: olcGlobal
|
|
|
ef59e1 |
cn: config
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# TLS settings
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# When no CA certificates are specified the Shared System Certificates
|
|
|
ef59e1 |
# are in use. In order to have these available along with the ones specified
|
|
|
ef59e1 |
# by oclTLSCACertificatePath one has to include them explicitly:
|
|
|
ef59e1 |
#olcTLSCACertificateFile: /etc/pki/tls/cert.pem
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# Private cert and key are not pregenerated.
|
|
|
ef59e1 |
#olcTLSCertificateFile:
|
|
|
ef59e1 |
#olcTLSCertificateKeyFile:
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# System-wide Crypto Policies provide up to date cipher suite which should
|
|
|
ef59e1 |
# be used unless one needs a finer grinded selection of ciphers. Hence, the
|
|
|
ef59e1 |
# PROFILE=SYSTEM value represents the default behavior which is in place
|
|
|
ef59e1 |
# when no explicit setting is used. (see openssl-ciphers(1) for more info)
|
|
|
ef59e1 |
#olcTLSCipherSuite: PROFILE=SYSTEM
|
|
|
ef59e1 |
|
|
|
ef59e1 |
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# Do not enable referrals until AFTER you have a working directory
|
|
|
ef59e1 |
# service AND an understanding of referrals.
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
#olcReferral: ldap://root.openldap.org
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# Sample security restrictions
|
|
|
ef59e1 |
# Require integrity protection (prevent hijacking)
|
|
|
ef59e1 |
# Require 112-bit (3DES or better) encryption for updates
|
|
|
ef59e1 |
# Require 64-bit encryption for simple bind
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
#olcSecurity: ssf=1 update_ssf=112 simple_bind=64
|
|
|
ef59e1 |
|
|
|
ef59e1 |
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# Load dynamic backend modules:
|
|
|
ef59e1 |
# - modulepath is architecture dependent value (32/64-bit system)
|
|
|
ef59e1 |
# - back_sql.la backend requires openldap-servers-sql package
|
|
|
ef59e1 |
# - dyngroup.la and dynlist.la cannot be used at the same time
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
|
|
|
ef59e1 |
#dn: cn=module,cn=config
|
|
|
ef59e1 |
#objectClass: olcModuleList
|
|
|
ef59e1 |
#cn: module
|
|
|
ef59e1 |
#olcModulepath: /usr/lib/openldap
|
|
|
ef59e1 |
#olcModulepath: /usr/lib64/openldap
|
|
|
ef59e1 |
#olcModuleload: accesslog.la
|
|
|
ef59e1 |
#olcModuleload: auditlog.la
|
|
|
ef59e1 |
#olcModuleload: back_dnssrv.la
|
|
|
ef59e1 |
#olcModuleload: back_ldap.la
|
|
|
ef59e1 |
#olcModuleload: back_mdb.la
|
|
|
ef59e1 |
#olcModuleload: back_meta.la
|
|
|
ef59e1 |
#olcModuleload: back_null.la
|
|
|
ef59e1 |
#olcModuleload: back_passwd.la
|
|
|
ef59e1 |
#olcModuleload: back_relay.la
|
|
|
ef59e1 |
#olcModuleload: back_shell.la
|
|
|
ef59e1 |
#olcModuleload: back_sock.la
|
|
|
ef59e1 |
#olcModuleload: collect.la
|
|
|
ef59e1 |
#olcModuleload: constraint.la
|
|
|
ef59e1 |
#olcModuleload: dds.la
|
|
|
ef59e1 |
#olcModuleload: deref.la
|
|
|
ef59e1 |
#olcModuleload: dyngroup.la
|
|
|
ef59e1 |
#olcModuleload: dynlist.la
|
|
|
ef59e1 |
#olcModuleload: memberof.la
|
|
|
ef59e1 |
#olcModuleload: pcache.la
|
|
|
ef59e1 |
#olcModuleload: ppolicy.la
|
|
|
ef59e1 |
#olcModuleload: refint.la
|
|
|
ef59e1 |
#olcModuleload: retcode.la
|
|
|
ef59e1 |
#olcModuleload: rwm.la
|
|
|
ef59e1 |
#olcModuleload: seqmod.la
|
|
|
ef59e1 |
#olcModuleload: smbk5pwd.la
|
|
|
ef59e1 |
#olcModuleload: sssvlv.la
|
|
|
ef59e1 |
#olcModuleload: syncprov.la
|
|
|
ef59e1 |
#olcModuleload: translucent.la
|
|
|
ef59e1 |
#olcModuleload: unique.la
|
|
|
ef59e1 |
#olcModuleload: valsort.la
|
|
|
ef59e1 |
|
|
|
ef59e1 |
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# Schema settings
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
|
|
|
ef59e1 |
dn: cn=schema,cn=config
|
|
|
ef59e1 |
objectClass: olcSchemaConfig
|
|
|
ef59e1 |
cn: schema
|
|
|
ef59e1 |
|
|
|
ef59e1 |
include: file:///etc/openldap/schema/core.ldif
|
|
|
ef59e1 |
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# Frontend settings
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
|
|
|
ef59e1 |
dn: olcDatabase=frontend,cn=config
|
|
|
ef59e1 |
objectClass: olcDatabaseConfig
|
|
|
ef59e1 |
olcDatabase: frontend
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# Sample global access control policy:
|
|
|
ef59e1 |
# Root DSE: allow anyone to read it
|
|
|
ef59e1 |
# Subschema (sub)entry DSE: allow anyone to read it
|
|
|
ef59e1 |
# Other DSEs:
|
|
|
ef59e1 |
# Allow self write access
|
|
|
ef59e1 |
# Allow authenticated users read access
|
|
|
ef59e1 |
# Allow anonymous users to authenticate
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
#olcAccess: to dn.base="" by * read
|
|
|
ef59e1 |
#olcAccess: to dn.base="cn=Subschema" by * read
|
|
|
ef59e1 |
#olcAccess: to *
|
|
|
ef59e1 |
# by self write
|
|
|
ef59e1 |
# by users read
|
|
|
ef59e1 |
# by anonymous auth
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# if no access controls are present, the default policy
|
|
|
ef59e1 |
# allows anyone and everyone to read anything but restricts
|
|
|
ef59e1 |
# updates to rootdn. (e.g., "access to * by * read")
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# rootdn can always read and write EVERYTHING!
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# Configuration database
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
|
|
|
ef59e1 |
dn: olcDatabase=config,cn=config
|
|
|
ef59e1 |
objectClass: olcDatabaseConfig
|
|
|
ef59e1 |
olcDatabase: config
|
|
|
ef59e1 |
olcAccess: to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,c
|
|
|
ef59e1 |
n=auth" manage by * none
|
|
|
ef59e1 |
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# Server status monitoring
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
|
|
|
ef59e1 |
dn: olcDatabase=monitor,cn=config
|
|
|
ef59e1 |
objectClass: olcDatabaseConfig
|
|
|
ef59e1 |
olcDatabase: monitor
|
|
|
ef59e1 |
olcAccess: to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,c
|
|
|
ef59e1 |
n=auth" read by dn.base="cn=Manager,dc=my-domain,dc=com" read by * none
|
|
|
ef59e1 |
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
# Backend database definitions
|
|
|
ef59e1 |
#
|
|
|
ef59e1 |
|
|
|
ef59e1 |
dn: olcDatabase=mdb,cn=config
|
|
|
ef59e1 |
objectClass: olcDatabaseConfig
|
|
|
ef59e1 |
objectClass: olcMdbConfig
|
|
|
ef59e1 |
olcDatabase: mdb
|
|
|
ef59e1 |
olcSuffix: dc=my-domain,dc=com
|
|
|
ef59e1 |
olcRootDN: cn=Manager,dc=my-domain,dc=com
|
|
|
ef59e1 |
olcDbDirectory: /var/lib/ldap
|
|
|
ef59e1 |
olcDbIndex: objectClass eq,pres
|
|
|
ef59e1 |
olcDbIndex: ou,cn,mail,surname,givenname eq,pres,sub
|