Issue 49210 - Fix regression when checking is password min
age should be checked
Bug Description: If a plugin makes an internal modification of userpassword
the connection structure in the pblock is null, and it was
being dereferenced.
Fix Description: These internal operations do not need to have the password
policy checks done. They are intended to be unrestricted.
So we only need to check password policy on client connections.
The fix frist hecks if the connection structy is present,
only then it continues.
Revised test script to include the tool: ldappasswd
https://pagure.io/389-ds-base/issue/49210
Reviewed by: firstyear(Thanks!)