File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 77
88# General container configuration
99# see table 5.1 in http://www.openldap.org/doc/admin24/slapdconf2.html for the available log levels.
10- LDAP_LOG_LEVEL : 0
10+ LDAP_LOG_LEVEL : 256
Original file line number Diff line number Diff line change 126126
127127 # start OpenLDAP
128128 log-helper info " Start OpenLDAP..."
129- slapd -h " ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL 2>&1 &
129+
130+ if log-helper level eq debug; then
131+ # debug
132+ slapd -h " ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL 2>&1 &
133+ else
134+ slapd -h " ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap
135+ fi
136+
130137
131138 log-helper info " Waiting for OpenLDAP to start..."
132139 while [ ! -e /run/slapd/slapd.pid ]; do sleep 0.1; done
You can’t perform that action at this time.
0 commit comments