Fix editable username when authType is LDAP or HTTP_LDAP
If gerrit.config has ldap.accountSshUserName = "" then we need
to permit the user to modify their username through the web UI.
Unfortunately this data is static as part of the GerritConfig
singleton in the server and the client UI, so we can't wait until
the first LDAP query to determine the value. Instead do it up
front during the LdapRealm init.
Signed-off-by: Shawn O. Pearce <firstname.lastname@example.org>
1 file changed