about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorKai Wohlfahrt <kai.wohlfahrt@gmail.com>2020-09-13 22:42:54 +0100
committerKai Wohlfahrt <kai.wohlfahrt@gmail.com>2020-11-21 15:45:15 +0000
commit5fafbee87a3ecce798df55bbaaabcead43fc17b6 (patch)
treeefdd418527f78d5c9be0cdd5288c5bcda348d254 /nixos
parentadda7e62d0c2a80aa85e0c22ad806874812f9f54 (diff)
nixos/openldap: Add release-notes for OLC config
Diffstat (limited to 'nixos')
-rw-r--r--nixos/doc/manual/release-notes/rl-2103.xml8
-rw-r--r--nixos/modules/services/databases/openldap.nix8
2 files changed, 9 insertions, 7 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2103.xml b/nixos/doc/manual/release-notes/rl-2103.xml
index 10d5cda77464b..845aa8415040f 100644
--- a/nixos/doc/manual/release-notes/rl-2103.xml
+++ b/nixos/doc/manual/release-notes/rl-2103.xml
@@ -185,6 +185,14 @@
      which is the new stable release.  OpenAFS 1.6 was removed.
     </para>
    </listitem>
+   <listitem>
+    <para>
+      The <literal>openldap</literal> module now has support for OLC-style
+      configuration, users of the <literal>configDir</literal> option may wish
+      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>
+   </listitem>
   </itemizedlist>
  </section>
 
diff --git a/nixos/modules/services/databases/openldap.nix b/nixos/modules/services/databases/openldap.nix
index cb51a3cc575c5..f9355201602c8 100644
--- a/nixos/modules/services/databases/openldap.nix
+++ b/nixos/modules/services/databases/openldap.nix
@@ -421,13 +421,7 @@ in {
           let oldValue = (getAttr old cfg);
           in if (isList oldValue) then "[ ${concatStringsSep " " oldValue} ]" else oldValue
         )}
-    '') deprecations)) ++ (optional (cfg.configDir != null && (versionOlder config.system.stateVersion "20.09")) ''
-      The attribute `services.openldap.settings` now exists, and may be more
-      useful than `services.openldap.configDir`. If you continue to use
-      `configDir`, ensure that `olcPidFile` is set to "/run/slapd/slapd.pid".
-
-      Set `system.stateVersion` to "20.09" or greater to silence this message.
-    '');
+    '') deprecations));
 
     assertions = [{
       assertion = !(cfg.rootpwFile != null && cfg.rootpw != null);