Bug 1446176
| Summary: | hbactest does not work with trusted users | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Varun Mylaraiah <mvarun> |
| Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
| Status: | CLOSED WORKSFORME | QA Contact: | ipa-qe <ipa-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.4 | CC: | atolani, dpal, frenaud, jgalipea, jhrozek, mbabinsk, mkosek, mvarun, pvoborni, rcritten, seceng-idm-qe-list, sgoveas, spoore, tscherf |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 848531 | Environment: | |
| Last Closed: | 2017-05-11 11:05:26 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 848531, 1049533 | ||
| Bug Blocks: | |||
|
Comment 2
Varun Mylaraiah
2017-04-27 12:03:33 UTC
the issue is not reproducing now. I'm going to close this bug for now # rpm -qa ipa-server sssd sssd-1.15.2-25.el7.x86_64 ipa-server-4.5.0-10.el7.x86_64 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: hbactest works with trusted users, bz848531 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ BEGIN ] :: Running 'kdestroy -A' :: [ PASS ] :: Command 'kdestroy -A' (Expected 0, got 0) :: [ 13:29:29 ] :: Create group for testing bug :: [ BEGIN ] :: Running 'ipa group-add --desc=0 bz848531_external --external' ------------------------------- Added group "bz848531_external" ------------------------------- Group name: bz848531_external Description: 0 :: [ PASS ] :: Command 'ipa group-add --desc=0 bz848531_external --external' (Expected 0, got 0) :: [ BEGIN ] :: Running 'ipa group-add --desc=0 bz848531' ---------------------- Added group "bz848531" ---------------------- Group name: bz848531 Description: 0 GID: 1747000006 :: [ PASS ] :: Command 'ipa group-add --desc=0 bz848531' (Expected 0, got 0) :: [ BEGIN ] :: Running 'ipa group-add-member bz848531 --groups=bz848531_external' Group name: bz848531 Description: 0 GID: 1747000006 Member groups: bz848531_external ------------------------- Number of members added 1 ------------------------- :: [ PASS ] :: Command 'ipa group-add-member bz848531 --groups=bz848531_external' (Expected 0, got 0) :: [ BEGIN ] :: Running 'ipa group-add-member bz848531_external --external='PNEdgroup1' --users='' --groups=''' Group name: bz848531_external Description: 0 External member: S-1-5-21-2202318585-426110948-4011710778-1559 Member of groups: bz848531 ------------------------- Number of members added 1 ------------------------- :: [ PASS ] :: Command 'ipa group-add-member bz848531_external --external='PNE\adgroup1' --users='' --groups=''' (Expected 0, got 0) :: [ 13:29:32 ] :: Create HBAC rule :: [ BEGIN ] :: Running 'ipa hbacrule-add bz848531' -------------------------- Added HBAC rule "bz848531" -------------------------- Rule name: bz848531 Enabled: TRUE :: [ PASS ] :: Command 'ipa hbacrule-add bz848531' (Expected 0, got 0) :: [ BEGIN ] :: Running 'ipa hbacrule-add-host bz848531 --hosts=auto-hv-01-guest03.userexsm23.test' Rule name: bz848531 Enabled: TRUE Hosts: auto-hv-01-guest03.userexsm23.test ------------------------- Number of members added 1 ------------------------- :: [ PASS ] :: Command 'ipa hbacrule-add-host bz848531 --hosts=auto-hv-01-guest03.userexsm23.test' (Expected 0, got 0) :: [ BEGIN ] :: Running 'ipa hbacrule-add-service bz848531 --hbacsvcs=sshd' Rule name: bz848531 Enabled: TRUE Hosts: auto-hv-01-guest03.userexsm23.test Services: sshd ------------------------- Number of members added 1 ------------------------- :: [ PASS ] :: Command 'ipa hbacrule-add-service bz848531 --hbacsvcs=sshd' (Expected 0, got 0) :: [ BEGIN ] :: Running 'ipa hbacrule-add-user bz848531 --groups=bz848531' Rule name: bz848531 Enabled: TRUE User Groups: bz848531 Hosts: auto-hv-01-guest03.userexsm23.test Services: sshd ------------------------- Number of members added 1 ------------------------- :: [ PASS ] :: Command 'ipa hbacrule-add-user bz848531 --groups=bz848531' (Expected 0, got 0) :: [ 13:29:34 ] :: Test hbactest :: [ BEGIN ] :: Running 'ipa hbactest --host=auto-hv-01-guest03.userexsm23.test --service=sshd --user='PNEduser1' > /tmp/tmpout.ipa_trust_func_bug_848531 2>&1' :: [ PASS ] :: Command 'ipa hbactest --host=auto-hv-01-guest03.userexsm23.test --service=sshd --user='PNE\aduser1' > /tmp/tmpout.ipa_trust_func_bug_848531 2>&1' (Expected 0, got 0) :: [ PASS ] :: File '/tmp/tmpout.ipa_trust_func_bug_848531' should contain 'Matched rules: bz848531' :: [ PASS ] :: BZ848531 not found :: [ 13:29:35 ] :: Cleanup groups and hbacrule :: [ BEGIN ] :: Running 'ipa hbacrule-del bz848531' ---------------------------- Deleted HBAC rule "bz848531" ---------------------------- :: [ PASS ] :: Command 'ipa hbacrule-del bz848531' (Expected 0, got 0) :: [ BEGIN ] :: Running 'ipa group-del bz848531' ------------------------ Deleted group "bz848531" ------------------------ :: [ PASS ] :: Command 'ipa group-del bz848531' (Expected 0, got 0) :: [ BEGIN ] :: Running 'ipa group-del bz848531_external' --------------------------------- Deleted group "bz848531_external" --------------------------------- :: [ PASS ] :: Command 'ipa group-del bz848531_external' (Expected 0, got 0) :: [ 13:29:37 ] :: Running remotehost-sync-set -s '6.' -m auto-hv-01-guest03.idmqe.lab.eng.bos.redhat.com :: [ BEGIN ] :: Running 'remotehost-sync-set -s '6.' -m auto-hv-01-guest03.idmqe.lab.eng.bos.redhat.com' remotehost-sync-set -s 6. -m auto-hv-01-guest03.idmqe.lab.eng.bos.redhat.com root 22391 12660 0 13:18 ? 00:00:00 python -m SimpleHTTPServer 8907 :: [ PASS ] :: Command 'remotehost-sync-set -s '6.' -m auto-hv-01-guest03.idmqe.lab.eng.bos.redhat.com' (Expected 0, got 0) 'fca14437-438b-4c94-980f-3524a8a05c98' hbactest-works-with-trusted-users-bz848531 result: PASS |