mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
update ad-domain for 24.11
This commit is contained in:
parent
f8b61ea795
commit
f285547d34
1 changed files with 12 additions and 12 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue