cluster/services/idm: fix rssh
This commit is contained in:
parent
886ddd9a1a
commit
42627235d1
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ cluster, config, pkgs, utils, ... }:
|
{ cluster, config, lib, pkgs, utils, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
frontendLink = cluster.config.links.idm;
|
frontendLink = cluster.config.links.idm;
|
||||||
|
@ -39,9 +39,8 @@ in
|
||||||
security = {
|
security = {
|
||||||
pam.services.sudo = { config, ... }: {
|
pam.services.sudo = { config, ... }: {
|
||||||
rules.auth.rssh = {
|
rules.auth.rssh = {
|
||||||
|
enable = lib.mkForce true;
|
||||||
order = config.rules.auth.unix.order - 10;
|
order = config.rules.auth.unix.order - 10;
|
||||||
control = "sufficient";
|
|
||||||
modulePath = "${pkgs.pam_rssh}/lib/libpam_rssh.so";
|
|
||||||
settings = {
|
settings = {
|
||||||
authorized_keys_command = "/etc/ssh/authorized_keys_command_kanidm";
|
authorized_keys_command = "/etc/ssh/authorized_keys_command_kanidm";
|
||||||
authorized_keys_command_user = "nobody";
|
authorized_keys_command_user = "nobody";
|
||||||
|
|
Loading…
Reference in a new issue