use last instead of first for getting the username of an ldap user
extra info for ldap howto