From 3f892c2174d3e215be2e12d6dacede3cd4db392c Mon Sep 17 00:00:00 2001 From: Kai Wohlfahrt Date: Sun, 13 Sep 2020 23:20:23 +0100 Subject: nixos/openldap: Remove extraConfig options Instead of deprecating, as per PR feedback --- nixos/doc/manual/release-notes/rl-2103.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'nixos/doc/manual/release-notes') diff --git a/nixos/doc/manual/release-notes/rl-2103.xml b/nixos/doc/manual/release-notes/rl-2103.xml index 845aa841504..55c1229a164 100644 --- a/nixos/doc/manual/release-notes/rl-2103.xml +++ b/nixos/doc/manual/release-notes/rl-2103.xml @@ -192,6 +192,24 @@ to migrate. If you continue to use configDir, ensure that olcPidFile is set to /run/slapd/slapd.pid. + + As a result, extraConfig and extraDatabaseConfig + are removed. To help with migration, you can convert your slapd.conf + file to OLC configuration with the following script (find the location of this + configuration file by running systemctl status openldap, it is the + -f option. + + + TMPDIR=$(mktemp -d) + slaptest -f /path/to/slapd.conf $TMPDIR + slapcat -F $TMPDIR -n0 -H 'ldap:///???(!(objectClass=olcSchemaConfig))' + + + This will dump your current configuration in LDIF format, which should be + straightforward to convert into Nix settings. This does not show your schema + configuration, as this is unnecessarily verbose for users of the default schemas + and slaptest is buggy with schemas directly in the config file. + -- cgit 1.4.1