diff --git a/nixos/doc/manual/release-notes/rl-2103.xml b/nixos/doc/manual/release-notes/rl-2103.xml index 10d5cda7746..845aa841504 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. + + + The openldap module now has support for OLC-style + configuration, users of the configDir option may wish + to migrate. If you continue to use configDir, ensure that + olcPidFile is set to /run/slapd/slapd.pid. + + diff --git a/nixos/modules/services/databases/openldap.nix b/nixos/modules/services/databases/openldap.nix index cb51a3cc575..f9355201602 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);