As noticed with @mmodell when he tried to T220653. it wouldn't let him use both "20after4" and "twentyafterfour" as a username for auth over http. This is because his shell name (uid) and cn name are different in LDAP:
| LDAP Field | Gerrit schema | Value |
|---|---|---|
| uid | username | twentyafterfour |
| cn | gerrit | 20after4 |
To use authentication over HTTP, you must use a username, @mmodell username in Gerrit is twentyafterfour, so when he tried using it, it was failing to find him in LDAP as it was using the cn field to search.
We should find a way to allow users who have a different shell name to the cn field, to be able to authenticate.