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 1363756 - Increase length of passwords generated by installer
Summary: Increase length of passwords generated by installer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Kaleem
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-03 13:35 UTC by Martin Bašti
Modified: 2016-11-04 06:00 UTC (History)
3 users (show)

Fixed In Version: ipa-4.4.0-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 06:00:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2404 0 normal SHIPPED_LIVE ipa bug fix and enhancement update 2016-11-03 13:56:18 UTC

Description Martin Bašti 2016-08-03 13:35:17 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/6116

Currently with default settings, generated password is 12 characters long, in current character set it gives entropy between 64bits and 80bits.

This entropy should be at least 128bits to feel safe nowadays, so default settings of password length should be 22. (https://en.wikipedia.org/wiki/Password_strength)

Applicable to:
* kerberos master password
* KRA
* NSSDB passwords
* temporary passwords during installation


Also we should keep 12 characters long password for temporary user and host passwords, to not force users rewrite super long passwords.

Comment 1 Martin Bašti 2016-08-03 13:35:46 UTC
Fixed upstream
master:
https://fedorahosted.org/freeipa/changeset/51ccde25f7ec0d5309c52b5349992652c7e17a01

Comment 3 Kaleem 2016-08-29 09:41:15 UTC
Please provide steps to verify this.

Comment 4 Martin Bašti 2016-08-29 10:40:11 UTC
Random generated passwords host-add, user-add, stageuser-add with --random must provide password with length 12

Other passwords are temporal or SHA hashed, so I don't think that there is easy way to detect how long password were generated without extra debug logging.

Comment 5 Kaleem 2016-09-09 13:59:54 UTC
(In reply to Martin Bašti from comment #4)
> Random generated passwords host-add, user-add, stageuser-add with --random
> must provide password with length 12
^ This will be sufficient to verify the bug?
> 
> Other passwords are temporal or SHA hashed, so I don't think that there is
> easy way to detect how long password were generated without extra debug
> logging.

Comment 6 Martin Bašti 2016-09-13 08:49:07 UTC
IMO yes, unless you want to run python debugger and see how temporal password looks like

Comment 7 Kaleem 2016-09-15 09:51:50 UTC
Verified.

IPA Version:
============
[root@dhcp207-129 ~]# rpm -q ipa-server
ipa-server-4.4.0-11.el7.x86_64
[root@dhcp207-129 ~]# 

[root@dhcp207-129 ~]# ipa host-add dhcp207-130.testrelm.test --random --force
--------------------------------------
Added host "dhcp207-130.testrelm.test"
--------------------------------------
  Host name: dhcp207-130.testrelm.test
  Random password: eoiwEII6,8k.
  Password: True
[root@dhcp207-129 ~]# 
[root@dhcp207-129 ~]# ipa user-add --first=test --last=user1 testuser1 --random
----------------------
Added user "testuser1"
----------------------
...
  Email address: testuser1
  Random password: k86_2VlumeWQ
  UID: 1897400001
...
[root@dhcp207-129 ~]# ipa stageuser-add --first=stage --last=user1 stageuser1 --random
-----------------------------
Added stage user "stageuser1"
-----------------------------
...
  Password: e1NTSEF9VXZTM3pINnY1TUZwWFJiNnZiU21NNDhuVVY5Zm1rVmdkUWtUUnc9PQ==
  Random password: ex2-WcGM5B@d
  UID: -1
...
[root@dhcp207-129 ~]#

Comment 9 errata-xmlrpc 2016-11-04 06:00:06 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, 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://rhn.redhat.com/errata/RHBA-2016-2404.html


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