+39
-15
nixos/modules/services/databases/lldap.nix
+39
-15
nixos/modules/services/databases/lldap.nix
·········-lldap: The default admin password is declared with the setting `ldap_user_pass_file`, but `force_ldap_user_pass_reset` is set to `false`.-This means the admin password can be changed through the UI and will drift from the one defined in your nix config.-It also means changing the setting `ldap_user_pass_file` will have no effect on the admin password.-Either set `force_ldap_user_pass_reset` to `"always"` or silence this warning by setting the option `services.lldap.silenceForceUserPassResetWarning` to `true`.
·········+(cfg.settings.ldap_user_pass_file or null) != null || (cfg.settings.ldap_user_pass or null) != null;+message = "lldap: Default admin user password must be set. Please set the `ldap_user_pass` or better the `ldap_user_pass_file` setting.";+(cfg.settings.ldap_user_pass_file or null) == null || (cfg.settings.ldap_user_pass or null) == null;+message = "lldap: Both `ldap_user_pass` and `ldap_user_pass_file` settings should not be set at the same time. Set one to `null`.";+(cfg.settings.force_ldap_user_pass_reset == false && cfg.silenceForceUserPassResetWarning == false)+the admin password can be changed through the UI and will drift from the one defined in your nix config.+It also means changing the setting `ldap_user_pass` or `ldap_user_pass_file` will have no effect on the admin password.+Either set `force_ldap_user_pass_reset` to `"always"` or silence this warning by setting the option `services.lldap.silenceForceUserPassResetWarning` to `true`.
+6
-2
nixos/tests/lldap.nix
+6
-2
nixos/tests/lldap.nix
············
·········+ldap_user_pass_file = lib.mkForce (toString (pkgs.writeText "adminPasswordFile" adminPassword));···
-64
pkgs/by-name/ll/lldap/0001-parameterize-frontend-location.patch
-64
pkgs/by-name/ll/lldap/0001-parameterize-frontend-location.patch
···-async fn index<Backend>(data: web::Data<AppState<Backend>>) -> actix_web::Result<impl Responder> {
···
+16
-14
pkgs/by-name/ll/lldap/package.nix
+16
-14
pkgs/by-name/ll/lldap/package.nix
············
············