Allow custom field to be used for LDAP account username
Currently the uid attribute is used, which is set to a numerical ID on some university servers, while we would want it to be something that looks nice in URLs (gitlab.example.com/username) and mentions (@username). In these cases, mail is a better option, so that the user part of the email address is used instead.
It wouldn't hurt to make this customizable for other fields as well.