Skip to content

Commit 9d9ffc5

Browse files
committed
ldap: Add sss_ssh_authorizedkeys
1 parent 5c3eb2b commit 9d9ffc5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/infrastructure/ldap.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ session required pam_mkhomedir.so skel=/etc/skel umask=0022
181181

182182
另外记得像前面在 Debian 中安装介绍到的那样修改 `/etc/nsswitch.conf` 以及 `/etc/nslcd.conf`.
183183

184+
#### 通过 SSSD 从 LDAP 获取 SSH 公钥
185+
186+
```shell title="/etc/ssh/sshd_config.d/sss.conf"
187+
AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys %u
188+
AuthorizedKeysCommandUser nobody
189+
```
190+
191+
当然你也可以直接加在 `ustclug.conf` 里。
192+
184193
### NSCD 使用说明
185194

186195
在 SSSD 未安装的情况下,NSCD 会提供 LDAP 缓存服务。如果在使用 NSCD 的机器上需要清空 LDAP 缓存,执行以下命令:

0 commit comments

Comments
 (0)