RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1991619 - Regression/bz1608107-authentication-fails-after-joining-with-add-samba-data
Summary: Regression/bz1608107-authentication-fails-after-joining-with-add-samba-data
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: adcli
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Sumit Bose
QA Contact: shridhar
URL:
Whiteboard:
Depends On:
Blocks: 1969483
TreeView+ depends on / blocked
 
Reported: 2021-08-09 14:26 UTC by shridhar
Modified: 2023-05-16 11:15 UTC (History)
5 users (show)

Fixed In Version: adcli-0.9.2-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-16 09:09:19 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-92912 0 None None None 2021-08-09 14:27:44 UTC
Red Hat Issue Tracker SSSD-3775 0 None None None 2021-10-06 10:16:55 UTC
Red Hat Product Errata RHBA-2023:2997 0 None None None 2023-05-16 09:09:23 UTC
freedesktop.org Gitlab realmd adcli merge_requests 52 0 None merged adenroll: write SID before secret to Samba's db 2022-09-19 20:34:34 UTC

Comment 2 dataportzslinuxsystemtechnik 2022-08-12 17:20:20 UTC
The adcli join/update - Command can't set  samba-Data in  /var/lib/samba/private/secrets.tdb on Red Hat Enterprise Linux Server 7.9 (Maipo) 7.9  (On Red Hat Enterprise Linux 8.6 (Ootpa) 8.6 it's working)

 /usr/sbin/adcli update -H myhost.domain.de --computer-password-lifetime=0 --add-samba-data --login-ccache=/tmp/krb5cc_0  -v
 * Found realm in keytab: DOMAIN.DE
 * Found computer name in keytab: MYHOST
 * Found service principal in keytab: host/MYHOST
 * Found service principal in keytab: host/myhost.domain.de
 * Found host qualified name in keytab: myhost.domain.de
 * Found service principal in keytab: RestrictedKrbHost/MYHOST
 * Found service principal in keytab: RestrictedKrbHost/myhost.domain.de
 * Using fully qualified name: myhost.domain.de
 * Calculated domain name from host fqdn: domain.de
 * Calculated computer account name from fqdn: MYHOST
 * Using domain realm: domain.de
 * Discovering domain controllers: _ldap._tcp.domain.de
 * Sending NetLogon ping to domain controller: pd008.domain.de
 * Received NetLogon info from: PD008.domain.de
 * Wrote out krb5.conf snippet to /tmp/adcli-krb5-53Hz2j/krb5.d/adcli-krb5-conf-L05sCC
 * Using GSS-SPNEGO for SASL bind
 * Looked up short domain name: DOMAIN
 * Looked up domain SID: S-1-5-21-3425413891-304784137-3751339189
 * Using fully qualified name: myhost.domain.de
 * Using domain name: domain.de
 * Using computer account name: MYHOST
 * Using domain realm: domain.de
 * Using fully qualified name: myhost.domain.de
 * Enrolling computer name: MYHOST
 * Generated 120 character computer password
 * Using keytab: FILE:/etc/krb5.keytab
 * Found computer account for MYHOST$ at: CN=MYHOST,OU=UnixServer,OU=M111,OU=03,OU=000,OU=Mandanten,DC=domain,DC=de
 * Retrieved kvno '5' for computer account in directory: CN=MYHOST,OU=UnixServer,OU=M111,OU=03,OU=000,OU=Mandanten,DC=domain,DC=de
 * Password lifetime is 0, forcing renewal
 * Sending NetLogon ping to domain controller: pd008.domain.de
 * Received NetLogon info from: PD008.domain.de
 * Set computer password
 * kvno incremented to 6
 * Checking RestrictedKrbHost/myhost.domain.de
 *    Added RestrictedKrbHost/myhost.domain.de
 * Checking RestrictedKrbHost/MYHOST
 *    Added RestrictedKrbHost/MYHOST
 * Checking host/myhost.domain.de
 *    Added host/myhost.domain.de
 * Checking host/MYHOST
 *    Added host/MYHOST
 * Trying to set Samba secret.
secrets_prepare_password_change: secrets_fetch_or_upgrade_domain_info(DOMAIN) failed
Unable to write the machine account password in the secrets database ! net command failed with 1.
 * Trying to set domain SID S-1-5-21-3425413891-304784137-3751339189 for Samba.
 * Cleared old entries from keytab: FILE:/etc/krb5.keytab
 * Discovered which keytab salt to use
 * Added the entries to the keytab: MYHOST$@DOMAIN.DE: FILE:/etc/krb5.keytab
 * Cleared old entries from keytab: FILE:/etc/krb5.keytab
 * Added the entries to the keytab: host/MYHOST: FILE:/etc/krb5.keytab
 * Cleared old entries from keytab: FILE:/etc/krb5.keytab



The Problem seams to be the net-tool (net-tools-2.0-0.25.20131004git.el7.x86_64).  
We have installed following samba-Packages:
samba-winbind-4.10.16-19.el7_9.x86_64
samba-winbind-clients-4.10.16-19.el7_9.x86_64
samba-common-libs-4.10.16-19.el7_9.x86_64
samba-client-libs-4.10.16-19.el7_9.x86_64
samba-libs-4.10.16-19.el7_9.x86_64
samba-winbind-modules-4.10.16-19.el7_9.x86_64
samba-common-4.10.16-19.el7_9.noarch
samba-common-tools-4.10.16-19.el7_9.x86_64

Comment 3 dataportzslinuxsystemtechnik 2022-08-12 17:21:22 UTC
The adcli join/update - Command can't set  samba-Data in  /var/lib/samba/private/secrets.tdb on Red Hat Enterprise Linux Server 7.9 (Maipo) 7.9  (On Red Hat Enterprise Linux 8.6 (Ootpa) 8.6 it's working)

 /usr/sbin/adcli update -H myhost.domain.de --computer-password-lifetime=0 --add-samba-data --login-ccache=/tmp/krb5cc_0  -v
 * Found realm in keytab: DOMAIN.DE
 * Found computer name in keytab: MYHOST
 * Found service principal in keytab: host/MYHOST
 * Found service principal in keytab: host/myhost.domain.de
 * Found host qualified name in keytab: myhost.domain.de
 * Found service principal in keytab: RestrictedKrbHost/MYHOST
 * Found service principal in keytab: RestrictedKrbHost/myhost.domain.de
 * Using fully qualified name: myhost.domain.de
 * Calculated domain name from host fqdn: domain.de
 * Calculated computer account name from fqdn: MYHOST
 * Using domain realm: domain.de
 * Discovering domain controllers: _ldap._tcp.domain.de
 * Sending NetLogon ping to domain controller: pd008.domain.de
 * Received NetLogon info from: PD008.domain.de
 * Wrote out krb5.conf snippet to /tmp/adcli-krb5-53Hz2j/krb5.d/adcli-krb5-conf-L05sCC
 * Using GSS-SPNEGO for SASL bind
 * Looked up short domain name: DOMAIN
 * Looked up domain SID: S-1-5-21-3425413891-304784137-3751339189
 * Using fully qualified name: myhost.domain.de
 * Using domain name: domain.de
 * Using computer account name: MYHOST
 * Using domain realm: domain.de
 * Using fully qualified name: myhost.domain.de
 * Enrolling computer name: MYHOST
 * Generated 120 character computer password
 * Using keytab: FILE:/etc/krb5.keytab
 * Found computer account for MYHOST$ at: CN=MYHOST,OU=UnixServer,OU=M111,OU=03,OU=000,OU=Mandanten,DC=domain,DC=de
 * Retrieved kvno '5' for computer account in directory: CN=MYHOST,OU=UnixServer,OU=M111,OU=03,OU=000,OU=Mandanten,DC=domain,DC=de
 * Password lifetime is 0, forcing renewal
 * Sending NetLogon ping to domain controller: pd008.domain.de
 * Received NetLogon info from: PD008.domain.de
 * Set computer password
 * kvno incremented to 6
 * Checking RestrictedKrbHost/myhost.domain.de
 *    Added RestrictedKrbHost/myhost.domain.de
 * Checking RestrictedKrbHost/MYHOST
 *    Added RestrictedKrbHost/MYHOST
 * Checking host/myhost.domain.de
 *    Added host/myhost.domain.de
 * Checking host/MYHOST
 *    Added host/MYHOST
 * Trying to set Samba secret.
secrets_prepare_password_change: secrets_fetch_or_upgrade_domain_info(DOMAIN) failed
Unable to write the machine account password in the secrets database ! net command failed with 1.
 * Trying to set domain SID S-1-5-21-3425413891-304784137-3751339189 for Samba.
 * Cleared old entries from keytab: FILE:/etc/krb5.keytab
 * Discovered which keytab salt to use
 * Added the entries to the keytab: MYHOST$@DOMAIN.DE: FILE:/etc/krb5.keytab
 * Cleared old entries from keytab: FILE:/etc/krb5.keytab
 * Added the entries to the keytab: host/MYHOST: FILE:/etc/krb5.keytab
 * Cleared old entries from keytab: FILE:/etc/krb5.keytab



The Problem seams to be the net-tool (net-tools-2.0-0.25.20131004git.el7.x86_64).  
We have installed following samba-Packages:
samba-winbind-4.10.16-19.el7_9.x86_64
samba-winbind-clients-4.10.16-19.el7_9.x86_64
samba-common-libs-4.10.16-19.el7_9.x86_64
samba-client-libs-4.10.16-19.el7_9.x86_64
samba-libs-4.10.16-19.el7_9.x86_64
samba-winbind-modules-4.10.16-19.el7_9.x86_64
samba-common-4.10.16-19.el7_9.noarch
samba-common-tools-4.10.16-19.el7_9.x86_64

Comment 7 Andreas 2022-11-09 12:25:09 UTC
Can you tell me when adcli-0.9.2-1.el8 will be available? 
Will a patch also be available for RHEL7.9?

Comment 11 Andre Boscatto 2022-11-15 14:18:30 UTC
Hi Andreas,

Unfortunately we can't commit on dates at this point, we can just share that we are addressing it to the nearest RHEL-8.x release candidate.

Back-porting it to 7.9 it is not in the plans since it is in Support/Maintenance mode only [1], please let us know if your request to add it into 7.9 falls into any of those pre-established requirements.

Let us know if you have any additional questions,

Kind Regards

[1] https://access.redhat.com/support/policy/updates/errata#Maintenance_Support_2_Phase

Comment 19 errata-xmlrpc 2023-05-16 09:09:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (adcli bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2997


Note You need to log in before you can comment on or make changes to this bug.