fix: ldap auth
This commit is contained in:
@@ -41,6 +41,9 @@ in
|
||||
|
||||
ldap_schema = rfc2307
|
||||
ldap_group_member = memberUid
|
||||
|
||||
use_fully_qualified_names = False
|
||||
fallback_homedir = /home/%u
|
||||
'';
|
||||
environmentFile = config.sops.secrets.sssd-environment.path;
|
||||
};
|
||||
@@ -60,7 +63,7 @@ in
|
||||
|
||||
services.openssh = {
|
||||
settings = {
|
||||
AuthorizedKeysCommand = "/etc/ssh/ldap-authorized-keys";
|
||||
AuthorizedKeysCommand = "/etc/ssh/ldap-authorized-keys %u";
|
||||
AuthorizedKeysCommandUser = "nslcd"; # default is “nobody” :contentReference[oaicite:0]{index=0}
|
||||
PubkeyAuthentication = "yes";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user