Port users_ldap_populate to v8