cybertec-postgresql / patroni-windows-packaging

Automate installing and launching of Patroni under Windows
Other
15 stars 7 forks source link

increase password complexity by default #41

Closed vvatlin closed 1 year ago

vvatlin commented 1 year ago

I'm getting such error on fresh default Windows 2019 server, New-LocalUser : Unable to update the password. The value provided for the new password does not meet the length, complexity or history requirements of the domain

pashagolub commented 1 year ago

Oh, thanks. Do you maybe know the default complexity rules for 2019 or where can we check that?

vvatlin commented 1 year ago

Hello Sorry for late response

Password must meet complexity requirements

This security setting determines whether passwords must meet complexity requirements.

If this policy is enabled, passwords must meet the following minimum requirements:

Not contain the user's account name or parts of the user's full name that exceed two consecutive characters
Be at least six characters in length
Contain characters from three of the following four categories:
English uppercase characters (A through Z)
English lowercase characters (a through z)
Base 10 digits (0 through 9)
Non-alphabetic characters (for example, !, $, #, %)
Complexity requirements are enforced when passwords are changed or created.

Default:

Enabled on domain controllers.
Disabled on stand-alone servers.

Note: By default, member computers follow the configuration of their domain controllers.
pashagolub commented 1 year ago

would you please check if #42 fixes the issue? Thanks in advance!