--On Tuesday, May 16, 2023 6:48 PM +0200 Ondřej Kuzník ondra@mistotebe.net wrote:
On Tue, May 16, 2023 at 03:18:18PM +0000, Lemons, Terry wrote:
- Remove the existing slapd configuration:
rm /usr/local/etc/slapd.d/*
[...]
- Re-create the openldap environment, using the updated slapd.ldif
/usr/local/sbin/slapadd -n 0 -F /usr/local/etc/slapd.d -l /usr/local/etc/openldap/slapd.ldif
I found use of ldapmodify to be problematic regarding authentication, so opted to just delete the current configuration and replace it.
If server is stopped, you can always use slapmodify to edit the current configuration in-place instead of a wipe/reimport.
Additionally, you should learn how to use ldapmodify to change the configuration on the fly, not hand-hack config file snippets.
--Quanah