Skip to content

Can't use existing machine accounts #22

@wiad

Description

@wiad

When i create a new host in Foreman a new computer account is set up with a couple of serviceprincipals:

servicePrincipalName: RestrictedKrbHost/lxserv954.example.com
servicePrincipalName: RestrictedKrbHost/LXSERV954
servicePrincipalName: host/lxserv954.example.com
servicePrincipalName: host/LXSERV954

This is all good and gives us a usable keytab file on my server.

BUT if I try to reinstall or apply the realm to an existing host the realm plugin errors out with The computer account already exists, even though the account used by the plugin to interact with AD has complete permissions in the OU where the account resides.

Furthermore, if I delete the computer account and try the above again the plugin creates a new account, but it is missing the servicePrincipalName attributes which results in an incomplete keytab on the server.

  • Why can't the plugin use existing computer accounts?
  • Why does the plugin create new accounts differently when creating a new host compared to updating an existing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions