In Puppet, I'm executing a 'join domain' script unless this condition is true:
...
unless => "/usr/bin/klist -k ${::sssd::keytab} | /bin/grep -q
'host/${::fqdn}@${::sssd::realm_upcase}'"
...
Check the global keytab file, say /etc/krb5.keytab, to see if
"host/[email protected]" exists. This could depend on how
you're joining the domain; "[email protected]" might also be used.
Robert On August 10th, 2017, at 10:32, Eugene Vilensky wrote:
Hello, Apologies for the naivete of this question. How can I test if a machine already has a successful relationship with active directory? context: I want to set an ansible fact if it is in fact join and if not execute adcli to join. Thank you! -Eugene
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ sssd-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
