newcastleuniversity / puppet_module_msktutil

Used by https://github.com/newcastleuniversity/computing_linux_puppet_controlrepo. Use Puppet to join a GNU/Linux system to Active Directory and keep it joined.
0 stars 0 forks source link

`exec` is causing msktutil cron job to fail on some machines #5

Closed threepistons closed 9 months ago

threepistons commented 11 months ago
root@redacted:~# exec /usr/sbin/msktutil --auto-update --no-reverse-lookups --computer-name redacted --hostname redacted.ncl.ac.uk --service host/redacted --service host/redacted.ncl.ac.uk --service host/redacted.campus.ncl.ac.uk
Error: could not find any credentials to authenticate with. Neither keytab,
     default machine password, nor calling user's tickets worked. Try
     "kinit"ing yourself some tickets with permission to create computer
     objects, or pre-creating the computer object in AD and selecting
     'reset account'.
Connection to redacted.ncl.ac.uk closed.

# me @ mymachine in ~ [16:29:02] C:1
$ ssh redacted.ncl.ac.uk
[[snipped motd]]
root@redacted:~# /usr/sbin/msktutil --auto-update --no-reverse-lookups --computer-name redacted --hostname redacted.ncl.ac.uk --service host/redacted --service host/redacted.ncl.ac.uk --service host/redacted.campus.ncl.ac.uk

Removing the exec from the cron.d file should fix this.