msktutil

Manage Active Directory keytabs and service principals from Linux/Unix

brewmacoslinux
Try with needOr install directly
Source

About

Active Directory keytab management

Commands

msktutil

Examples

create a new service principal and keytab in Active Directory$ msktutil -c -b 'CN=Computers' -s service/hostname.example.com -k /etc/service.keytab -u serviceaccount@REALM -p password
update an existing keytab with new password$ msktutil -u serviceaccount@REALM -p newpassword -k /etc/service.keytab
verify and list keytab contents and service principal details$ msktutil -s service/hostname.example.com -k /etc/service.keytab -q
delete a service principal from Active Directory$ msktutil -d -s service/hostname.example.com -u administrator@REALM -p password
change keytab password on schedule for automatic renewal$ msktutil -u serviceaccount@REALM -p newpassword -k /etc/service.keytab --auto-update