Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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.
DescriptionDiksha Chaudhari
2018-03-28 17:17:01 UTC
Description of problem:
When creating a user on satellite 6.3 with hammer having external authentication source LDAP/AD gives an error if password not mentioned while the user gets added if password parameter is mentioned. As the user created will be authenticated with the authentication source password and not by the password provided by us while creating user, iit should not be mandatory to create user with password parameter.
Version-Release number of selected component (if applicable): Satellite 6.3
How reproducible: Always
Steps to Reproduce:
Create user without password parameter:
# hammer user create --auth-source-id 3 --firstname Tom --lastname Mathew --login tom123 --mail 'tom' --roles 'Access Insights Viewer,Customized Viewer,Red Hat Access Logs,Tasks Reader,View hosts'
Could not create the user:
Missing arguments for 'user[password]'
2) Create user with password parameter:
# hammer user create --auth-source-id 3 --firstname Tom --lastname Mathew --login tom123 --mail 'tom' --roles 'Access Insights Viewer,Customized Viewer,Red Hat Access Logs,Tasks Reader,View hosts' --password "redhat"
User [cmn01] created
# hammer user list
---|---------------|------------------|------------------------|-------|---------------------|--------------
ID | LOGIN | NAME | EMAIL | ADMIN | LAST LOGIN | AUTHORIZED BY
---|---------------|------------------|------------------------|-------|---------------------|--------------
7 | tom123 |Tom Mathew | tom | yes | 2018/02/20 15:21:56 | adserver
Actual results:
User is not allowed to create without password parameter even when we have specified the external auth source.
Expected results:
When the user is authenticated with the external authentication source LDAP/AD then while creating a user via hammer the --password parameter should be optional.
Additional info:
Comment 3Daniel Lobato Garcia
2018-07-19 11:45:23 UTC
Comment 6Daniel Lobato Garcia
2018-08-28 21:51:10 UTC
Fix submitted, AFAIK there are no 100% proven workarounds other than creating the user in the UI.
https://github.com/theforeman/foreman/pull/6005
It might be possible to create an user in the internal auth source, with an useless password, then update the user's auth source to be external as a workaround.
Comment 7Satellite Program
2018-09-01 14:17:38 UTC
VERIFIED
Version tested:
Satellite 6.5 snap 8
# hammer user create --auth-source-id 15 --firstname Tom --lastname Mathew --login tom --mail 'tom' --roles 'View hosts'
User [tom] created.
]# hammer -u Tom -p wrong-password host list
Unable to authenticate user Tom
# hammer -u Tom -p changeme host list
---|------|------------------|------------|----|-----|---------------|--------------|----------------------
ID | NAME | OPERATING SYSTEM | HOST GROUP | IP | MAC | GLOBAL STATUS | CONTENT VIEW | LIFECYCLE ENVIRONMENT
---|------|------------------|------------|----|-----|---------------|--------------|----------------------
User is allowed to create without passing --password if auth source is used and successfully authenticate it from auth source.
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, 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/RHSA-2019:1222
Comment 20Red Hat Bugzilla
2023-09-18 00:13:24 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days
Description of problem: When creating a user on satellite 6.3 with hammer having external authentication source LDAP/AD gives an error if password not mentioned while the user gets added if password parameter is mentioned. As the user created will be authenticated with the authentication source password and not by the password provided by us while creating user, iit should not be mandatory to create user with password parameter. Version-Release number of selected component (if applicable): Satellite 6.3 How reproducible: Always Steps to Reproduce: Create user without password parameter: # hammer user create --auth-source-id 3 --firstname Tom --lastname Mathew --login tom123 --mail 'tom' --roles 'Access Insights Viewer,Customized Viewer,Red Hat Access Logs,Tasks Reader,View hosts' Could not create the user: Missing arguments for 'user[password]' 2) Create user with password parameter: # hammer user create --auth-source-id 3 --firstname Tom --lastname Mathew --login tom123 --mail 'tom' --roles 'Access Insights Viewer,Customized Viewer,Red Hat Access Logs,Tasks Reader,View hosts' --password "redhat" User [cmn01] created # hammer user list ---|---------------|------------------|------------------------|-------|---------------------|-------------- ID | LOGIN | NAME | EMAIL | ADMIN | LAST LOGIN | AUTHORIZED BY ---|---------------|------------------|------------------------|-------|---------------------|-------------- 7 | tom123 |Tom Mathew | tom | yes | 2018/02/20 15:21:56 | adserver Actual results: User is not allowed to create without password parameter even when we have specified the external auth source. Expected results: When the user is authenticated with the external authentication source LDAP/AD then while creating a user via hammer the --password parameter should be optional. Additional info: