Skip to content

Policy error when resetting password, but policy correct and no error logged #170

Description

@floridop

Hi all
I am testing mokey and ran into this problem.
version: 0.6.6

After successfully initiating a password reset using a link sent via email, the password reset fails with error:

Password does not conform to policy. Try including both upper/lower case, numbers, and other characters

But, the password policy is correct and matches the one in ipa. For what matters here's the relevant config entries:

min_passwd_len = 12
min_passwd_classes = 4

What is odd is that nothing is logged on server side despite I have
MOKEY_ARGS="--config=/etc/mokey/mokey.toml --loglevel=debug" in /etc/default/mokey (this is Alma Linux)

I am using the rpm package from your builds.

Is there something I can provide to debug? I do not really understand where you do this validation, I can see in password.go that there is something there, but I suspect this is done in JavaScript on the password reset page.

Cheers,
Florido

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions