forked from jengelh/openldap2
1d9e87d5de
- bsc#1085064 Add script "openldap_update_modules_path.sh" which which removes the configuration item olcModulePath in cn=config which is after upgrade from SLE12 to SLE15 holds inappropriate information. If the cn=config is being used on a system, the conflicting items in slapd.conf are ignored, despite of it, the backend DB configuration section has been also commented out in the default slapd.conf. In case of correct cn=config (the olcModulePath has been already removed), the script stops without touching anything. OBS-URL: https://build.opensuse.org/request/show/593976 OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=207
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
# This file (slapd.conf.olctemplate) is a template for creating the initial
|
|
# online configuration for OpenLDAP server daemon.
|
|
#
|
|
# In order to use online configuration for OpenLDAP server daemon, make sure to set:
|
|
# /etc/sysconfig/openldap OPENLDAP_CONFIG_BACKEND="ldap"
|
|
#
|
|
# Before starting the OpenLDAP daemon (slapd.conf) with onlne configuration for
|
|
# the very first time, you have to prepare the online configuration directory
|
|
# from this template file - first, make necessary customisations if you wish, and then
|
|
# run:
|
|
# cd /etc/openldap && slaptest -f slapd.conf.olctemplate -F slapd.d
|
|
#
|
|
# Then you may start OpenLDAP daemon:
|
|
# systemctl start slapd.service
|
|
#
|
|
# To verify that LDAP service is running properly, try the following command:
|
|
# ldapsearch -x -D cn=admin,cn=config -w secret -b cn=config
|
|
|
|
#
|
|
# See slapd.conf(5) for details on configuration options.
|
|
# See /etc/openldap/slapd.conf.example for more examples.
|
|
# This file should NOT be world readable.
|
|
#
|
|
|
|
pidfile /run/slapd/slapd.pid
|
|
argsfile /run/slapd/slapd.args
|
|
|
|
# The following schema files are often useful
|
|
include /etc/openldap/schema/core.schema
|
|
include /etc/openldap/schema/cosine.schema
|
|
include /etc/openldap/schema/inetorgperson.schema
|
|
include /etc/openldap/schema/rfc2307bis.schema
|
|
include /etc/openldap/schema/yast.schema
|
|
|
|
# Load backend modules such as database engines
|
|
# modulepath /usr/lib64/openldap
|
|
# moduleload back_mdb.la
|
|
# moduleload back_hdb.la
|
|
# moduleload back_bdb.la
|
|
|
|
# Define the config database that holds all online configurations
|
|
database config
|
|
rootdn "cn=admin,cn=config"
|
|
# Please avoid using clear text for root password
|
|
# See slappasswd(8) for instructions on creating a salted+hashed password
|
|
rootpw secret
|