added logic to read attributed from ldap