Make use of setattr and getattr

1 job for ldap