1

How do I use sssd to join a Red Hat 7 machine to Active Directory domain without prompting the password? I am trying to automate the domain join.

realm join -U adjoin --client-software=sssd abc.com
Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
tset
  • 135
  • 2
  • 3
  • 5

1 Answers1

1

The realm manpage says:

It is generally possible to use kerberos credentials to perform a join operation. Use the kinit command to acquire credentials prior to starting the join. Do not specify the --user argument, the user will be selected automatically from the credential cache. The realm respects the KRB5_CCACHE environment variable, but uses the default kerberos credential cache if it's not present. Not all types of servers can be joined using kerberos credentials, some (like IPA) insist on prompting for a password.

So if I understand that right, just acquiring a Kerberos credential with kinit and not adding the --useroption should just work..

U880D
  • 1,120
  • 10
  • 24
jhrozek
  • 301
  • 1
  • 1