Bug 2028528
| Summary: | realm join needs to updated to use the command line options of Samba's net command | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Andreas Schneider <asn> |
| Component: | realmd | Assignee: | Sumit Bose <sbose> |
| Status: | CLOSED ERRATA | QA Contact: | shridhar <sgadekar> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.6 | CC: | aboscatt, dkarpele, sgadekar |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | realmd-0.16.3-24.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-05-10 15:29:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Andreas Schneider
2021-12-02 15:02:35 UTC
Upstream: - https://gitlab.freedesktop.org/realmd/realmd/-/commit/68f73b78a34299ee37dd06e2ab3ede8985fa277b Test run ID : 74419001
Package : realmd
Installed : realmd-0.16.3-24.el8.x86_64
beakerlib RPM : beakerlib-1.27-1.el8bkr.noarch
bl-redhat RPM : beakerlib-redhat-1-33.el8bkr.noarch
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Join with membership software: samba
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 10:10:56 ] :: [ PASS ] :: Command 'realmd_command --passwd=Pass2012! realm -v join --membership-software=samba --user=Amy-admin ad.baseos.qe' (Expected 0, got 0)
:: [ 10:11:06 ] :: [ PASS ] :: Command 'realm -v list' (Expected 0, got 0)
:: [ 10:11:13 ] :: [ PASS ] :: Command 'echo Pass2012! | KRB5_KTNAME=FILE:/etc/http.keytab net ads keytab add HTTP -U Amy-admin -d3 -s /etc/net-keytab.conf &>keytab.log' (Expected 0, got 0)
:: [ 10:11:13 ] :: [ PASS ] :: File 'keytab.log' should contain 'adding keytab entry for (HTTP'
:: [ 10:11:13 ] :: [ PASS ] :: File 'keytab.log' should not contain 'failed to fetch machine password'
:: [ 10:11:13 ] :: [ PASS ] :: Command 'klist -kte /etc/http.keytab' (Expected 0, got 0)
:: [ 10:11:20 ] :: [ PASS ] :: Command 'echo Pass2012! | realm -v leave --user=Amy-admin' (Expected 0, got 0)
:: [ 10:11:20 ] :: [ PASS ] :: Command 'rm -f /etc/http.keytab' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 71s
:: Assertions: 8 good, 0 bad
:: RESULT: PASS (Join with membership software: samba)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Join with membership software: adcli
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 10:11:20 ] :: [ LOG ] :: Creting keytabs by adcli is not yet supported - thi supposed to fail
:: [ 10:11:34 ] :: [ PASS ] :: Command 'realmd_command --passwd=Pass2012! realm -v join --membership-software=adcli --user=Amy-admin ad.baseos.qe' (Expected 0, got 0)
:: [ 10:11:44 ] :: [ PASS ] :: Command 'realm -v list' (Expected 0, got 0)
:: [ 10:11:51 ] :: [ PASS ] :: Command 'echo Pass2012! | KRB5_KTNAME=FILE:/etc/http.keytab net ads keytab add HTTP -U Amy-admin -d3 -s /etc/net-keytab.conf &>keytab.log' (Expected 255, got 255)
:: [ 10:11:51 ] :: [ PASS ] :: File 'keytab.log' should not contain 'adding keytab entry for (HTTP'
:: [ 10:11:51 ] :: [ PASS ] :: Command 'klist -kte /etc/http.keytab' (Expected 1, got 1)
:: [ 10:11:53 ] :: [ PASS ] :: Command 'echo Pass2012! | realm -v leave --user=Amy-admin' (Expected 0, got 0)
:: [ 10:11:53 ] :: [ PASS ] :: Command 'rm -f /etc/http.keytab' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 33s
:: Assertions: 7 good, 0 bad
:: RESULT: PASS (Join with membership software: adcli)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Join with the default membership software
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 10:12:35 ] :: [ PASS ] :: Command 'realmd_command --passwd=Pass2012! realm -v join --membership-software=samba --user=Amy-admin ad.baseos.qe' (Expected 0, got 0)
:: [ 10:12:45 ] :: [ PASS ] :: Command 'realm -v list' (Expected 0, got 0)
:: [ 10:12:53 ] :: [ PASS ] :: Command 'echo Pass2012! | KRB5_KTNAME=FILE:/etc/http.keytab net ads keytab add HTTP -U Amy-admin -d3 -s /etc/net-keytab.conf &>keytab.log' (Expected 0, got 0)
:: [ 10:12:53 ] :: [ PASS ] :: File 'keytab.log' should contain 'adding keytab entry for (HTTP'
:: [ 10:12:53 ] :: [ PASS ] :: File 'keytab.log' should not contain 'failed to fetch machine password'
:: [ 10:12:53 ] :: [ PASS ] :: Command 'klist -kte /etc/http.keytab' (Expected 0, got 0)
:: [ 10:12:59 ] :: [ PASS ] :: Command 'echo Pass2012! | realm -v leave --user=Amy-admin' (Expected 0, got 0)
:: [ 10:12:59 ] :: [ PASS ] :: Command 'rm -f /etc/http.keytab' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 66s
:: Assertions: 8 good, 0 bad
:: RESULT: PASS (Join with the default membership software)
from sanity ipv4 tests
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: IPv4 test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 10:19:53 ] :: [ PASS ] :: Command 'ping -c1 10.37.152.14' (Expected 0, got 0)
:: [ 10:19:53 ] :: [ PASS ] :: Command 'ping6 -c1 2620:52:0:2598:216:3eff:fe00:1c1' (Expected 1-255, got 2)
:: [ 10:19:53 ] :: [ PASS ] :: Command 'realm -v discover ad.baseos.qe' (Expected 0, got 0)
:: [ 10:19:53 ] :: [ LOG ] :: +++ Join with client-software=sssd membership-software=adcli +++
:: [ 10:20:08 ] :: [ PASS ] :: Join to AD (Expected 0, got 0)
:: [ 10:20:26 ] :: [ PASS ] :: Command 'realm list &> realm.list' (Expected 0, got 0)
:: [ 10:20:26 ] :: [ PASS ] :: Check that there is no realm configured (Assert: expected 0, got 0)
:: [ 10:20:36 ] :: [ LOG ] :: +++ Join with client-software=sssd membership-software=samba +++
:: [ 10:21:18 ] :: [ PASS ] :: Join to AD (Expected 0, got 0)
:: [ 10:21:28 ] :: [ PASS ] :: Clear sssd cache (Expected 0-255, got 0)
:: [ 10:21:28 ] :: [ PASS ] :: Command 'realm list &>/tmp/tmp.0MfMtW1i3W/out' (Expected 0, got 0)
:: [ 10:21:33 ] :: [ PASS ] :: Check that there is no realm configured (Assert: expected 0, got 0)
:: [ 10:21:43 ] :: [ LOG ] :: +++ Join with client-software=winbind membership-software=samba +++
:: [ 10:22:13 ] :: [ PASS ] :: Join to AD (Expected 0, got 0)
:: [ 10:22:43 ] :: [ PASS ] :: Clear sssd cache (Expected 0-255, got 0)
:: [ 10:23:02 ] :: [ PASS ] :: Command 'realmd_do_ssh Amy Pass2012! ad.baseos.qe AD 127.0.0.1' (Expected 0, got 0)
:: [ 10:23:02 ] :: [ PASS ] :: Command 'realm -v leave' (Expected 0, got 0)
:: [ 10:23:02 ] :: [ PASS ] :: Command 'realm list &> realm.list' (Expected 0, got 0)
:: [ 10:23:02 ] :: [ PASS ] :: Check that there is no realm configured (Assert: expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 200s
:: Assertions: 47 good, 10 bad
:: RESULT: FAIL (IPv4 test)
marking verified.
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 (realmd 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-2022:2088 |