diff --git a/machines/gerd/services/lldap.nix b/machines/gerd/services/lldap.nix index cec2584..3961687 100644 --- a/machines/gerd/services/lldap.nix +++ b/machines/gerd/services/lldap.nix @@ -1,11 +1,31 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: let svc_domain = "ldap.${config.mine.shared.settings.domain}"; + + resetPasswordStartPatch = pkgs.writeText "lldap-reset-password-start.patch" '' +diff --git a/server/src/main.rs b/server/src/main.rs +index 71e4928..63be13c 100644 +--- a/server/src/main.rs ++++ b/server/src/main.rs +@@ -158,7 +158,7 @@ async fn set_up_server(config: Configuration) -> Result { + ))?; + } + if config.force_update_private_key || config.force_ldap_user_pass_reset { +- bail!("Restart the server without --force-update-private-key or --force-ldap-user-pass-reset to continue."); ++ // bail!("Restart the server without --force-update-private-key or --force-ldap-user-pass-reset to continue."); + } + let server_builder = infra::ldap_server::build_ldap_server( + &config, +''; in { services.lldap = { enable = true; + package = pkgs.lldap.overrideAttrs (old: { + patches = old.patches ++ [ resetPasswordStartPatch ]; + }); + settings = { verbose = true; ldap_user_email = "fricloudlldap.grief462@simplelogin.com";