Well, I could try that but it's not very handy - you need to go to AD and perform
passwd change manually.
I was hoping that "net -U administrator ads keytab create" or similar would do
everything necessary in a single run - just like "net ads join".
Ondrej
-----Original Message-----
From: James Ralston [mailto:ralston@pobox.com]
Sent: Monday, July 09, 2018 5:34 PM
To: End-user discussions about the System Security Services Daemon
<sssd-users(a)lists.fedorahosted.org>
Subject: [SSSD-users] Re: recreate machine keytab file
On Mon, Jul 9, 2018 at 8:19 AM Ondrej Valousek <Ondrej.Valousek(a)s3group.com>
wrote:
Is there any way how can we recreate system keytab file of a machine
joined to AD if the file has been broken/deleted?
I want to avoid doing join again as this would probably delete the
existing account (with all attributes we have set).
The latest version of the msktutil utility (version 1.1) can do this:
https://github.com/msktutil/msktutil/
Remove the corrupted /etc/krb5.keytab file, change the password of the host machine
account in AD to a temporary password, and then run:
$ msktutil --update --computer-name SHORTHOSTNAMEALLCAPS --old-account-password
<temporary_password> --verbose --verbose
This should change the host machine account password in AD to a new
(random) password, and then create a new /etc/krb5.keytab file with all relevant
entries.
Depending on your AD configuration, you might need to use the --dont-update-dnshostname
option as well.
_______________________________________________
sssd-users mailing list -- sssd-users(a)lists.fedorahosted.org To unsubscribe send an email
to sssd-users-leave(a)lists.fedorahosted.org
Fedora Code of Conduct:
https://getfedora.org/code-of-conduct.html
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/sssd-users@lists.fedorahost...
-----
The information contained in this e-mail and in any attachments is confidential and is
designated solely for the attention of the intended recipient(s). If you are not an
intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or
any part thereof. If you have received this e-mail in error, please notify the sender by
return e-mail and delete all copies of this e-mail from your computer system(s). Please
direct any additional queries to: communications(a)s3group.com. Thank You. Silicon and
Software Systems Limited (S3 Group). Registered in Ireland no. 378073. Registered Office:
South County Business Park, Leopardstown, Dublin 18.