brocade / ansible

55 stars 33 forks source link

Password policy for brocade_security_user_config #124

Open jishnujittm opened 1 year ago

jishnujittm commented 1 year ago

Hello team, I'd like to check for the possibility of adding a password policy with brocade_security_user_config. Currently the module accepts any plain text as password.

Is it possible to have some checks here to notify the user that the password should meet certain criteria (for e.g. Minimum length, usage of special characters etc.)?

prasad-valmeti-broadcom commented 1 year ago

We will explore the possibility and let you know in couple of days.

prasad-valmeti-broadcom commented 1 year ago

As per the brocade-security/user-config yang files, these are allowed limits to the password with the allowed values. typedef user-password-type { type string { length "1..40"; pattern "[ -~]{1,40}"; pattern ":" { modifier invert-match; } } description "Specifies a password for the account."; }

Hope this answers your question. Please check at your end and let us know if it resolves your issue.

prasad-valmeti-broadcom commented 1 year ago

If there are no further issues, please suggest if we can close the issue.