[root@Linux-Server]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8e333475ffd8 opsh2oai/h2oai-runtime "./run.sh" 36 seconds ago Up 35 seconds 192.168.0.1:9090->9090/tcp, 192.168.0.1:12345->12345/tcp, 192.168.0.1:12348->12348/tcp clever_swirles
打开 Web 浏览器并导航至正在运行 Driverless AI Docker 映像的 Linux 系统上的 12345 端口。使用 Linux 系统已知的凭证登录。现在将使用 PAM 验证登录信息。
在此示例中,主机的 Linux 系统启用了 PAM 进行身份验证。其目标是启用 PAM 以进行 Driverless AI 身份验证,同时在 Linux 系统上存储用户信息。
[root@Linux-Server]# cat /etc/shadow | grep eric
eric:$6$inOv3GsQuRanR1H4$kYgys3oc2dQ3u9it02WTvAYqiGiQgQ/yqOiOs.g4F9DM1UJGpruUVoGl5G6OD3MrX/3uy4gWflYJnbJofaAni/::0:99999:7:::
# authentication_method
# unvalidated : Accepts user id and password, does not validate password
# none : Does not ask for user id or password, authenticated as admin
# pam : Accepts user id and password, Validates user with operating system
# ldap : Accepts user id and password, Validates against an ldap server, look
# local: Accepts a user id and password, Validated against a htpasswd file provided in local_htpasswd_file
# for additional settings under LDAP settings
authentication_method = "pam"
# Linux RPM or DEB without systemd
[root@Linux-Server]# sudo -H -u dai /opt/h2oai/dai/run-dai.sh
# Linux TAR SH
[root@Linux-Server]# ./run-dai.sh