get ldap attribute from yml file instead of settings

to avoid duplication