Bug 1356524
| Summary: | Add check and avoid error message when external trust is added with option --range-type having values ipa-ad-trust-posix/ipa-ad-trust | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Sudhir Menon <sumenon> |
| Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
| Status: | CLOSED WORKSFORME | QA Contact: | Kaleem <ksiddiqu> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.3 | CC: | abokovoy, pvoborni, rcritten |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-08-19 09:44: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
Sudhir Menon
2016-07-14 10:10:51 UTC
Upstream ticket: https://fedorahosted.org/freeipa/ticket/6107 I am now able to run the below commands without any error.
Verified using RHEL7.3
ipa-server-4.4.0-8.el7.x86_64
ipa-server-trust-ad-4.4.0-8.el7.x86_64
[root@ipaserver ~]# ipa trust-add test.qa --type='ad' --base-id=150000 --range-size=100000 --range-type='ipa-ad-trust' --external=true
Active Directory domain administrator: Administrator
Active Directory domain administrator's password:
------------------------------------------------
Added Active Directory trust for realm "test.qa"
------------------------------------------------
Realm name: test.qa
Domain NetBIOS name: TEST
Domain Security Identifier: S-1-5-21-4204873575-1158510886-1449965812
Trust direction: Trusting forest
Trust type: Non-transitive external trust to a domain in another Active Directory forest
Trust status: Established and verified
[root@ipaserver ~]# ipa idrange-find
----------------
2 ranges matched
----------------
Range name: REDLABS.QE_id_range
First Posix ID of the range: 1748200000
Number of IDs in the range: 200000
First RID of the corresponding RID range: 1000
First RID of the secondary RID range: 100000000
Range type: local domain range
Range name: TEST.QA_id_range
First Posix ID of the range: 150000
Number of IDs in the range: 100000
First RID of the corresponding RID range: 0
Domain SID of the trusted domain: S-1-5-21-4204873575-1158510886-1449965812
Range type: Active Directory domain range
----------------------------
Number of entries returned 2
----------------------------
[root@ipaserver ~]# ipa trust-add test.qa --type='ad' --base-id=150000 --range-size=100000 --range-type='ipa-ad-trust-posix' --external=true
Active Directory domain administrator: Administrator
Active Directory domain administrator's password:
ipa: ERROR: invalid 'id range': An id range already exists for this trust. You should either delete the old range, or exclude --base-id/--range-size options from the command.
[root@ipaserver ~]# ipa trust-add test.qa --type='ad' --range-type='ipa-ad-trust-posix' --external=true
Active Directory domain administrator: Administrator
Active Directory domain administrator's password:
ipa: ERROR: invalid 'range type change': ID range for the trusted domain already exists, but it has a different type. Please remove the old range manually, or do not enforce type via --range-type option
[root@ipaserver ~]# ipa trust-del test.qa
-----------------------
Deleted trust "test.qa"
-----------------------
[root@ipaserver ~]# ipa idrange-del TEST.QA_id_range
-----------------------------------
Deleted ID range "TEST.QA_id_range"
-----------------------------------
[root@ipaserver ~]# ipa trust-add test.qa --type='ad' --range-type='ipa-ad-trust-posix' --external=true
Active Directory domain administrator: Administrator
Active Directory domain administrator's password:
------------------------------------------------
Added Active Directory trust for realm "test.qa"
------------------------------------------------
Realm name: test.qa
Domain NetBIOS name: TEST
Domain Security Identifier: S-1-5-21-4204873575-1158510886-1449965812
Trust direction: Trusting forest
Trust type: Non-transitive external trust to a domain in another Active Directory forest
Trust status: Established and verified
Closing WORKSFORME as no changes were done. |