user-not-found error

884 views
Skip to first unread message

evlacan

unread,
Nov 17, 2010, 6:46:23 PM11/17/10
to Repo and Gerrit Discussion
Hi,

This is the type of error I've found in the logs:

[2010-11-16 11:18:59,129 -0400] 5bc68bb1 lmcdipr - AUTH FAILURE FROM
142.133.114.25 user-not-found


The odd part is that the user exists in Gerrit.
This started recently and for a limited number of users only.

Any suggestion is more than welcome.

Thanks

evlacan

unread,
Nov 18, 2010, 3:13:16 PM11/18/10
to Repo and Gerrit Discussion
I found out where the problem is.

I've changed Gerrit configurations to use a different LDAP server.
Apparently the new LDAP server contains all usernames with uppercase.

Users have got registered in Gerrit with uppercase version of their
username. This is why Gerrit shows this user-not-found error (case
sensitive!?).

There is a simple solution for this case but I see it more like a
workaround.

By default users will use the following command to clone:
git clone ssh:/host.xz:port/path/to/repo.git

The solution will be to specify the UPPER CASE username as well:
git clone ssh://us...@host.xz:port/path/to/repo.git

From my point of view users should be able/allowed to not specify the
username in the command line.

For sure I can't change LDAP server info and I can not switch back to
previews LDAP server for various reasons.
Is there any way to setup Gerrit to have it work considering this
scenario?

Thanks.

Shawn Pearce

unread,
Nov 18, 2010, 3:16:39 PM11/18/10
to evlacan, Repo and Gerrit Discussion
On Thu, Nov 18, 2010 at 12:13, evlacan <vladimir...@gmail.com> wrote:
> I found out where the problem is.
>
> I've changed Gerrit configurations to use a different LDAP server.
> Apparently the new LDAP server contains all usernames with uppercase.
>
> Users have got registered in Gerrit with uppercase version of their
> username. This is why Gerrit shows this user-not-found error (case
> sensitive!?).

Yes, usernames are case sensitive.

> For sure I can't change LDAP server info and I can not switch back to
> previews LDAP server for various reasons.
> Is there any way to setup Gerrit to have it work considering this
> scenario?

See [1] for an example of how to force the data from the LDAP server
into lowercase when its imported by Gerrit:

http://gerrit.googlecode.com/svn/documentation/2.1.5/config-gerrit.html#ldap.accountSshUserName

After you change the setting, users will need to login at least once
through the web UI to fix their user account data within Gerrit. (Its
only updated on web login.)

evlacan

unread,
Nov 22, 2010, 4:22:16 PM11/22/10
to Repo and Gerrit Discussion
Hi Shawn,

It works well now for new registered users.

The only aspect I want to mention is the web login that doesn't update
the username as you have mentioned.
Even more, when I had the initial problem, according to you, the
lowercase usernames in Gerrit supposed to be updated in this case to
uppercase after the web login too, but it didn't happen.

Thanks.
Reply all
Reply to author
Forward
0 new messages