4

我正在尝试配置和了解最常见的 Jupyter 身份验证器是如何工作的。但是,我无法理解它LocalAuthenticator的工作原理以及它与PAMAuthenticator. Jupyter 文档声明如下:The LocalAuthenticator is a special kind of authenticator that has the ability to manage users on the local system.. 鉴于我在本地运行所有东西,在我的笔记本电脑上,我的想法是我可以使用我用来登录我的 Linux 用户的相同凭据。但是,这不起作用。JupyterHub 服务器提供以下消息:Failed login for <user>.

我的 JupyterHub 配置文件仅包含以下行:

c.JupyterHub.authenticator_class = 'jupyterhub.auth.LocalAuthenticator'.

如果我将上面的行更改为:

c.JupyterHub.authenticator_class = 'jupyterhub.auth.PAMAuthenticator'

然后一切正常,登录成功。

有人可以解释一下这两个身份验证器的区别以及为什么LocalAuthenticator在我的情况下不起作用吗?我知道的唯一区别是(根据文档)LocalAuthenticator如果新用户不存在,则会创建新用户。但是,在设置c.LocalAuthenticator.create_system_users = True并尝试使用不存在的用户登录后,不会创建新用户。

谢谢你。

PS:我的操作系统是 Debian Testing,我已经按照 GitHub 页面上提供的说明安装了 JupyterHub。

4

0 回答 0