-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use existing machine accounts #22
Comments
@wiad |
Does not say much (tried with DEBUG in foreman-proxy settings but that does not give any more regarding the error). Adding realm to a host with existing computer account in AD:
|
I have applied the workaround for |
I'm pretty certain that the problem with the computer account missing service principals is related to #20 . It is obvious from the logs when the |
So the issue with missing attributes in the computer account seems solved in #20 by getting the latest radcli from source. That leaves the question why the plugin (or radcli?) errors out when there is an existing computer account created by another tool? When comparing accounts created with msktutil (our old accounts) and foremans realm-plugin I can't really see any major differences. |
So, the error message Not really sure how to do this myself in C though. |
I added the Not sure how to solve this, I just want it to acknowledge that there already is an account and not do anything else but I don't know if that is possible. |
When I was looking at this issue last year, the plugin did not allow this. I modified the code and added an option 'ignore_computername_exists', which, if present, will simply skip the 'join' command if the account already exists in AD. I'm not too familiar with ruby, so I never thought to submit a pull request for this.
Modified the
Added the line below to the
Added the below to
Again, I don't do ruby so there may be issues with the code though, so please verify in a test environment first. EDIT:
|
Thank you @Dragonpark , I tested your workaround and it works! (i didn't bother with making |
I think that was the intent, so I may end up doing so. I believe I added it as there were hosts that were already joined to AD and I wanted that to be reflected in Satellite. This way I could temporarily enable the option as needed and then disable it again. Sent with GitHawk |
When i create a new host in Foreman a new computer account is set up with a couple of serviceprincipals:
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.The text was updated successfully, but these errors were encountered: