summary refs log tree commit diff
path: root/nixos/doc/manual/release-notes/rl-2103.xml
diff options
context:
space:
mode:
authorKai Wohlfahrt <kai.wohlfahrt@gmail.com>2020-09-13 23:20:23 +0100
committerKai Wohlfahrt <kai.wohlfahrt@gmail.com>2020-11-21 16:13:03 +0000
commit3f892c2174d3e215be2e12d6dacede3cd4db392c (patch)
treee51751b5f860f64ab90cc0d9ba270abe43a0b2c9 /nixos/doc/manual/release-notes/rl-2103.xml
parent2050376caee44dd52e7aaa00a9bfac6b644e5bff (diff)
downloadnixpkgs-3f892c2174d3e215be2e12d6dacede3cd4db392c.tar
nixpkgs-3f892c2174d3e215be2e12d6dacede3cd4db392c.tar.gz
nixpkgs-3f892c2174d3e215be2e12d6dacede3cd4db392c.tar.bz2
nixpkgs-3f892c2174d3e215be2e12d6dacede3cd4db392c.tar.lz
nixpkgs-3f892c2174d3e215be2e12d6dacede3cd4db392c.tar.xz
nixpkgs-3f892c2174d3e215be2e12d6dacede3cd4db392c.tar.zst
nixpkgs-3f892c2174d3e215be2e12d6dacede3cd4db392c.zip
nixos/openldap: Remove extraConfig options
Instead of deprecating, as per PR feedback
Diffstat (limited to 'nixos/doc/manual/release-notes/rl-2103.xml')
-rw-r--r--nixos/doc/manual/release-notes/rl-2103.xml18
1 files changed, 18 insertions, 0 deletions
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 <literal>configDir</literal>, ensure that
       <literal>olcPidFile</literal> is set to <literal>/run/slapd/slapd.pid</literal>.
     </para>
+    <para>
+      As a result, <literal>extraConfig</literal> and <literal>extraDatabaseConfig</literal>
+      are removed. To help with migration, you can convert your <literal>slapd.conf</literal>
+      file to OLC configuration with the following script (find the location of this
+      configuration file by running <literal>systemctl status openldap</literal>, it is the
+      <literal>-f</literal> option.
+    </para>
+    <programlisting>
+      TMPDIR=$(mktemp -d)
+      slaptest -f /path/to/slapd.conf $TMPDIR
+      slapcat -F $TMPDIR -n0 -H 'ldap:///???(!(objectClass=olcSchemaConfig))'
+    </programlisting>
+    <para>
+      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 <literal>slaptest</literal> is buggy with schemas directly in the config file.
+    </para>
    </listitem>
   </itemizedlist>
  </section>