//安装IPA server包
yum install -y ipa-server
//安装 IPA server
ipa-server-install
//启动、停止、检查IPA服务
ipactl [-f] start/stop/status
注:-f表示强制执行,可忽略由于某一服务启动失败导致整体启动失败的问题
//IPA LDAP界面URL
https://ipa_server/ipa/ui
//创建replica文件,用于安装replica,文件格式为replica-info-host_name.gpg
ipa-replica-prepare host_name
//安装replica方法1,使用上述命令生成的gpg文件
ipa-replica-install [–skip-conncheck]/var/lib/ipa/replica-info-host_name.gpg
注1:此方式只适用于level 0
注2:–skip-conncheck可用于当ssh检查失败但实际配置正确的情况下
//安装replica方法2
ipa-client-install
ipa-replica-install –principal admin –admin-password admin_password
注:此方式只适用于level 1,IPA 4.3版本及后续默认level 1
//显示replica列表
ipa-replica-manage list
注:完整的命令为ipa-replica-manage [OPTION]… [connect|disconnect|del|list|re-initialize|force-sync]
//备份数据,默认备份位置为/var/lib/ipa/backup/
ipa-backup –data –online
//恢复数据
ipa-restore –online /var/lib/ipa/backup/ipa-data-
//卸载IPA server
ipa-server-install –uninstall
//安装IPA client
ipa-client-install
//卸载IPA server
ipa-client-install –uninstall
//显示host列表
kinit admin
ipa host-find
//删除某一个host
kinit admin
ipa host-del host_name
//显示所有certificate
getcert list
//关于Domain Levels
https://www.freeipa.org/page/Domain_Levels
//Trafodion配置LDAP enable时配置的UniqueIdentifier,其中dc部分属于可变部分
uid=,cn=users,cn=accounts,dc=hadoop,dc=gxdwdc