From f285547d344409924eace8f5be1d03df08a3501c Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 9 Dec 2024 21:15:07 -0500 Subject: [PATCH] update ad-domain for 24.11 --- modules/ad-domain.nix | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/ad-domain.nix b/modules/ad-domain.nix index 5383cde..5b06496 100644 --- a/modules/ad-domain.nix +++ b/modules/ad-domain.nix @@ -62,19 +62,19 @@ in systemd.services.samba-smbd.enable = lib.mkDefault false; services.samba = { enable = true; - enableNmbd = lib.mkDefault false; - enableWinbindd = lib.mkDefault false; + nmbd.enable = lib.mkDefault false; + winbindd.enable = lib.mkDefault false; package = pkgs.samba4Full; - securityType = "ads"; - extraConfig = '' - realm = ${lib.toUpper cfg.longname} - workgroup = ${lib.toUpper cfg.shortname} - client use spnego = yes - restrict anonymous = 2 - server signing = mandatory - client signing = mandatory - kerberos method = secrets and keytab - ''; + settings.global = { + "security" = "ads"; + "realm" = lib.toUpper cfg.longname; + "workgroup" = lib.toUpper cfg.shortname; + "client use spnego" = "yes"; + "restrict anonymous" = 2; + "server signing" = "mandatory"; + "client signing" = "mandatory"; + "kerberos method" = "secrets and keytab"; + }; }; }; }