dsdb: Add samdb_result_passwords_from_history helper function