LDAP : add option to get data as an array