Ticket 50255 - Port password policy test to use DSLdapObject
Description: While investigating ticket 50255 I had issues with
the CI test because it was not use DSLdapObject. So
This patch just refectors the test to use the current
DSLDAPObject model.
https://pagure.io/389-ds-base/issue/50255
Reviewed by: firstyear(Thanks!)