Fix LDAP authentication to use provided username

Use the given username after user has been authenticated against LDAP
instead of some arbitary value from LDAP that likely does not exist in
all environments.