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 2134505 - [ansible-freeipa] Do not require 'enable-sid' for 'add-sids' and 'netbios-name'.
Summary: [ansible-freeipa] Do not require 'enable-sid' for 'add-sids' and 'netbios-name'.
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2022-12-12
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: ansible-freeipa
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Rafael Jeffman
QA Contact: Varun Mylaraiah
URL:
Whiteboard:
Depends On:
Blocks: 2134530 2135776
TreeView+ depends on / blocked
 
Reported: 2022-10-13 13:46 UTC by Rafael Jeffman
Modified: 2023-05-09 08:04 UTC (History)
3 users (show)

Fixed In Version: ansible-freeipa-1.9.0-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2134530 2135776 (view as bug list)
Environment:
Last Closed: 2023-05-09 07:25:56 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-8929 0 None None None 2022-10-13 14:00:31 UTC
Red Hat Issue Tracker RHELPLAN-136389 0 None None None 2022-10-13 14:00:35 UTC
Red Hat Product Errata RHEA-2023:2168 0 None None None 2023-05-09 07:26:05 UTC

Description Rafael Jeffman 2022-10-13 13:46:48 UTC
When using plugin 'ipaconfig', parameters 'add-sids' and 'netbios-name' can only be used if 'enable-sid: yes' is used.

It would provide a better experience if the parameters can be used without having to set 'enable-sid', and the plugin simply fails if SID generation is not enabled and 'enable-sid' is not set to 'yes'.

Comment 1 Rafael Jeffman 2022-10-13 16:35:48 UTC
Upstream PR: https://github.com/freeipa/ansible-freeipa/pull/961

Comment 7 Varun Mylaraiah 2022-12-20 13:34:21 UTC
Verified
ansible-core-2.14.1-1.el9.x86_64
ansible-freeipa-1.9.0-1.el9.noarch

Passed	ansible_freeipa_tests/config/test_config.py::TestConfigInvalid::test_update_netbios_name_without_enable_sid

DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 PLAYBOOK: config_module.yml ****************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 1 plays in config_module.yml
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 PLAY [Playbook to ensure able to update netbios_name without enable_sid.] ******
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 TASK [Gathering Facts] *********************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 task path: /root/config_module.yml:2
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 ok: [master.ipadomain.test]
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 TASK [ipaconfig] ***************************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 task path: /root/config_module.yml:6
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 changed: [master.ipadomain.test] => {"changed": true, "config": {}}
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 PLAY RECAP *********************************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 master.ipadomain.test      : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd171:transport.py:217 Exit code: 0
INFO     pytest_multihost.host.Host.master.OpenSSHTransport:transport.py:397 RUN ['kinit', 'admin']
DEBUG    pytest_multihost.host.Host.master.cmd210:transport.py:519 RUN ['kinit', 'admin']
DEBUG    pytest_multihost.host.Host.master.cmd210:transport.py:563 bash: line 1: cd: /root/multihost_tests: No such file or directory
DEBUG    pytest_multihost.host.Host.master.cmd210:transport.py:563 bash: line 2: /root/multihost_tests/env.sh: No such file or directory
DEBUG    pytest_multihost.host.Host.master.cmd210:transport.py:563 Password for admin: 
DEBUG    pytest_multihost.host.Host.master.cmd210:transport.py:217 Exit code: 0
INFO     pytest_multihost.host.Host.master.OpenSSHTransport:transport.py:397 RUN ['ipa', 'trustconfig-show']
DEBUG    pytest_multihost.host.Host.master.cmd211:transport.py:519 RUN ['ipa', 'trustconfig-show']
DEBUG    pytest_multihost.host.Host.master.cmd211:transport.py:563 bash: line 1: cd: /root/multihost_tests: No such file or directory
DEBUG    pytest_multihost.host.Host.master.cmd211:transport.py:563 bash: line 2: /root/multihost_tests/env.sh: No such file or directory
DEBUG    pytest_multihost.host.Host.master.cmd211:transport.py:563   Domain: ipadomain.test
DEBUG    pytest_multihost.host.Host.master.cmd211:transport.py:563   Security Identifier: S-1-5-21-2538360992-4063131553-938975944
DEBUG    pytest_multihost.host.Host.master.cmd211:transport.py:563   NetBIOS name: NEWTESTNETBIOS
DEBUG    pytest_multihost.host.Host.master.cmd211:transport.py:563   Domain GUID: dab96bc0-e73a-4da8-a249-0e691bc66b73
DEBUG    pytest_multihost.host.Host.master.cmd211:transport.py:563   Fallback primary group: Default SMB Group
DEBUG    pytest_multihost.host.Host.master.cmd211:transport.py:217 Exit code: 0
INFO     pytest_multihost.host.Host.master.OpenSSHTransport:transport.py:397 RUN ['kdestroy', '-A']


Based on the test result, marking the bug Verified

Comment 10 errata-xmlrpc 2023-05-09 07:25:56 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 (ansible-freeipa 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/RHEA-2023:2168


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