nixos/samba: remove upstream deprecated syncPasswordsByPam option
This commit is contained in:
parent
5d8dd5c259
commit
8cd4d59a32
@ -429,8 +429,6 @@ let
|
|||||||
"password sufficient ${pkgs.sssd}/lib/security/pam_sss.so use_authtok"}
|
"password sufficient ${pkgs.sssd}/lib/security/pam_sss.so use_authtok"}
|
||||||
${optionalString config.krb5.enable
|
${optionalString config.krb5.enable
|
||||||
"password sufficient ${pam_krb5}/lib/security/pam_krb5.so use_first_pass"}
|
"password sufficient ${pam_krb5}/lib/security/pam_krb5.so use_first_pass"}
|
||||||
${optionalString config.services.samba.syncPasswordsByPam
|
|
||||||
"password optional ${pkgs.samba}/lib/security/pam_smbpass.so nullok use_authtok try_first_pass"}
|
|
||||||
${optionalString cfg.enableGnomeKeyring
|
${optionalString cfg.enableGnomeKeyring
|
||||||
"password optional ${pkgs.gnome3.gnome-keyring}/lib/security/pam_gnome_keyring.so use_authtok"}
|
"password optional ${pkgs.gnome3.gnome-keyring}/lib/security/pam_gnome_keyring.so use_authtok"}
|
||||||
|
|
||||||
|
@ -26,7 +26,6 @@ let
|
|||||||
[global]
|
[global]
|
||||||
security = ${cfg.securityType}
|
security = ${cfg.securityType}
|
||||||
passwd program = /run/wrappers/bin/passwd %u
|
passwd program = /run/wrappers/bin/passwd %u
|
||||||
pam password change = ${smbToString cfg.syncPasswordsByPam}
|
|
||||||
invalid users = ${smbToString cfg.invalidUsers}
|
invalid users = ${smbToString cfg.invalidUsers}
|
||||||
|
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
@ -67,6 +66,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(mkRemovedOptionModule [ "services" "samba" "defaultShare" ] "")
|
(mkRemovedOptionModule [ "services" "samba" "defaultShare" ] "")
|
||||||
|
(mkRemovedOptionModule [ "services" "samba" "syncPasswordsByPam" ] "This option has been removed by upstream, see https://bugzilla.samba.org/show_bug.cgi?id=10669#c10")
|
||||||
];
|
];
|
||||||
|
|
||||||
###### interface
|
###### interface
|
||||||
@ -124,18 +124,6 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
syncPasswordsByPam = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Enabling this will add a line directly after pam_unix.so.
|
|
||||||
Whenever a password is changed the samba password will be updated as well.
|
|
||||||
However, you still have to add the samba password once, using smbpasswd -a user.
|
|
||||||
If you don't want to maintain an extra password database, you still can send plain text
|
|
||||||
passwords which is not secure.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
invalidUsers = mkOption {
|
invalidUsers = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [ "root" ];
|
default = [ "root" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user