Bug 46131 - Passwords based on a dictionary word are not detected anymore in UCS 4.3
Passwords based on a dictionary word are not detected anymore in UCS 4.3
Status: CLOSED WORKSFORME
Product: UCS
Classification: Unclassified
Component: UMC - Change password
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Arvid Requate
Stefan Gohmann
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-24 12:56 CET by Florian Best
Modified: 2019-02-26 10:10 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2018-01-24 12:56:28 CET
UCS 4.2 prevented to create a password "chocolate" because it is based on a dictionary word, if the password complexity check was enabled. This check does not work in UCS 4.3 anymore.

The test case 60_umc/105_change_expired_password_fail_reason fails in Samba 4 and Samba 3 environments.

Reproduce:
cn=default-settings,cn=pwhistory,cn=users,cn=policies,%s
→ 'univentionPWQualityCheck'=True

ucr set ['password/quality/credit/lower=1', 'password/quality/credit/upper=1', 'password/quality/credit/other=1', 'password/quality/credit/digits=1'
Comment 1 Florian Best univentionstaff 2018-01-24 17:28:47 CET
Probably pam_cracklib is the cause.
Comment 2 Jannik Ahlers univentionstaff 2018-01-30 16:15:13 CET
Even though the most recent jenkins test failed, I was not able to reproduce the problem manually.
Comment 3 Arvid Requate univentionstaff 2018-02-12 20:02:24 CET
I agree with Jannik:

root@master10:~# ucr set \
  password/quality/credit/lower=1 \
  password/quality/credit/upper=1 \
  password/quality/credit/other=1 \
  password/quality/credit/digits=1
Create password/quality/credit/lower
Create password/quality/credit/upper
Create password/quality/credit/other
Create password/quality/credit/digits

root@master10:~# eval "$(ucr shell)"
root@master10:~# udm policies/pwhistory modify \
  --dn "cn=default-settings,cn=pwhistory,cn=users,cn=policies,$ldap_base" \
  --set pwQualityCheck=TRUE

root@master10:~# udm users/user create --set username=user1 \
                                --set lastname=name1 --set password=chocolate
Password policy error: Es basiert auf einem Wörterbucheintrag

root@master10:~# ucr search --brief version/.*
repository/mirror/version/end: <empty>
repository/mirror/version/start: <empty>
version/erratalevel: 0
version/patchlevel: 0
version/releasename: Neustadt
version/version: 4.3
Comment 6 Stefan Gohmann univentionstaff 2018-02-27 10:40:08 CET
Ok, works
Comment 7 Stefan Gohmann univentionstaff 2018-03-14 14:38:16 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".
Comment 8 Florian Best univentionstaff 2019-02-26 10:10:25 CET
This was not solved correctly, therefore we have now Bug #48684.