Univention Bugzilla – Attachment 9842 Details for
Bug 34828
Provision failed due to password complexity criteria
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
1.patch
1.patch (text/plain), 775 bytes, created by
Arvid Requate
on 2019-02-14 18:23:21 CET
(
hide
)
Description:
1.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2019-02-14 18:23:21 CET
Size:
775 bytes
patch
obsolete
>diff --git a/base/univention-lib/shell/base.sh b/base/univention-lib/shell/base.sh >index ad82fa5555..717af63902 100644 >--- a/base/univention-lib/shell/base.sh >+++ b/base/univention-lib/shell/base.sh >@@ -235,12 +235,19 @@ create_machine_password () { > > if [ -z "$length" ]; then > length=20 >+ elif [ $length -lt 4 ]; then >+ length=4 > fi > if [ -z "$compl" ]; then >- compl="scn" >+ quater=$(($length/4)) >+ part1="$(pwgen -1 -s -A --no-numerals $quater)" >+ part2="$(pwgen -1 -s -A -n $quater)" >+ part3="$(pwgen -1 -s -c --no-numerals $quater)" >+ part4="$(pwgen -1 -s -c -n $quater)" >+ echo -e "${part1}\n${part2}\n${part3}\n${part4}" | shuf | tr -d '\n' >+ else >+ pwgen -1 -${compl} ${length} | tr -d '\n' > fi >- >- pwgen -1 -${compl} ${length} | tr -d '\n' > } > > #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34828
: 9842 |
9843