After joning the system to AD domain using 'realm' command 'net ads keytab add cifs -U Administrator' fails to add CIFS principle in kerberos keytab file

Solution Verified - Updated -

Issue

  • After joining the system to AD domain using 'realm' command 'net ads keytab add cifs -U Administrator' fails with:
../source3/libads/kerberos_keytab.c:312: failed to fetch machine password
return code = -1

Environment

  • Red Hat Enterprise Linux 7.x
  • realmd
  • sssd
  • samba

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content