My exact usecase:
- I use authentication via libphremoteuser (REMOTE_USER envvar)
- For registration, I want to display the proper real-name and email address
- I need to fetch that from LDAP
- I can conveniently do that (with a small patch) using the PhabricatorLDAPAuthProvider