ldap user with empty username

201 views
Skip to first unread message

Vadim Dvorkin

unread,
Jun 16, 2014, 11:55:08 AM6/16/14
to repo-d...@googlegroups.com
Hello,

I have ldap user, which has empty field in Settings->Profile->Username. The other fields, like "Full Name" and "Email Adress", are correct.

I looked in ACCOUNT_EXTERNAL_IDS table of DataBase. There is single row for him, where his gerrit user is defined.  The second record, like for another users, where is "username:..." defined, is absent. As result, he cannot ssh communicate with repository under gerrit.

I created the wanted record by "gerrit gsql" but it does not help: Settings->Profile->Username is still empty and ssh impossible.

Would you please to suggest me how to resolve this problem?

Thanks in advance.
--Vadim

Vlad Canţîru

unread,
Jun 16, 2014, 5:03:32 PM6/16/14
to Vadim Dvorkin, repo-d...@googlegroups.com

 When you update the DB directly you bypass the application and the cache becomes outdated. You need to flush accounts related caches to force a cache update.
 
Check this example that shows DB update followed by flush-caches operation [1].

Vadim Dvorkin

unread,
Jun 17, 2014, 11:12:58 AM6/17/14
to repo-d...@googlegroups.com, vadim....@gmail.com
Thanks a lot. It helped.
--Vadim
Reply all
Reply to author
Forward
0 new messages