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
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
Reviewed by: firstyear(Thanks!)
(cherry picked from commit f5e4b8a39c6afca9363ea9f1239fb3b43ad21d30)