查看命令帮助:/usr/sbin/kadmin.local "list_requests"
查看用户:/usr/sbin/kadmin.local "list_principals"
创建用户:/usr/sbin/kadmin.local -q "addprinc kuser01"
带密码创建用户:/usr/sbin/kadmin.local -q "addprinc -pw kuser01 kuser01"
删除用户:/usr/sbin/kadmin.local -q "delprinc kuser01"
强制删除用户:/usr/sbin/kadmin.local -q "delprinc -force kuser01"
生成keytab文件: kadmin.local -q "xst -k user.keytab user@BLUE.COM"
用户登录: kinit -kt /root/keytab/user.keytab user
[root@mater ~]# kadmin.local
Authenticating as principal root/admin@TEST.COM with password.
kadmin.local: list_requests #查看命令帮助
kadmin.local: list_principals #查看用户
kadmin.local: addprinc kuser01 #创建用户
kadmin.local: addprinc -pw kuser01 kuser01 #带密码创建用户
kadmin.local: delprinc kuser01 #删除用户
kadmin.local: delprinc -force kuser01 #强制删除用户
kadmin.local: xst -k user.keytab user@BLUE.COM #生成keytab文件
用户登录: kinit -kt /root/keytab/user.keytab user