https://bugzilla.redhat.com/show_bug.cgi?id=2379224
Bug ID: 2379224 Summary: sssd-ad does not rotate machine account password Product: Fedora Version: 42 Hardware: x86_64 OS: Linux Status: NEW Component: sssd Severity: high Assignee: sssd-maintainers@lists.fedoraproject.org Reporter: luca.cavana@cavanasystems.com QA Contact: extras-qa@fedoraproject.org CC: abokovoy@redhat.com, atikhono@redhat.com, lslebodn@redhat.com, pbrezina@redhat.com, sbose@redhat.com, ssorce@redhat.com, sssd-maintainers@lists.fedoraproject.org Target Milestone: --- Classification: Fedora
Description of problem: In a Fedora 42 machine joined to AD DS by sssd and realmd (Windows Server 2022 DCs with Server 2016 Functional Level), sssd fails to rotate the machine account password, as dictated by: ad_maximum_machine_account_password_age = 30 days (default configuration) ad_machine_account_password_renewal_opts = 86400:750:300:realm (default configuration)
Version-Release number of selected component (if applicable): sssd-ad.x86_64 2.11.0-1.fc42 realmd.x86_64 0.17.1-15.fc42
How reproducible: Always
Steps to Reproduce: 1. Install a Fedora 42 host, patch it and join to AD DS domain 2. Wait for the default 30 days of time to pass, or modify ad_maximum_machine_account_password_age to shorter value 3. Monitor PasswordLastSet/msDS-KeyVersionNumber attributes in AD DS, they never change
Actual results: The password is never rotated.
Expected results: The password is rotated.
Additional info: In sssd_domain_name.log you can see sssd trying to rotate the password by calling realm command and failing. Here is a snippet of my log:
* (2025-07-10 9:56:33): [be[corp.cavanasystems.com]] [ad_machine_account_password_renewal_done] (0x1000): --- adcli output start--- realm discover -v [realm-name] Discover available realm
realm join -v [-U user] realm-name Enroll this machine in a realm
realm leave -v [-U user] [realm-name] Unenroll this machine from a realm
realm list List known realms
realm permit [-ax] [-R realm] user ... Permit user logins
realm deny --all [-R realm] Deny user logins ---adcli output end--- * (2025-07-10 9:56:33): [be[corp.cavanasystems.com]] [be_ptask_done] (0x0400): Task [AD machine account password renewal]: finished successfully * (2025-07-10 9:56:33): [be[corp.cavanasystems.com]] [be_ptask_schedule] (0x0400): Task [AD machine account password renewal]: scheduling task 60 seconds from last execution time [1752134253] * (2025-07-10 9:56:33): [be[corp.cavanasystems.com]] [child_sig_handler] (0x1000): Waiting for child [86188]. * (2025-07-10 9:56:33): [be[corp.cavanasystems.com]] [child_sig_handler] (0x0020): child [86188] failed with status [2]. ********************** BACKTRACE DUMP ENDS HERE *********************************
(2025-07-10 9:57:33): [be[corp.cavanasystems.com]] [child_sig_handler] (0x0020): child [86192] failed with status [2]. * ... skipping repetitive backtrace ... (2025-07-10 9:58:33): [be[corp.cavanasystems.com]] [child_sig_handler] (0x0020): child [86205] failed with status [2]. * ... skipping repetitive backtrace ... (2025-07-10 9:59:33): [be[corp.cavanasystems.com]] [child_sig_handler] (0x0020): child [86211] failed with status [2]. * ... skipping repetitive backtrace ... (2025-07-10 10:00:33): [be[corp.cavanasystems.com]] [child_sig_handler] (0x0020): child [86218] failed with status [2]. * ... skipping repetitive backtrace ...
You can see it is calling the realm command to do the rotation but the latter is returning like it is being called with the wrong parameters. It is then retrying every minute because I've altered my configuration as such, for debugging purposes: ad_maximum_machine_account_password_age = 30 ad_machine_account_password_renewal_opts = 60:5
https://bugzilla.redhat.com/show_bug.cgi?id=2379224
Alexey Tikhonov atikhono@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(luca.cavana@cavan | |asystems.com)
--- Comment #1 from Alexey Tikhonov atikhono@redhat.com ---
You can see it is calling the realm command to do the rotation but the latter is returning like it is being called with the wrong parameters.
Does log capture arguments 'realm' is being called with (maybe above "ad_machine_account_password_renewal_done")? What version of 'realmd' package do you have?
https://bugzilla.redhat.com/show_bug.cgi?id=2379224
--- Comment #2 from Alexey Tikhonov atikhono@redhat.com --- For this to work properly 'realmd' should have https://gitlab.freedesktop.org/realmd/realmd/-/merge_requests/57/commits
https://bugzilla.redhat.com/show_bug.cgi?id=2379224
Sumit Bose sbose@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |luk.claes@gmail.com, | |stefw@redhat.com Assignee|sssd-maintainers@lists.fedo |sbose@redhat.com |raproject.org | Component|sssd |realmd
--- Comment #3 from Sumit Bose sbose@redhat.com --- Hi,
so far I only added the 'renew' option to the rawhide/F43 packages. I will create an update for F42 as well.
bye, Sumit
https://bugzilla.redhat.com/show_bug.cgi?id=2379224
Alexey Tikhonov atikhono@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|sssd-ad does not rotate |'realm' doesn't support |machine account password |rotation of machine account | |password by sssd-ad
https://bugzilla.redhat.com/show_bug.cgi?id=2379224
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- FEDORA-2025-761e7d3a45 (Add 'renew' option) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-761e7d3a45
https://bugzilla.redhat.com/show_bug.cgi?id=2379224
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- FEDORA-2025-761e7d3a45 has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-761e7d3a45` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-761e7d3a45
See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
https://bugzilla.redhat.com/show_bug.cgi?id=2379224
Luca Cavana luca.cavana@cavanasystems.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(luca.cavana@cavan | |asystems.com) |
--- Comment #6 from Luca Cavana luca.cavana@cavanasystems.com --- Hi,
the fix is working. Thank you!
https://bugzilla.redhat.com/show_bug.cgi?id=2379224
--- Comment #7 from Sumit Bose sbose@redhat.com --- Hi,
thanks for the feedback and for giving Karma.
bye, Sumit
https://bugzilla.redhat.com/show_bug.cgi?id=2379224
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |realmd-0.17.1-17.fc42 Resolution|--- |ERRATA Last Closed| |2025-07-12 01:46:10
--- Comment #8 from Fedora Update System updates@fedoraproject.org --- FEDORA-2025-761e7d3a45 (Add 'renew' option) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.
sssd-maintainers@lists.fedoraproject.org