Check password fails

Hello,

we're checking various accounts passwords. The check seems to work only with passwords that follow AD password policies.

In our case there is an account with a simple password that doesn't follow those policies, but still the password is set correectly.

When checking it a failure error returns. We also tried connecting remotely to the asset with that account and it logs in fine but if we try connecting to it with the PAM it doesn't work.

So i want to ask, is it possible that the check password function works following the AD policies BEFORE actually checking the password itself?

Otherwise, can you explain how the check password function actually works?

Thank you