realm
命令在Linux中用来配置网络身份验证和域成员的工具
介绍
realmd
支持配置:
- SSSD
- PAM 堆栈
- NSS 层
- Kerberos
- Winbind
- Microsoft Active Directory
安装
apt install realmd
使用
$ realm --help
realm discover -v [realm-name]
Discover available realm
realm join -v [-U user] realm-name
Enroll this machine in a realm
realm leave -v [-U user] [realm-name]
Unenroll this machine from a realm
realm list
List known realms
realm permit [-ax] [-R realm] user ...
Permit user logins
realm deny --all [-R realm]
Deny user logins
# 发现域信息
realm -v discover ad.xiexianbin.cn
# Linux 加域命令
realm join -v ad.xiexianbin.cn -U <domain username>
realm join ad.xiexianbin.cn
# dev 组加域
realm permit -g dev@xiexianbin.cn
# Linux 查看加域情况
id <username>
realm list