我正在使用的环境:
Red Hat Enterprise Linux 7.4
Virtualbox
我已经安装了所有必需的软件包:
yum -y install ipa-server bind-dyndb-ldap ipa-server-dns
在我的 /etc/hosts 中添加了以下内容:
192.168.1.1 labipa.example.com labipa
使用 DNS 安装 FreeIPA:
ipa-server-install --setup-dns --allow-zone-overlap
Server host name: labipa.example.com
Directory Manager password: ~~password~~
IPA admin password: ~~password~~
Enter IP address for a DNS forwarder: 8.8.8.8
Do you want to search for missing reverse zones? yes
[37/45]: initializing group membership
[error] NetworkError: cannot connect to 'ldap://labipa.example.com:389':
ipa.ipapython.install.cli.install_tool(CompatServerMasterInstall): ERROR cannot connect to
'ldap://labipa.example.com:389':
ipa.ipapython.install.cli.install_tool(CompatServerMasterInstall): ERROR The ipa-server-install command
failed. See /var/log/ipaserver-install.log for more information
我尝试修复的步骤:
firewall-cmd --permanent --add-service=ldap
firewall-cmd --reload