aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules
diff options
context:
space:
mode:
authorKai Wohlfahrt <kai.wohlfahrt@gmail.com>2020-09-13 22:43:11 +0100
committerKai Wohlfahrt <kai.wohlfahrt@gmail.com>2020-11-21 15:45:16 +0000
commit2050376caee44dd52e7aaa00a9bfac6b644e5bff (patch)
tree9d148b1c4424f9070880959df882aaffe674a1b5 /nixos/modules
parent5fafbee87a3ecce798df55bbaaabcead43fc17b6 (diff)
nixos/openldap: Mention schemas in migration hint
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/databases/openldap.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/modules/services/databases/openldap.nix b/nixos/modules/services/databases/openldap.nix
index f9355201602c..9de4c7fa41be 100644
--- a/nixos/modules/services/databases/openldap.nix
+++ b/nixos/modules/services/databases/openldap.nix
@@ -411,8 +411,10 @@ in {
After deploying this configuration, you can run:
slapcat -F ${configDir} -n0 -H 'ldap:///???(!(objectClass=olcSchemaConfig))'
- on the same host to print your current configuration in LDIF format,
- which should be straightforward to convert into Nix settings.
+ on the same host to print 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 users of the
+ default schemas), so be sure to migrate that as well.
'') ++ (flatten (map (args@{old, new, ...}: lib.optional ((lib.hasAttr old cfg) && (lib.getAttr old cfg) != null) ''
The attribute `services.openldap.${old}` is deprecated. Please set it to
`null` and use the following option instead: