Fix some problems on initializing slapd.