Merge "Restart slapd after cleanup"
This commit is contained in:
8
lib/ldap
8
lib/ldap
@@ -82,6 +82,14 @@ function init_ldap {
|
||||
|
||||
# Remove data but not schemas
|
||||
clear_ldap_state
|
||||
if is_ubuntu; then
|
||||
# a bug in OpenLDAP 2.6.7+
|
||||
# (https://bugs.openldap.org/show_bug.cgi?id=10336) causes slapd crash
|
||||
# after deleting nonexisting tree. It is fixed upstream, but Ubuntu is
|
||||
# still not having a fix in Noble. Try temporarily simly restarting the
|
||||
# process.
|
||||
sudo service $LDAP_SERVICE_NAME restart
|
||||
fi
|
||||
|
||||
# Add our top level ldap nodes
|
||||
if ldapsearch -x -w $LDAP_PASSWORD -D "$LDAP_MANAGER_DN" -H $LDAP_URL -b "$LDAP_BASE_DN" | grep -q "Success"; then
|
||||
|
Reference in New Issue
Block a user