test getLdapAttribute ldap access