安装和设置 Ident 服务器
若要使用 Ident 身份验证,您必须安装一个或多个包,具体取决于您的操作系统,并在 Vertica 服务器上启用 Ident 服务器。oidentd是兼容 Vertica 并符合 RFC 1413 标准的 Ident 守护程序。
注意
您可以在 oidentd 网站上找到 oidentd 的源代码和安装说明。要安装和配置 Ident 身份验证以用于 Vertica 数据库,请按照适用于您的操作系统的相应步骤进行操作。
Red hat 7.x/CentOS 7.x
通过安装 authd 和 xinetd 包,在 Red Hat 7.x 或 CentOS 7.x 上安装 Ident 服务器:
$ yum install authd
$ yum install xinetd
Ubuntu/debian
通过运行此命令,在 Ubuntu 或 Debian 上安装 oidentd:
$ sudo apt-get install oidentd
SUSE Linux Enterprise Server
从以下位置安装 pidentd 和 xinetd RPM:
ubuntu/debian 的安装后步骤
在 Ubuntu/Debian 系统上安装 oidentd 后,请继续执行以下步骤:
-
验证 Ident 服务器接受 IPv6 地址,以防止身份验证失败。若要执行此操作,必须启用此功能。在脚本
/etc/init.d/oidentd中,更改行:exec="/usr/sbin/oidentd"到
exec="/usr/sbin/oidentd -a ::"然后,在 Linux 提示中,使用
oidentd启动-a ::。 -
使用以下命令重新启动服务器:
$ /etc/init.d/oidentd restart
Red Hat 7.x/CentOS 7.x 和 SUSE Linux Enterprise Server 的安装后步骤
在 Red Hat 7.x/CentOS 7.x 或 SUSE Linux Enterprise Server 系统上安装所需的包之后,继续执行以下步骤:
-
通过在配置文件
/etc/xinetd.d/auth中设置disable = no来启用auth服务。如果此文件不存在,请创建该文件。以下是一个示例配置文件:service auth { disable = no socket_type = stream wait = no user = ident cps = 4096 10 instances = UNLIMITED server = /usr/sbin/in.authd server_args = -t60 --xerror --os } -
使用以下命令重新启动
xinetd服务:$ service xinetd restart