I know this problem from our internal system and I've spent some time
looking at it.
I'm not sure that everythink I'm saying now is correct, but this is
how I explained it to myself ;-)
First of all Gerrit treats user names as case sensitive, while LDAP doesn't.
Let's say in LDAP you have the user in lower case "x00175420", then
with this entry LDAP accepts "x00175420" and "X00175420" as username.
On first login to Gerrit the user types in his user name and Gerrit
queries LDAP for it. Since LDAP is case-insensitive about the
username, the LDAP authentication succeeds regardless if the Gerrit
user typed in his username in lower or upper case.
The username in the case as it is typed in by the Gerrit user is then
stored in 'account_external_ids' -> 'gerrit' , while the username in
the case as it comes from LDAP is stored in 'account_external_ids' ->
'username'.
'account_external_ids' -> 'gerrit' is the username that is used for
the login to the Gerrit WebUI. Since Gerrit treats the username as
case-sensitive "x00175420" and "X00175420" are different users for
Gerrit, however for both users LDAP would return the username in the
same case. Since 'account_external_ids' -> 'username' must be unique
the creation of the second user fails with error message that you see:
"Cannot assign user name "x00175420" to account 1000255; name already
in use." (why 1000255 is displayed as account_id I can't say, this
looks indeed strange and might be a bug)
As consequense of this every user has to decide on the first login to
Gerrit which case he want to use and then to login always with this
case.
Best regards,
Edwin
2011/8/26 Jelly <sino...@gmail.com>:
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
First of all Gerrit treats user names as case sensitive, while LDAP doesn't.
same case. Since 'account_external_ids' -> 'username' must be unique
Regards,Mariusz
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
I think to finally fix the whole issue Gerrit should be able to match
usernames case-insensitive (e.g. by configuration).
[1] https://review.source.android.com/17446
2011/8/30 Nasser Grainawi <nas...@codeaurora.org>: